Changes in converters/hepmc2pileup.cpp [341014c:1fa50c2] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
converters/hepmc2pileup.cpp
r341014c r1fa50c2 17 17 */ 18 18 19 #include <stdexcept> 19 20 #include <iostream> 20 21 #include <sstream> 21 #include <stdexcept>22 22 23 23 #include <signal.h> 24 24 25 #include "TROOT.h" 25 26 #include "TApplication.h" 26 #include "TROOT.h"27 27 28 #include "TFile.h" 29 #include "TObjArray.h" 30 #include "TStopwatch.h" 28 31 #include "TDatabasePDG.h" 29 #include "T File.h"32 #include "TParticlePDG.h" 30 33 #include "TLorentzVector.h" 31 #include "TObjArray.h"32 #include "TParticlePDG.h"33 #include "TStopwatch.h"34 34 35 35 #include "classes/DelphesClasses.h" … … 38 38 #include "classes/DelphesPileUpWriter.h" 39 39 40 #include "ExRootAnalysis/ExRootTreeWriter.h" 41 #include "ExRootAnalysis/ExRootTreeBranch.h" 40 42 #include "ExRootAnalysis/ExRootProgressBar.h" 41 #include "ExRootAnalysis/ExRootTreeBranch.h"42 #include "ExRootAnalysis/ExRootTreeWriter.h"43 43 44 44 using namespace std; … … 71 71 if(argc < 2) 72 72 { 73 cout << " Usage: " << appName << " output_file" 74 << " [input_file(s)]" << endl; 73 cout << " Usage: " << appName << " output_file" << " [input_file(s)]" << endl; 75 74 cout << " output_file - output binary pile-up file," << endl; 76 75 cout << " input_file(s) - input file(s) in HepMC format," << endl; … … 143 142 reader->Clear(); 144 143 while(reader->ReadBlock(factory, allParticleOutputArray, 145 stableParticleOutputArray, partonOutputArray) 146 && !interrupted) 144 stableParticleOutputArray, partonOutputArray) && !interrupted) 147 145 { 148 146 if(reader->EventReady()) … … 151 149 152 150 itParticle->Reset(); 153 while((candidate = static_cast<Candidate 151 while((candidate = static_cast<Candidate*>(itParticle->Next()))) 154 152 { 155 153 const TLorentzVector &position = candidate->Position; … … 175 173 176 174 ++i; 177 } while(i < argc); 175 } 176 while(i < argc); 178 177 179 178 writer->WriteIndex();
Note:
See TracChangeset
for help on using the changeset viewer.