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