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

SusyNtAna - base class for analyzing SusyNt. More...

#include <SusyNtAna.h>

Inheritance diagram for SusyNtAna:
Inheritance graph
[legend]
Collaboration diagram for SusyNtAna:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SusyNtAna ()
 Constructor and destructor.
void setAnaType (AnalysisType v)
SusyNtToolsnttools ()
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
virtual Bool_t Process (Long64_t entry)
 Main event loop function.
virtual Int_t GetEntry (Long64_t e, Int_t getall=0)
void clearObjects ()
void selectObjects (Susy::NtSys::SusyNtSys sys=Susy::NtSys::NOM, TauId signalTauID=TauId::Medium)
int cleaningCutFlags ()
void dumpEvent ()
void dumpNtupleObjects ()
void dumpBaselineObjects ()
void dumpBaselineLeptons ()
void dumpBaselineJets ()
void dumpSignalObjects ()
void dumpSignalLeptons ()
void dumpSignalJets ()
void setSelectTaus (bool doIt)
 Toggle tau selection and overlap removal.
void setPrintFreq (int freq)
 Print frequency.
void setDebug (int dbg)
 Debug level.
int dbg ()
void toggleCheckDuplicates (bool b=true)
bool checkDuplicate ()
void setEvtDebug ()
bool dbgEvt () const
void loadEventList (const std::string filename="debugEvents.txt")
bool processThisEvent (unsigned int run, unsigned int event)
bool checkRunEvent (const RunEventMap &runEventMap, unsigned int run, unsigned int event)
bool checkAndAddRunEvent (RunEventMap &runEventMap, unsigned int run, unsigned int event)
void addRunEvent (RunEventMap &runEventMap, unsigned int run, unsigned int event)
bool isDuplicate (unsigned int run, unsigned int event)
std::string sampleName () const
void setSampleName (std::string s)
MCWeightermcWeighter ()
 getter to be used from outside (set xsec dir, access weight, etc.)
void dumpTimer ()
 Dump timer.
TTree * getTree ()
 Access tree.
 ClassDef (SusyNtAna, 1)

Public Attributes

Susy::SusyNtObject nt
 SusyNt object, access to the SusyNt variables.
SusyNtTools m_nttools
 helper tools and functions

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.
bool m_selectTaus
 switch to toggle tau selection and OR
int m_printFreq
 Number of events between printouts.
int m_dbg
 debug level
bool m_dbgEvt
 debug events
bool m_duplicate
 duplicate event
std::string m_sample
 sample name string
RunEventMap m_eventList
 run:event to debug
RunEventMap m_eventListDuplicate
 Checks for duplicate run/event.
MCWeighter m_mcWeighter
ElectronVector m_preElectrons
 selected electrons before OR
MuonVector m_preMuons
 selected muons before OR
LeptonVector m_preLeptons
JetVector m_preJets
 selected jets before OR
TauVector m_preTaus
ElectronVector m_baseElectrons
 baseline electrons
MuonVector m_baseMuons
 baseline muons
LeptonVector m_baseLeptons
 baseline leptons
TauVector m_baseTaus
 baseline taus
JetVector m_baseJets
 baseline jets
ElectronVector m_signalElectrons
 signal electrons
MuonVector m_signalMuons
 signal muons
LeptonVector m_signalLeptons
 signal leptons
TauVector m_signalTaus
 signal taus
JetVector m_signalJets
 signal jets
JetVector m_signalJets2Lep
 signal jets for 2 Lep
TauVector m_mediumTaus
 taus with medium ID
TauVector m_tightTaus
 taus with tight ID
const Susy::Metm_met
 Met.
const Susy::TrackMetm_trackMet
 TrackMet.
TStopwatch m_timer
 Timer.

Detailed Description

SusyNtAna - base class for analyzing SusyNt.


Member Function Documentation

virtual Int_t SusyNtAna::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

virtual Int_t SusyNtAna::Version ( ) const [inline, virtual]

Due to ROOT's stupid design, need to specify version >= 2 or the tree will not connect automatically


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