Changeset 72 in svn for trunk/interface/TriggerUtil.h
- Timestamp:
- Dec 3, 2008, 12:01:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/interface/TriggerUtil.h
r63 r72 14 14 #include <vector> 15 15 #include "TLorentzVector.h" 16 #include "TClonesArray.h" 16 17 17 18 #include "Utilities/ExRootAnalysis/interface/BlockClasses.h" 18 19 #include "Utilities/ExRootAnalysis/interface/TSimpleArray.h" 20 #include "Utilities/ExRootAnalysis/interface/ExRootTreeBranch.h" 19 21 20 22 using namespace std; … … 31 33 void PrintTrigCondition(string LogName,int i); 32 34 33 bool GetResult() { 34 if(!has_been_evaluated) Evaluate(event_i); 35 return Result; 36 }; 35 bool GetResult(TClonesArray *branchElecTrig, TClonesArray *branchMuonTrig, 36 TClonesArray *branchJetTrig, TClonesArray *branchTauJetTrig, 37 TClonesArray *branchPhotonTrig, TClonesArray *branchETmisTrig); 37 38 38 39 private: 39 bool Evaluate(int event_i); // <- à la fin, mettre has_been_evaluated=true; 40 40 41 41 vector<float> GetCuts(const vector<string> &Sequences); 42 42 vector<float> ElecValues; … … 47 47 vector<float> GammaValues; 48 48 bool Result; 49 int event_i;50 bool has_been_evaluated;51 49 }; 52 50 … … 68 66 // appelle la méthode TriggerBit::PriniTrigCondition 69 67 70 71 bool GetGlobalResult() { 72 if (! has_been_evaluated) Evaluate(event_i); 73 return GlobalResult; 74 } 68 bool GetGlobalResult(TClonesArray *branchElecTrig, TClonesArray *branchMuonTrig, 69 TClonesArray *branchJetTrig, TClonesArray *branchTauJetTrig, 70 TClonesArray *branchPhotonTrig, TClonesArray *branchETmisTrig,ExRootTreeBranch *branchTrigger); 75 71 76 72 void WriteResult();
Note:
See TracChangeset
for help on using the changeset viewer.