Changeset b3c0535 in git for modules/PdgCodeFilter.cc
- Timestamp:
- Oct 6, 2015, 11:18:23 AM (9 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 934d037
- Parents:
- ce4feac
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/PdgCodeFilter.cc
rce4feac rb3c0535 74 74 fPTMin = GetDouble("PTMin", 0.0); 75 75 76 fInvert Pdg = GetBool("InvertPdg", false);76 fInvert = GetBool("Invert", false); 77 77 78 78 fRequireStatus = GetBool("RequireStatus", false); … … 114 114 Double_t pt; 115 115 116 const Bool_t requireStatus = fRequireStatus;117 const Bool_t invertPdg = fInvertPdg;118 const int reqStatus = fStatus;119 120 116 fItInputArray->Reset(); 121 117 while((candidate = static_cast<Candidate*>(fItInputArray->Next()))) … … 126 122 127 123 if(pt < fPTMin) continue; 128 if( requireStatus && (candidate->Status != reqStatus)) continue;124 if(fRequireStatus && (candidate->Status != fStatus)) continue; 129 125 130 126 pass = kTRUE; 131 127 if(find(fPdgCodes.begin(), fPdgCodes.end(), pdgCode) != fPdgCodes.end()) pass = kFALSE; 132 128 133 if (invertPdg) pass = !pass;129 if(fInvert) pass = !pass; 134 130 if(pass) fOutputArray->Add(candidate); 135 131 }
Note:
See TracChangeset
for help on using the changeset viewer.