Changes in modules/EnergyScale.cc [341014c:95aa610] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/EnergyScale.cc
r341014c r95aa610 17 17 */ 18 18 19 19 20 /** \class EnergyScale 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 #include <algorithm> 46 #include <algorithm> 47 #include <stdexcept> 46 48 #include <iostream> 47 49 #include <sstream> 48 #include <stdexcept>49 50 50 51 using namespace std; … … 97 98 TLorentzVector momentum; 98 99 Double_t scale; 99 100 100 101 fItInputArray->Reset(); 101 while((candidate = static_cast<Candidate 102 while((candidate = static_cast<Candidate*>(fItInputArray->Next()))) 102 103 { 103 104 momentum = candidate->Momentum; … … 107 108 if(scale > 0.0) momentum *= scale; 108 109 109 candidate = static_cast<Candidate 110 candidate = static_cast<Candidate*>(candidate->Clone()); 110 111 candidate->Momentum = momentum; 111 112
Note:
See TracChangeset
for help on using the changeset viewer.