MuonTriggerMatching Class Reference

#include <MuonTriggerMatching.h>

Inheritance diagram for MuonTriggerMatching:
LeptonTriggerMatching

List of all members.

Classes

struct  DimuonChainInfo

Public Member Functions

 MuonTriggerMatching (const MTT__D3PDEvent *d3pd, TTree *TrigConfTree=0)
bool match (const double eta, const double phi, const std::string &chain, const std::string &l1item="")
std::pair< int, int > matchedTrack (const double eta, const double phi, const std::string &chain, const std::string &l1item="")
bool matchDimuon (const TLorentzVector &muon1, const TLorentzVector &muon2, const std::string &chain, std::pair< bool, bool > &result1, std::pair< bool, bool > &result2)
int matchDimuon_python (const TLorentzVector &muon1, const TLorentzVector &muon2, const std::string &chain)
void useIndex (bool x)

Detailed Description

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

Validated on NTUP_SMWZ. Should work on any ntuples which contains TrigMuonD3PDMaker block


Constructor & Destructor Documentation

MuonTriggerMatching::MuonTriggerMatching ( 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 MuonTriggerMatching::match ( const double  eta,
const double  phi,
const std::string &  chain,
const std::string &  l1item = "" 
)

look for matching EF muon trigger object

Parameters:
eta [in] eta of an offline muon
phi [in] phi of an offline muon
chain [in] single muon EF chain name. ex) "EF_mu18"
l1item [in] optional: minimum level1 threshold required for seed of the matching EF chain ex) "L1_MU11"
Returns:
true if matching EF object was found false otherwise.
bool MuonTriggerMatching::matchDimuon ( const TLorentzVector &  muon1,
const TLorentzVector &  muon2,
const std::string &  chain,
std::pair< bool, bool > &  result1,
std::pair< bool, bool > &  result2 
)

look for matching EF di-muon trigger object

Parameters:
muon1 [in] TLorentzVector of muon
muon2 [in] TLorentzVector of muon
chain [in] di-muon EF chain name. ex) "EF_2mu10"
result1 [out] bool values indicating if muon1 passed the first/second thresholds of the di-muon trigger.
result2 [out] bool values indicating if muon2 passed the first/second thresholds of the di-muon trigger.
Returns:
true if matching EF object was found false otherwise.
std::pair< int, int > MuonTriggerMatching::matchedTrack ( const double  eta,
const double  phi,
const std::string &  chain,
const std::string &  l1item = "" 
)

look for matching EF muon trigger object

Parameters:
eta [in] eta of an offline muon
phi [in] phi of an offline muon
chain [in] single muon EF chain name. ex) "EF_mu18"
EFmuon [out] to be used for accessing the matched EF trigger object
l1item [in] optional: minimum level1 threshold required for seed of the matching EF chain ex) "L1_MU11"
Returns:
pair of int to access trigger object

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

Generated on 15 Apr 2017 for RootCore Packages by  doxygen 1.6.1