Changeset 191 in svn
- Timestamp:
- Jan 26, 2009, 3:38:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Delphes.cpp
r184 r191 14 14 #include "TChain.h" 15 15 #include "TApplication.h" 16 #include "TStopwatch.h" 16 17 17 18 #include "Utilities/ExRootAnalysis/interface/ExRootTreeReader.h" … … 69 70 70 71 srand (time (NULL)); /* Initialisation du générateur */ 72 TStopwatch globalwatch, loopwatch, triggerwatch, frogwatch; 73 globalwatch.Start(); 74 71 75 72 76 //read the input TROOT file … … 193 197 Long64_t entry, allEntries = treeReader->GetEntries(); 194 198 cout << "** The input list contains " << allEntries << " events" << endl; 199 loopwatch.Start(); 195 200 196 201 // loop on all events … … 382 387 treeWriter->Write(); 383 388 delete treeWriter; 389 loopwatch.Stop(); 384 390 385 391 … … 387 393 // 3. ********** Trigger & Frog *********** 388 394 // 3.1 ************ running the trigger in case the FLAG trigger is put to 1 in the datacard 395 triggerwatch.Start(); 389 396 if(DET->FLAG_trigger == 1) 390 397 { … … 419 426 delete treeWriterT; 420 427 } // trigger 428 triggerwatch.Stop(); 421 429 422 430 423 431 // 3.2 ************** FROG display 432 frogwatch.Start(); 424 433 if(DET->FLAG_frog == 1) 425 434 { … … 428 437 FROG->BuildGeom(DetDatacard); 429 438 } 439 frogwatch.Stop(); 430 440 431 441 … … 434 444 // 4. ********** End & Exit *********** 435 445 cout << "** Exiting..." << endl; 446 globalwatch.Stop(); 447 cout << "** Time report for " << allEntries << " events.\n"; 448 cout << " + Time (s): \tCPU \t real"<< endl; 449 cout << " + Global: \t" << globalwatch.CpuTime() << " \t " << globalwatch.RealTime() << endl; 450 cout << " + Events: \t" << loopwatch.CpuTime() << " \t " << loopwatch.RealTime() << endl; 451 if(DET->FLAG_trigger == 1) 452 cout << " + Trigger: \t" << triggerwatch.CpuTime() << " \t " << triggerwatch.RealTime() << endl; 453 if(DET->FLAG_frog == 1) 454 cout << " + Frog: \t" << frogwatch.CpuTime() << " \t " << frogwatch.RealTime() << endl; 455 436 456 437 457 delete treeReader; … … 443 463 if(converter) delete converter; 444 464 445 todo("TODO");465 // todo("TODO"); 446 466 }
Note:
See TracChangeset
for help on using the changeset viewer.