- Timestamp:
- Oct 6, 2015, 11:18:23 AM (9 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 934d037
- Parents:
- ce4feac
- Location:
- modules
- Files:
-
- 2 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 } -
modules/PdgCodeFilter.h
rce4feac rb3c0535 19 19 //------------------------------------------------------------------------------ 20 20 21 #ifndef P idFilter_h22 #define P idFilter_h21 #ifndef PdgCodeFilter_h 22 #define PdgCodeFilter_h 23 23 24 /** \class Efficiency24 /** \class PdgCodeFilter 25 25 * 26 * Removes particles with specific pdgcodes27 26 * Removes particles with specific PDG codes 27 * 28 28 * \author M. Selvaggi 29 29 * … … 50 50 51 51 Double_t fPTMin; //! 52 Bool_t fInvert Pdg; //!52 Bool_t fInvert; //! 53 53 Bool_t fRequireStatus; //! 54 54 Int_t fStatus; //!
Note:
See TracChangeset
for help on using the changeset viewer.