SusyNtuple
|
A class of useful tools for working with SusyNt. More...
#include <SusyNtTools.h>
Public Member Functions | |
SusyNtTools () | |
Constructor and destructor. | |
void | setSFOSRemoval (AnalysisType A) |
bool | doSFOSRemoval () |
void | removeSFOSPairs (ElectronVector &baseElectrons, MuonVector &baseMuons) |
void | setAnaType (AnalysisType A, bool verbose=false) |
AnalysisType | getAnaType () |
bool | initTriggerTool (const std::string &anyInputFilename) |
initialize the trigger tool; return success | |
ElectronSelector & | electronSelector () |
MuonSelector & | muonSelector () |
TauSelector & | tauSelector () |
JetSelector & | jetSelector () |
OverlapTools & | overlapTool () |
TriggerTools & | triggerTool () |
bool | passGRL (int flags) |
bool | passLarErr (int flags) |
bool | passTileErr (int flags) |
bool | passTTC (int flags) |
bool | passGoodVtx (int flags) |
bool | passBadMuon (const MuonVector *preMuons) |
bool | passBadMuon (const MuonVector &preMuons) |
bool | passCosmicMuon (const MuonVector *baseMuons) |
bool | passCosmicMuon (const MuonVector &baseMuons) |
bool | passJetCleaning (const JetVector *preJets) |
bool | passJetCleaning (const JetVector &preJets) |
ElectronVector | getPreElectrons (Susy::SusyNtObject *susyNt, SusyNtSys sys) |
MuonVector | getPreMuons (Susy::SusyNtObject *susyNt, SusyNtSys sys) |
TauVector | getPreTaus (Susy::SusyNtObject *susyNt, SusyNtSys sys) |
JetVector | getPreJets (Susy::SusyNtObject *susyNt, SusyNtSys sys) |
ElectronVector | getBaselineElectrons (const ElectronVector &preElectrons) |
Apply Baseline selection to the 'Pre' objects. | |
MuonVector | getBaselineMuons (const MuonVector &preMuons) |
TauVector | getBaselineTaus (const TauVector &preTaus) |
JetVector | getBaselineJets (const JetVector &preJets) |
void | getPreObjects (Susy::SusyNtObject *susyNt, SusyNtSys sys, ElectronVector &preElectrons, MuonVector &preMuons, JetVector &preJets, TauVector &preTaus) |
void | getBaselineObjects (const ElectronVector &preElectrons, const MuonVector &preMuons, const JetVector &preJets, const TauVector &preTaus, ElectronVector &baseElectrons, MuonVector &baseMuons, JetVector &baseJets, TauVector &baseTaus) |
Get Baseline objects. | |
void | getSignalObjects (const ElectronVector &baseElectrons, const MuonVector &baseMuons, const JetVector &baseJets, const TauVector &baseTaus, ElectronVector &signalElectrons, MuonVector &signalMuons, JetVector &signalJets, TauVector &signalTaus, TauId &sigTauId) |
Get Signal Objects. | |
ElectronVector | getSignalElectrons (const ElectronVector &baseElecs) |
Signal objects. | |
MuonVector | getSignalMuons (const MuonVector &baseMuons) |
PhotonVector | getSignalPhotons (Susy::SusyNtObject *susyNt) |
TauVector | getSignalTaus (const TauVector &baseTaus) |
JetVector | getSignalJets (const JetVector &baseJets) |
bool | isSignal (const Susy::Lepton *l) |
Check if signal object. | |
bool | isSignal (const Susy::Electron *e) |
bool | isSignal (const Susy::Muon *m) |
bool | isSignal (const Susy::Tau *tau) |
void | buildLeptons (LeptonVector &lep, const ElectronVector &ele, const MuonVector &muo) |
Build lepton vector, sort by pT. | |
Susy::Met * | getMet (Susy::SusyNtObject *susyNt, SusyNtSys sys) |
Get the Met, for the appropriate systematic. | |
Susy::TrackMet * | getTrackMet (Susy::SusyNtObject *susyNt, SusyNtSys sys) |
int | numBJets (const JetVector &jets) |
bool | hasBJet (const JetVector &jets) |
JetVector | getBJets (const JetVector &jets) |
int | numberOfCLJets (const JetVector &jets) |
int | numberOfCBJets (const JetVector &jets) |
int | numberOfFJets (const JetVector &jets) |
float | bTagSF (const JetVector &jets) |
Method to get the nominal b-Tag efficiency scale-factor for the collection of jets. | |
float | leptonEffSF (const LeptonVector &leps) |
Method to get the nominal lepton efficiency scale-factor for the collection of leptons. | |
float | leptonEffSF (const Lepton *lep) |
Method to get the nominal lepton scale-factor. | |
float | leptonEffSF (const Lepton &lep) |
float | leptonEffSFError (const Lepton *lep, const NtSys::SusyNtSys sys) |
Method to get the error on the lepton scale-factor for systematic sys. | |
float | leptonEffSFError (const Lepton &lep, const NtSys::SusyNtSys sys) |
template<class T > | |
void | dumpObjects (const std::vector< T > &objects) |
Call print on all objects in a vector. | |
template<class T > | |
void | dumpObjects (const std::vector< T * > &objects) |
Public Attributes | |
ElectronSelector * | m_electronSelector |
select electrons according to the current analysis settings | |
MuonSelector * | m_muonSelector |
select muons according to the current analysis settings | |
TauSelector * | m_tauSelector |
select taus according to the current analysis settings | |
JetSelector * | m_jetSelector |
select jets according to the current analysis settings | |
OverlapTools * | m_overlapTool |
tool to perform the analysis' OR procedure | |
TriggerTools | m_triggerTool |
tool to access the trigger information | |
Protected Attributes | |
AnalysisType | m_anaType |
Analysis type. currently 2-lep or 3-lep. | |
bool | m_doSFOS |
toggle to set whether to remove SFOS pairs from baseline leptons (set based on AnalysisType) |
A class of useful tools for working with SusyNt.
ElectronVector SusyNtTools::getPreElectrons | ( | Susy::SusyNtObject * | susyNt, |
SusyNtSys | sys | ||
) |
'Pre' objects - before full baseline requirements are applied, raw objects stored in SusyNt. Note: In these methods the object systematics are applied.
void SusyNtTools::getPreObjects | ( | Susy::SusyNtObject * | susyNt, |
SusyNtSys | sys, | ||
ElectronVector & | preElectrons, | ||
MuonVector & | preMuons, | ||
JetVector & | preJets, | ||
TauVector & | preTaus | ||
) |
Get 'Pre' Objects. These are the objects ase they are in the SusyNt. The systematic variations are applied here and then propagated to baseline and signal objects.
bool SusyNtTools::initTriggerTool | ( | const std::string & | anyInputFilename | ) |
initialize the trigger tool; return success
TriggerTools needs to read the histogram with the triggers. You need to call this function if you want to use the trigger tool. The histogram can be read from any of the input files (for example the one from ChainHelper::firstFile()).
void SusyNtTools::setAnaType | ( | AnalysisType | A, |
bool | verbose = false |
||
) |
Set AnalysisType to determine object selections and overlap procedure