Changeset 6e0bbe3 in git
- Timestamp:
- Jul 4, 2013, 2:10:42 PM (11 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- b94aacf
- Parents:
- 474eb76
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
readers/DelphesProMC.cpp
r474eb76 r6e0bbe3 37 37 //--------------------------------------------------------------------------- 38 38 39 void ConvertInput(ProMCEvent &event, ExRootTreeBranch *branch, DelphesFactory *factory, TObjArray *allParticleOutputArray, TObjArray *stableParticleOutputArray, TObjArray *partonOutputArray) 39 void ConvertInput(ProMCEvent &event, ExRootTreeBranch *branch, DelphesFactory *factory, 40 TObjArray *allParticleOutputArray, TObjArray *stableParticleOutputArray, TObjArray *partonOutputArray, 41 TStopwatch *readStopWatch, TStopwatch *procStopWatch) 40 42 { 41 43 Int_t i; … … 78 80 element->PDF2 = mutableEvent->pdf2(); 79 81 80 element->ReadTime = 0.0;81 element->ProcTime = 0.0;82 element->ReadTime = readStopWatch->RealTime(); 83 element->ProcTime = procStopWatch->RealTime(); 82 84 83 85 mutableParticles = event.mutable_particles(); … … 144 146 ProMCBook *inputFile = 0; 145 147 TFile *outputFile = 0; 148 TStopwatch readStopWatch, procStopWatch; 146 149 ExRootTreeWriter *treeWriter = 0; 147 150 ExRootTreeBranch *branchEvent = 0; … … 219 222 modularDelphes->Clear(); 220 223 treeWriter->Clear(); 224 readStopWatch.Start(); 221 225 for(entry = 0; entry < allEntries && !interrupted; ++entry) 222 226 { … … 224 228 ProMCEvent event = inputFile->get(); 225 229 226 ConvertInput(event, branchEvent, factory, allParticleOutputArray, stableParticleOutputArray, partonOutputArray); 230 readStopWatch.Stop(); 231 232 procStopWatch.Start(); 233 ConvertInput(event, branchEvent, factory, 234 allParticleOutputArray, stableParticleOutputArray, partonOutputArray, 235 &readStopWatch, &procStopWatch); 227 236 modularDelphes->ProcessTask(); 237 procStopWatch.Stop(); 228 238 229 239 treeWriter->Fill(); … … 232 242 treeWriter->Clear(); 233 243 244 readStopWatch.Start(); 234 245 progressBar.Update(entry); 235 246 }
Note:
See TracChangeset
for help on using the changeset viewer.