ElectronTriggerMatching Class Reference

#include <ElectronTriggerMatching.h>

Inheritance diagram for ElectronTriggerMatching:
LeptonTriggerMatching

List of all members.

Classes

struct  DielectronChainInfo

Public Member Functions

 ElectronTriggerMatching (const MTT__D3PDEvent *d3pd, TTree *TrigConfTree=0)
bool match (const double eta, const double phi, const std::string &chain)
bool matchDielectron (const TLorentzVector &electron1, const TLorentzVector &electron2, const std::string &chain, bool &result1, bool &result2)
bool matchDielectron (const TLorentzVector &electron1, const TLorentzVector &electron2, const std::string &chain, std::pair< bool, bool > &result1, std::pair< bool, bool > &result2)
int matchDielectron_python (const TLorentzVector &electron1, const TLorentzVector &electron2, const std::string &chain)
bool matchElectronMuon (const TLorentzVector &electron, const TLorentzVector &muon, const std::string &chain)

Detailed Description

Author:
Toyonobu Okuyama
Takashi Matsushita This class implements method for electron trigger matching with navigation information in ntuple analysis.

Validated on NTUP_SMWZ. Should work on any ntuples which contains trigger navigation information


Constructor & Destructor Documentation

ElectronTriggerMatching::ElectronTriggerMatching ( const MTT__D3PDEvent d3pd,
TTree *  TrigConfTree = 0 
) [inline]

default constructor

Parameters:
d3pd [in] class object used for the given ntuple analysis
TrigConfTree [in] pointer of physicsMeta/TrigConfTree block [optional]

Member Function Documentation

bool ElectronTriggerMatching::match ( const double  eta,
const double  phi,
const std::string &  chain 
)

look for matching EF electron trigger object

Parameters:
eta [in] eta of an offline electron
phi [in] phi of an offline electron
chain [in] single electron EF chain name. ex) "EF_mu18"
Returns:
true if matching EF object was found false otherwise.
bool ElectronTriggerMatching::matchDielectron ( const TLorentzVector &  electron1,
const TLorentzVector &  electron2,
const std::string &  chain,
bool &  result1,
bool &  result2 
)

look for matching EF di-electron trigger object

Parameters:
electron1 [in] TLorentzVector of electron
electron2 [in] TLorentzVector of electron
chain [in] di-electron EF chain name. ex) "EF_2e12"
result1 [out] bool values indicating if electron1 passed the di-muon trigger.
result2 [out] bool values indicating if electron2 passed the di-muon trigger.
Returns:
true if matching EF object was found false otherwise.
bool ElectronTriggerMatching::matchElectronMuon ( const TLorentzVector &  electron,
const TLorentzVector &  muon,
const std::string &  chain 
)

look for matching e/mu combined trigger object

Parameters:
electron [in] TLorentzVector of electron
muon [in] TLorentzVector of muon
chain [in] electron-muon EF chain name. ex) "EF_e12TVh_medium1_mu8"
Returns:
true if matching EF object was found false otherwise.

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

Generated on 1 Dec 2017 for RootCore Packages by  doxygen 1.6.1