Fork me on GitHub

Changeset 71648c2 in git


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

add Rho branch

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • classes/ClassesLinkDef.h

    r809e3a9 r71648c2  
    3636#pragma link C++ class MissingET+;
    3737#pragma link C++ class ScalarHT+;
     38#pragma link C++ class Rho+;
    3839#pragma link C++ class Photon+;
    3940#pragma link C++ class Electron+;
  • classes/DelphesClasses.h

    r809e3a9 r71648c2  
    165165//---------------------------------------------------------------------------
    166166
     167class Rho: public TObject
     168{
     169public:
     170  Float_t Rho; // rho energy density
     171
     172  ClassDef(Rho, 1)
     173};
     174
     175//---------------------------------------------------------------------------
     176
    167177class Photon: public SortableObject
    168178{
  • examples/delphes_card_CMS_PileUp.tcl

    r809e3a9 r71648c2  
    626626  add Branch MissingET/momentum MissingET MissingET
    627627  add Branch ScalarHT/energy ScalarHT ScalarHT
    628 }
    629 
     628  add Branch Rho/rho Rho Rho
     629}
     630
  • 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{
  • modules/TreeWriter.h

    r809e3a9 r71648c2  
    5050  void ProcessMissingET(ExRootTreeBranch *branch, TObjArray *array);
    5151  void ProcessScalarHT(ExRootTreeBranch *branch, TObjArray *array);
     52  void ProcessRho(ExRootTreeBranch *branch, TObjArray *array);
    5253
    5354#ifndef __CINT__
Note: See TracChangeset for help on using the changeset viewer.