#include <LeptonTriggerMatching.h>
Classes | |
| struct | EFelectron |
| struct | EFmuon |
Public Types | |
| enum | MuonChainType { CHAIN_CB = 0, CHAIN_SA = 1, CHAIN_MG = 2 } |
Public Member Functions | |
| LeptonTriggerMatching (const MTT__D3PDEvent *d3pd, TTree *=0) | |
| double | getDeltaR () const |
| void | setDeltaR (const double dr) |
| void | setTriggerNavigationVariables (const MTT__D3PDEvent *d3pd) |
| void | setDebug (bool x) |
| void | showSMKeys () |
| void | dumpChainIdMap (const int SMK) |
| void | createChainIdMapFile (const int SMK, const std::string &fileName) |
Protected Member Functions | |
| double | matchedTrackDetail (EFelectron &efElectronId, const EFelectron &usedEfElectronId, const double eta, const double phi, const std::vector< int > &container, const std::vector< int > &status) |
| double | matchedTrackDetail (EFmuon &efMuonId, const EFmuon &usedEfMuonId, const std::string &threshold, const double eta, const double phi, const std::vector< int > &container, const std::vector< int > &status) |
| double | index_match (const double eta, const double phi, const std::string &chain, const std::string &threshold, EFmuon &efMuonId, const EFmuon &usedEfMuonId) |
| bool | L1_isPassed (const int iRoI, const std::string &l1item) |
| int | getL1pt (const std::string &l1item) |
| int | getChainIndex (const std::string &chain) |
| void | readTrigConfTree (TTree *TrigConfTree, const std::vector< std::string > &skip) |
| double | dR (const double eta1, const double phi1, const double eta2, const double phi2) |
| void | tokenize (const std::string &str, std::vector< std::string > &tokens, const std::string &delimiters) |
| bool | isEqual (const double x, const double y) |
Protected Attributes | |
| const MTT__D3PDEvent * | m_d3pd |
| double | m_matchingDr |
| bool | m_debug |
|
std::map< int, std::map < std::string, int > > | m_MapOfChainIdMap |
| std::set< std::string > | m_NotFoundChain |
| bool | m_isIndexMatchUsed |
| bool | m_isNavigationMatchUsed |
This class implements method for lepton trigger matching with navigation information in ntuple analysis.
Validated on NTUP_SMWZ. Should work on any ntuples which contains TrigMuonD3PDMaker block
| LeptonTriggerMatching::LeptonTriggerMatching | ( | const MTT__D3PDEvent * | d3pd, | |
| TTree * | = 0 | |||
| ) | [inline] |
default constructor
| d3pd | [in] class object used for the given ntuple analysis | |
| TrigConfTree | [in] pointer of physicsMeta/TrigConfTree block [optional] |
| double LeptonTriggerMatching::getDeltaR | ( | ) | const [inline] |
returns minimum distance required for offline lepton and trigger object matching
| void LeptonTriggerMatching::setDeltaR | ( | const double | dr | ) | [inline] |
set minimum distance required for offline lepton and trigger object matching
| dr | [in] matching distance for offline lepton and trigger object matching |
1.6.1