Changeset 1123 in svn for trunk/modules/TreeWriter.cc
- Timestamp:
- May 26, 2013, 2:00:39 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 {
Note:
See TracChangeset
for help on using the changeset viewer.