Changeset 67 in svn
- Timestamp:
- Dec 2, 2008, 12:14:45 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Delphes.cpp
r66 r67 30 30 #include "interface/JetUtils.h" 31 31 32 #include "Utilities/FROG/Examples/Sim_Delphes/FrogUtil.h" 32 33 33 34 #include <vector> … … 353 354 delete treeWriter; 354 355 355 /*if(DET->DOTRIGGER == 1)356 if(DET->DOTRIGGER == 1) 356 357 { 357 // TChain chainT("Analysis"); 358 // chainT.Add(outputfilename.c_str()); 359 ExRootTreeReader *treeReaderT = new ExRootTreeReader("Analysis"); 360 358 TChain chainT("Analysis"); 359 chainT.Add(outputfilename.c_str()); 360 ExRootTreeReader *treeReaderT = new ExRootTreeReader(&chainT); 361 361 362 362 const TClonesArray *branchElecTrig = treeReaderT->UseBranch("Electron"); … … 366 366 const TClonesArray *branchPhotonTrig = treeReaderT->UseBranch("Photon"); 367 367 const TClonesArray *branchETmisTrig = treeReaderT->UseBranch("ETmis"); 368 369 // Loop over all events 368 369 ExRootTreeWriter *treeWriterT = new ExRootTreeWriter(outputfilename, "Trigger"); 370 ExRootTreeBranch *branchTrigger = treeWriterT->NewBranch("Trigger", TRootTrigger::Class()); 371 372 TRootTrigger *elementTrigger; 373 370 374 Long64_t entryT, allEntriesT = treeReaderT->GetEntries(); 371 375 cout << "** Chain contains " << allEntriesT << " events" << endl; 372 376 for(entryT = 0; entryT < allEntriesT; ++entryT) 373 377 { 374 //cout<<"entry "<<entryT<<endl; 378 treeWriterT->Clear(); 379 // treeReaderT->ReadEntry(entry); 380 elementTrigger = (TRootTrigger*) branchTrigger->NewEntry(); 381 elementTrigger->Accepted=true; 382 treeWriterT->Fill(); 375 383 } 384 385 treeWriterT->Write(); 386 delete treeWriterT; 376 387 } 377 */378 388 379 389 cout << "** Exiting..." << endl; -
trunk/Utilities/ExRootAnalysis/interface/BlockClasses.h
r56 r67 13 13 * present in the data members of the Block TRoot class. 14 14 * 15 * $Date: 2008-1 1-27 18:26:42$16 * $Revision: 1. 3$15 * $Date: 2008-12-02 11:14:45 $ 16 * $Revision: 1.4 $ 17 17 * 18 18 * … … 289 289 //--------------------------------------------------------------------------- 290 290 291 class TRootTrigger: public TSortableObject 292 { 293 public: 294 TRootTrigger() {}; 295 static TCompare *fgCompare; //! 296 297 bool Accepted; 298 bool GlobalAccepted; 299 300 ClassDef(TRootTrigger, 1) 301 302 }; 303 //--------------------------------------------------------------------------- 304 291 305 class TRootETmis: public TSortableObject 292 306 { -
trunk/Utilities/ExRootAnalysis/src/BlockClasses.cc
r3 r67 11 11 * to preserve mother-dautherlinks between particles. 12 12 * 13 * $Date: 2008-1 1-04 10:32:26$14 * $Revision: 1. 1$13 * $Date: 2008-12-02 11:14:45 $ 14 * $Revision: 1.2 $ 15 15 * 16 16 * … … 36 36 TCompare *TRootLHEFParticle::fgCompare = 0; 37 37 TCompare *TRootRomanPotHits::fgCompare =0; 38 TCompare *TRootTrigger::fgCompare =0; 38 39 39 40 void TRootParticle::Set(const TLorentzVector& momentum) { -
trunk/Utilities/ExRootAnalysis/src/BlockClassesLinkDef.h
r3 r67 4 4 * Lists classes to be included in cint dicitonary 5 5 * 6 * $Date: 2008-1 1-04 10:32:26$7 * $Revision: 1. 1$6 * $Date: 2008-12-02 11:14:45 $ 7 * $Revision: 1.2 $ 8 8 * 9 9 * … … 34 34 #pragma link C++ class TRootZdcHits; 35 35 #pragma link C++ class TRootRomanPotHits; 36 #pragma link C++ class TRootTrigger; 36 37 37 38 #pragma link C++ class TRootParticle;
Note:
See TracChangeset
for help on using the changeset viewer.