Changeset 71648c2 in git for modules/TreeWriter.cc
- Timestamp:
- May 16, 2013, 4:25:05 PM (12 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 8608ef8
- Parents:
- 809e3a9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/TreeWriter.cc
r809e3a9 r71648c2 64 64 fClassMap[MissingET::Class()] = &TreeWriter::ProcessMissingET; 65 65 fClassMap[ScalarHT::Class()] = &TreeWriter::ProcessScalarHT; 66 fClassMap[Rho::Class()] = &TreeWriter::ProcessRho; 66 67 67 68 TBranchMap::iterator itBranchMap; … … 519 520 //------------------------------------------------------------------------------ 520 521 522 void TreeWriter::ProcessRho(ExRootTreeBranch *branch, TObjArray *array) 523 { 524 Candidate *candidate = 0; 525 Rho *entry = 0; 526 527 // get the first entry 528 if((candidate = static_cast<Candidate*>(array->At(0)))) 529 { 530 const TLorentzVector &momentum = candidate->Momentum; 531 532 entry = static_cast<Rho*>(branch->NewEntry()); 533 534 entry->Rho = momentum.Pt(); 535 } 536 } 537 538 //------------------------------------------------------------------------------ 539 521 540 void TreeWriter::Process() 522 541 {
Note:
See TracChangeset
for help on using the changeset viewer.