Fork me on GitHub

Changeset 71648c2 in git for modules/TreeWriter.cc


Ignore:
Timestamp:
May 16, 2013, 4:25:05 PM (12 years ago)
Author:
pavel <pavel@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
8608ef8
Parents:
809e3a9
Message:

add Rho branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/TreeWriter.cc

    r809e3a9 r71648c2  
    6464  fClassMap[MissingET::Class()] = &TreeWriter::ProcessMissingET;
    6565  fClassMap[ScalarHT::Class()] = &TreeWriter::ProcessScalarHT;
     66  fClassMap[Rho::Class()] = &TreeWriter::ProcessRho;
    6667
    6768  TBranchMap::iterator itBranchMap;
     
    519520//------------------------------------------------------------------------------
    520521
     522void 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
    521540void TreeWriter::Process()
    522541{
Note: See TracChangeset for help on using the changeset viewer.