SusyNtuple
Public Member Functions | Public Attributes | Protected Attributes
SusyNtTruthAna Class Reference

Example SusyNt-based truth study. More...

#include <SusyNtTruthAna.h>

Collaboration diagram for SusyNtTruthAna:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SusyNtTruthAna ()
 Constructor and destructor.
virtual void Init (TTree *tree)
 Init is called every time a new TTree is attached.
virtual void Begin (TTree *tree)
 Begin is called before looping on entries.
virtual Bool_t Notify ()
 Called at the first entry of a new file in a chain.
virtual void Terminate ()
 Terminate is called after looping is finished.
virtual Int_t Version () const
 Due to ROOT's stupid design, need to specify version >= 2 or the tree will not connect automatically.
virtual Bool_t Process (Long64_t entry)
 Main event loop function.
virtual Int_t GetEntry (Long64_t e, Int_t getall=0)
void clearTruthObjects ()
void selectTruthObjects ()
TruthParticleVector getPreTruthLeptons (Susy::SusyNtObject *susyNt, int pdgId)
TruthJetVector getPreTruthJets (Susy::SusyNtObject *susyNt)
TruthParticleVector getSignalTruthLeptons (TruthParticleVector &truthLeptons)
TruthJetVector getSignalTruthJets (TruthJetVector &truthJets)
void getBaselineTruthObjects (Susy::SusyNtObject *susyNt, TruthParticleVector &truthElectrons, TruthParticleVector &truthMuons, TruthParticleVector &truthTaus, TruthJetVector &truthJets)
void getSignalTruthObjects (TruthParticleVector &truthBaseElectrons, TruthParticleVector &truthBaseMuons, TruthParticleVector &truthBaseTaus, TruthJetVector &truthBaseJets, TruthParticleVector &truthSignalElectrons, TruthParticleVector &truthSignalMuons, TruthParticleVector &truthSignalTaus, TruthJetVector &truthSignalJets)
Susy::TruthMetgetTruthMet (Susy::SusyNtObject *susyNt)
void removeSFOSPair (TruthParticleVector &leptons, float MllCut=20.)
void dumpEvent ()
void dumpBaselineTruthObjects ()
void dumpSignalTruthObjects ()
void setDebug (bool flag)
void dumpTimer ()
TTree * getTree ()
 ClassDef (SusyNtTruthAna, 1)

Public Attributes

Susy::SusyNtObject nt
 SusyNt object, access to the SusyNt variables.

Protected Attributes

TTree * m_tree
 Input tree (I think it actually points to a TChain)
Long64_t m_entry
 Current entry in the current tree (not chain index!)
Long64_t m_chainEntry
 Current entry in the full TChain.
int m_dbg
 debug level
TruthParticleVector m_baseTruthElectrons
TruthParticleVector m_baseTruthMuons
TruthParticleVector m_baseTruthTaus
TruthJetVector m_baseTruthJets
TruthParticleVector m_signalTruthElectrons
TruthParticleVector m_signalTruthMuons
TruthParticleVector m_signalTruthTaus
TruthJetVector m_signalTruthJets
const Susy::TruthMetm_truthMet
TStopwatch m_timer
 Timer.

Detailed Description

Example SusyNt-based truth study.


Member Function Documentation

virtual Int_t SusyNtTruthAna::GetEntry ( Long64_t  e,
Int_t  getall = 0 
) [inline, virtual]

Get entry simply communicates the entry number from TSelector to this class and hence to all of the VarHandles


The documentation for this class was generated from the following files:
 All Classes Functions Variables Typedefs Enumerations Enumerator