Changeset 1123 in svn for trunk/modules
- Timestamp:
- May 26, 2013, 2:00:39 AM (11 years ago)
- Location:
- trunk/modules
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/ModulesLinkDef.h
r1099 r1123 7 7 * $Revision$ 8 8 * 9 * 9 * 10 10 * \author P. Demin - UCL, Louvain-la-Neuve 11 11 * … … 13 13 14 14 #include "modules/Delphes.h" 15 15 16 16 #include "modules/FastJetFinder.h" 17 17 #include "modules/ParticlePropagator.h" … … 33 33 #include "modules/StatusPidFilter.h" 34 34 #include "modules/Cloner.h" 35 #include "modules/Weighter.h" 35 36 #include "modules/ExampleModule.h" 36 37 … … 62 63 #pragma link C++ class StatusPidFilter+; 63 64 #pragma link C++ class Cloner+; 65 #pragma link C++ class Weighter+; 64 66 #pragma link C++ class ExampleModule+; 65 67 -
trunk/modules/TreeWriter.cc
r1115 r1123 65 65 fClassMap[ScalarHT::Class()] = &TreeWriter::ProcessScalarHT; 66 66 fClassMap[Rho::Class()] = &TreeWriter::ProcessRho; 67 fClassMap[Weight::Class()] = &TreeWriter::ProcessWeight; 67 68 68 69 TBranchMap::iterator itBranchMap; … … 538 539 //------------------------------------------------------------------------------ 539 540 541 void TreeWriter::ProcessWeight(ExRootTreeBranch *branch, TObjArray *array) 542 { 543 Candidate *candidate = 0; 544 Weight *entry = 0; 545 546 // get the first entry 547 if((candidate = static_cast<Candidate*>(array->At(0)))) 548 { 549 const TLorentzVector &momentum = candidate->Momentum; 550 551 entry = static_cast<Weight*>(branch->NewEntry()); 552 553 entry->Weight = momentum.E(); 554 } 555 } 556 557 //------------------------------------------------------------------------------ 558 540 559 void TreeWriter::Process() 541 560 { -
trunk/modules/TreeWriter.h
r1114 r1123 51 51 void ProcessScalarHT(ExRootTreeBranch *branch, TObjArray *array); 52 52 void ProcessRho(ExRootTreeBranch *branch, TObjArray *array); 53 void ProcessWeight(ExRootTreeBranch *branch, TObjArray *array); 53 54 54 55 #ifndef __CINT__
Note:
See TracChangeset
for help on using the changeset viewer.