Changeset 341014c in git for modules/TrackEfficiency.cc
- Timestamp:
- Feb 12, 2019, 9:29:17 PM (6 years ago)
- Branches:
- ImprovedOutputFile, Timing, llp, master
- Children:
- 6455202
- Parents:
- 45e58be
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/TrackEfficiency.cc
r45e58be r341014c 17 17 */ 18 18 19 20 19 /** \class TrackEfficiency 21 20 * … … 32 31 #include "classes/DelphesLongFormula.h" 33 32 33 #include "ExRootAnalysis/ExRootClassifier.h" 34 #include "ExRootAnalysis/ExRootFilter.h" 34 35 #include "ExRootAnalysis/ExRootResult.h" 35 #include "ExRootAnalysis/ExRootFilter.h"36 #include "ExRootAnalysis/ExRootClassifier.h"37 36 37 #include "TDatabasePDG.h" 38 #include "TFormula.h" 39 #include "TLorentzVector.h" 38 40 #include "TMath.h" 41 #include "TObjArray.h" 42 #include "TRandom3.h" 39 43 #include "TString.h" 40 #include "TFormula.h"41 #include "TRandom3.h"42 #include "TObjArray.h"43 #include "TDatabasePDG.h"44 #include "TLorentzVector.h"45 44 46 #include <algorithm> 47 #include <stdexcept> 45 #include <algorithm> 48 46 #include <iostream> 49 47 #include <sstream> 48 #include <stdexcept> 50 49 51 50 using namespace std; … … 93 92 94 93 void TrackEfficiency::Process() 95 { 94 { 96 95 Candidate *candidate; 97 96 Double_t pt, eta, phi, e, d0, dz, ctgTheta; 98 97 99 98 fItInputArray->Reset(); 100 while((candidate = static_cast<Candidate *>(fItInputArray->Next())))99 while((candidate = static_cast<Candidate *>(fItInputArray->Next()))) 101 100 { 102 101 const TLorentzVector &candidatePosition = candidate->Position; … … 112 111 // apply an efficency formula 113 112 if(gRandom->Uniform() > fFormula->Eval(pt, eta, phi, e, d0, dz, ctgTheta)) continue; 114 113 115 114 fOutputArray->Add(candidate); 116 115 }
Note:
See TracChangeset
for help on using the changeset viewer.