Changes in / [f3c4047:28027d5] in git
- Location:
- modules
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/PdgCodeFilter.cc
rf3c4047 r28027d5 74 74 fPTMin = GetDouble("PTMin", 0.0); 75 75 76 fInvertPdg = GetBool("InvertPdg", false);77 78 fRequireStatus = GetBool("RequireStatus", false);79 fStatus = GetInt("Status", 1);80 81 76 // import input array 82 77 fInputArray = ImportArray(GetString("InputArray", "Delphes/allParticles")); … … 114 109 Double_t pt; 115 110 116 const Bool_t requireStatus = fRequireStatus;117 const Bool_t invertPdg = fInvertPdg;118 const int reqStatus = fStatus;119 120 111 fItInputArray->Reset(); 121 112 while((candidate = static_cast<Candidate*>(fItInputArray->Next()))) … … 125 116 pt = candidateMomentum.Pt(); 126 117 127 if(pt < fPTMin) continue; 128 if(requireStatus && (candidate->Status != reqStatus)) continue; 118 pass = kTRUE; 129 119 130 pass = kTRUE;120 if(pt < fPTMin) pass = kFALSE; 131 121 if(find(fPdgCodes.begin(), fPdgCodes.end(), pdgCode) != fPdgCodes.end()) pass = kFALSE; 132 122 133 if (invertPdg) pass = !pass;134 123 if(pass) fOutputArray->Add(candidate); 135 124 } -
modules/PdgCodeFilter.h
rf3c4047 r28027d5 50 50 51 51 Double_t fPTMin; //! 52 Bool_t fInvertPdg; //!53 Bool_t fRequireStatus; //!54 Int_t fStatus; //!55 52 56 53 std::vector<Int_t> fPdgCodes;
Note:
See TracChangeset
for help on using the changeset viewer.