Fork me on GitHub

Changeset 3b465ca in git for modules


Ignore:
Timestamp:
Nov 4, 2013, 2:13:47 PM (11 years ago)
Author:
pavel <pavel@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
984cd31
Parents:
1697699
Message:

update ROOT tree classes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/TreeWriter.cc

    r1697699 r3b465ca  
    496496    entry = static_cast<MissingET*>(branch->NewEntry());
    497497
     498    entry->Eta = (-momentum).Eta();
    498499    entry->Phi = (-momentum).Phi();
    499500    entry->MET = momentum.Pt();
     
    523524void TreeWriter::ProcessRho(ExRootTreeBranch *branch, TObjArray *array)
    524525{
     526  TIter iterator(array);
    525527  Candidate *candidate = 0;
    526528  Rho *entry = 0;
    527529
    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())))
    530533  {
    531534    const TLorentzVector &momentum = candidate->Momentum;
     
    534537
    535538    entry->Rho = momentum.E();
     539    entry->Edges[0] = candidate->Edges[0];
     540    entry->Edges[1] = candidate->Edges[1];
    536541  }
    537542}
Note: See TracChangeset for help on using the changeset viewer.