Changeset fa42514 in git
- Timestamp:
- May 22, 2015, 6:00:15 PM (9 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- f3c4047
- Parents:
- e8070b6
- git-author:
- Chase Shimmin <cshimmin@…> (05/22/15 17:50:49)
- git-committer:
- Chase Shimmin <cshimmin@…> (05/22/15 18:00:15)
- Location:
- modules
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/PdgCodeFilter.cc
re8070b6 rfa42514 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 76 81 // import input array 77 82 fInputArray = ImportArray(GetString("InputArray", "Delphes/allParticles")); … … 109 114 Double_t pt; 110 115 116 const Bool_t requireStatus = fRequireStatus; 117 const Bool_t invertPdg = fInvertPdg; 118 const int reqStatus = fStatus; 119 111 120 fItInputArray->Reset(); 112 121 while((candidate = static_cast<Candidate*>(fItInputArray->Next()))) … … 116 125 pt = candidateMomentum.Pt(); 117 126 127 if(pt < fPTMin) continue; 128 if(requireStatus && (candidate->Status != reqStatus)) continue; 129 118 130 pass = kTRUE; 119 120 if(pt < fPTMin) pass = kFALSE;121 131 if(find(fPdgCodes.begin(), fPdgCodes.end(), pdgCode) != fPdgCodes.end()) pass = kFALSE; 122 132 133 if (invertPdg) pass = !pass; 123 134 if(pass) fOutputArray->Add(candidate); 124 135 } -
modules/PdgCodeFilter.h
re8070b6 rfa42514 50 50 51 51 Double_t fPTMin; //! 52 Bool_t fInvertPdg; //! 53 Bool_t fRequireStatus; //! 54 Int_t fStatus; //! 52 55 53 56 std::vector<Int_t> fPdgCodes;
Note:
See TracChangeset
for help on using the changeset viewer.