Changeset 341014c in git for modules/BeamSpotFilter.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/BeamSpotFilter.cc
r45e58be r341014c 7 7 */ 8 8 9 10 9 #include "modules/BeamSpotFilter.h" 11 10 … … 14 13 #include "classes/DelphesFormula.h" 15 14 15 #include "ExRootAnalysis/ExRootClassifier.h" 16 #include "ExRootAnalysis/ExRootFilter.h" 16 17 #include "ExRootAnalysis/ExRootResult.h" 17 #include "ExRootAnalysis/ExRootFilter.h"18 #include "ExRootAnalysis/ExRootClassifier.h"19 18 19 #include "TDatabasePDG.h" 20 #include "TFormula.h" 21 #include "TLorentzVector.h" 20 22 #include "TMath.h" 23 #include "TObjArray.h" 24 #include "TRandom3.h" 21 25 #include "TString.h" 22 #include "TFormula.h"23 #include "TRandom3.h"24 #include "TObjArray.h"25 #include "TDatabasePDG.h"26 #include "TLorentzVector.h"27 26 28 27 #include <algorithm> 29 #include <stdexcept>30 28 #include <iostream> 31 29 #include <sstream> 30 #include <stdexcept> 32 31 33 32 using namespace std; … … 50 49 void BeamSpotFilter::Init() 51 50 { 52 51 53 52 // import input array 54 53 fInputArray = ImportArray(GetString("InputArray", "Delphes/allParticles")); … … 73 72 Candidate *candidate; 74 73 Bool_t passed = false; 75 74 76 75 fItInputArray->Reset(); 77 while((candidate = static_cast<Candidate *>(fItInputArray->Next())) && !passed)76 while((candidate = static_cast<Candidate *>(fItInputArray->Next())) && !passed) 78 77 { 79 78 if(candidate->IsPU == 0) passed = true; 80 79 fOutputArray->Add(candidate); 81 80 } 82 83 81 } 84 85
Note:
See TracChangeset
for help on using the changeset viewer.