Changes in modules/JetPileUpSubtractor.cc [341014c:d4b9697] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/JetPileUpSubtractor.cc
r341014c rd4b9697 17 17 */ 18 18 19 19 20 /** \class JetPileUpSubtractor 20 21 * … … 31 32 #include "classes/DelphesFormula.h" 32 33 34 #include "ExRootAnalysis/ExRootResult.h" 35 #include "ExRootAnalysis/ExRootFilter.h" 33 36 #include "ExRootAnalysis/ExRootClassifier.h" 34 #include "ExRootAnalysis/ExRootFilter.h"35 #include "ExRootAnalysis/ExRootResult.h"36 37 38 #include "TMath.h" 39 #include "TString.h" 40 #include "TFormula.h" 41 #include "TRandom3.h" 42 #include "TObjArray.h" 37 43 #include "TDatabasePDG.h" 38 #include "TFormula.h"39 44 #include "TLorentzVector.h" 40 #include "TMath.h"41 #include "TObjArray.h"42 #include "TRandom3.h"43 #include "TString.h"44 45 45 46 #include <algorithm> 47 #include <stdexcept> 46 48 #include <iostream> 47 49 #include <sstream> 48 #include <stdexcept>49 50 50 51 using namespace std; … … 55 56 fItJetInputArray(0), fItRhoInputArray(0) 56 57 { 58 57 59 } 58 60 … … 61 63 JetPileUpSubtractor::~JetPileUpSubtractor() 62 64 { 65 63 66 } 64 67 … … 80 83 81 84 fOutputArray = ExportArray(GetString("OutputArray", "jets")); 85 82 86 } 83 87 … … 101 105 // loop over all input candidates 102 106 fItJetInputArray->Reset(); 103 while((candidate = static_cast<Candidate 107 while((candidate = static_cast<Candidate*>(fItJetInputArray->Next()))) 104 108 { 105 109 momentum = candidate->Momentum; … … 112 116 { 113 117 fItRhoInputArray->Reset(); 114 while((object = static_cast<Candidate 118 while((object = static_cast<Candidate*>(fItRhoInputArray->Next()))) 115 119 { 116 120 if(eta >= object->Edges[0] && eta < object->Edges[1]) … … 128 132 if(momentum.Pt() <= fJetPTMin) continue; 129 133 130 candidate = static_cast<Candidate 134 candidate = static_cast<Candidate*>(candidate->Clone()); 131 135 candidate->Momentum = momentum; 132 136
Note:
See TracChangeset
for help on using the changeset viewer.