Changeset 3b465ca in git for modules/TreeWriter.cc
- Timestamp:
- Nov 4, 2013, 2:13:47 PM (11 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 984cd31
- Parents:
- 1697699
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/TreeWriter.cc
r1697699 r3b465ca 496 496 entry = static_cast<MissingET*>(branch->NewEntry()); 497 497 498 entry->Eta = (-momentum).Eta(); 498 499 entry->Phi = (-momentum).Phi(); 499 500 entry->MET = momentum.Pt(); … … 523 524 void TreeWriter::ProcessRho(ExRootTreeBranch *branch, TObjArray *array) 524 525 { 526 TIter iterator(array); 525 527 Candidate *candidate = 0; 526 528 Rho *entry = 0; 527 529 528 // get the first entry 529 if((candidate = static_cast<Candidate*>(array->At(0)))) 530 // loop over all rho 531 iterator.Reset(); 532 while((candidate = static_cast<Candidate*>(iterator.Next()))) 530 533 { 531 534 const TLorentzVector &momentum = candidate->Momentum; … … 534 537 535 538 entry->Rho = momentum.E(); 539 entry->Edges[0] = candidate->Edges[0]; 540 entry->Edges[1] = candidate->Edges[1]; 536 541 } 537 542 }
Note:
See TracChangeset
for help on using the changeset viewer.