Changes in modules/Cloner.cc [341014c:cab38f6] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/Cloner.cc
r341014c rcab38f6 17 17 */ 18 18 19 19 20 /** \class Clone 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 37 38 #include <algorithm> 39 #include <stdexcept> 38 40 #include <iostream> 39 41 #include <sstream> 40 #include <stdexcept>41 42 42 43 using namespace std; … … 47 48 fItInputArray(0) 48 49 { 50 49 51 } 50 52 … … 53 55 Cloner::~Cloner() 54 56 { 57 55 58 } 56 59 … … 67 70 68 71 fOutputArray = ExportArray(GetString("OutputArray", "jets")); 72 69 73 } 70 74 … … 81 85 { 82 86 Candidate *candidate; 83 84 87 88 // loop over all input candidates 85 89 fItInputArray->Reset(); 86 while((candidate = static_cast<Candidate 90 while((candidate = static_cast<Candidate*>(fItInputArray->Next()))) 87 91 { 88 candidate = static_cast<Candidate 92 candidate = static_cast<Candidate*>(candidate->Clone()); 89 93 fOutputArray->Add(candidate); 90 94 }
Note:
See TracChangeset
for help on using the changeset viewer.