CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
HLTMuonPlotter Class Reference

#include <HLTMuonPlotter.h>

Classes

struct  matchesByDescendingPt
 
struct  MatchStruct
 

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &)
 
void beginJob ()
 
void beginRun (DQMStore::IBooker &, const edm::Run &, const edm::EventSetup &)
 
 HLTMuonPlotter (const edm::ParameterSet &, std::string, const std::vector< std::string > &, const std::vector< std::string > &, const boost::tuple< edm::EDGetTokenT< trigger::TriggerEventWithRefs >, edm::EDGetTokenT< reco::GenParticleCollection >, edm::EDGetTokenT< reco::MuonCollection > > &)
 
 ~HLTMuonPlotter ()
 

Static Public Member Functions

static boost::tuple
< edm::EDGetTokenT
< trigger::TriggerEventWithRefs >
, edm::EDGetTokenT
< reco::GenParticleCollection >
, edm::EDGetTokenT
< reco::MuonCollection > > 
getTokens (const edm::ParameterSet &, edm::ConsumesCollector &&)
 

Private Member Functions

void analyzePath (const edm::Event &, const std::string &, const std::string &, const std::vector< MatchStruct > &, edm::Handle< trigger::TriggerEventWithRefs >)
 
void bookHist (DQMStore::IBooker &, std::string, std::string, std::string, std::string)
 
void findMatches (std::vector< MatchStruct > &, const l1t::MuonVectorRef &candsL1, const std::vector< std::vector< const reco::RecoChargedCandidate * > > &)
 

Private Attributes

double cutMaxEta_
 
double cutMinPt_
 
unsigned int cutMotherId_
 
std::vector< double > cutsDr_
 
std::map< std::string,
MonitorElement * > 
elements_
 
std::string genMuonCut_
 
StringCutObjectSelector
< reco::GenParticle > * 
genMuonSelector_
 
edm::EDGetTokenT
< reco::GenParticleCollection
genParticleLabel_
 
std::string hltPath_
 
std::string hltProcessName_
 
edm::EDGetTokenT
< trigger::TriggerEventWithRefs
hltTriggerSummaryRAW_
 
L1MuonMatcherAlgo l1Matcher_
 
std::vector< std::string > moduleLabels_
 
std::vector< double > parametersEta_
 
std::vector< double > parametersPhi_
 
std::vector< double > parametersTurnOn_
 
std::string recMuonCut_
 
edm::EDGetTokenT
< reco::MuonCollection
recMuonLabel_
 
StringCutObjectSelector
< reco::Muon > * 
recMuonSelector_
 
std::vector< std::string > stepLabels_
 

Detailed Description

Generate histograms for muon trigger efficiencies Documentation available on the CMS TWiki: https://twiki.cern.ch/twiki/bin/view/CMS/MuonHLTOfflinePerformance

Author
J. Klukas, M. Vander Donckt, J. Alcaraz

Definition at line 58 of file HLTMuonPlotter.h.

Constructor & Destructor Documentation

HLTMuonPlotter::HLTMuonPlotter ( const edm::ParameterSet ,
std::string  ,
const std::vector< std::string > &  ,
const std::vector< std::string > &  ,
const boost::tuple< edm::EDGetTokenT< trigger::TriggerEventWithRefs >, edm::EDGetTokenT< reco::GenParticleCollection >, edm::EDGetTokenT< reco::MuonCollection > > &   
)

Definition at line 35 of file HLTMuonPlotter.cc.

HLTMuonPlotter::~HLTMuonPlotter ( )
inline

Definition at line 69 of file HLTMuonPlotter.h.

References genMuonSelector_, and recMuonSelector_.

69  {
70  delete genMuonSelector_;
71  delete recMuonSelector_;
72  }
StringCutObjectSelector< reco::Muon > * recMuonSelector_
StringCutObjectSelector< reco::GenParticle > * genMuonSelector_

Member Function Documentation

void HLTMuonPlotter::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)

Definition at line 136 of file HLTMuonPlotter.cc.

void HLTMuonPlotter::analyzePath ( const edm::Event ,
const std::string &  ,
const std::string &  ,
const std::vector< MatchStruct > &  ,
edm::Handle< trigger::TriggerEventWithRefs  
)
private
void HLTMuonPlotter::beginJob ( void  )

Definition at line 74 of file HLTMuonPlotter.cc.

void HLTMuonPlotter::beginRun ( DQMStore::IBooker iBooker,
const edm::Run iRun,
const edm::EventSetup iSetup 
)

Definition at line 82 of file HLTMuonPlotter.cc.

void HLTMuonPlotter::bookHist ( DQMStore::IBooker ,
std::string  ,
std::string  ,
std::string  ,
std::string   
)
private

Definition at line 399 of file HLTMuonPlotter.cc.

void HLTMuonPlotter::findMatches ( std::vector< MatchStruct > &  matches,
const l1t::MuonVectorRef candsL1,
const std::vector< std::vector< const reco::RecoChargedCandidate * > > &  candsHlt 
)
private

Definition at line 312 of file HLTMuonPlotter.cc.

Definition at line 294 of file HLTMuonPlotter.cc.

Member Data Documentation

double HLTMuonPlotter::cutMaxEta_
private

Definition at line 137 of file HLTMuonPlotter.h.

double HLTMuonPlotter::cutMinPt_
private

Definition at line 136 of file HLTMuonPlotter.h.

unsigned int HLTMuonPlotter::cutMotherId_
private

Definition at line 138 of file HLTMuonPlotter.h.

std::vector<double> HLTMuonPlotter::cutsDr_
private

Definition at line 139 of file HLTMuonPlotter.h.

std::map<std::string, MonitorElement *> HLTMuonPlotter::elements_
private

Definition at line 148 of file HLTMuonPlotter.h.

std::string HLTMuonPlotter::genMuonCut_
private

Definition at line 140 of file HLTMuonPlotter.h.

StringCutObjectSelector<reco::GenParticle>* HLTMuonPlotter::genMuonSelector_
private

Definition at line 143 of file HLTMuonPlotter.h.

Referenced by ~HLTMuonPlotter().

edm::EDGetTokenT<reco::GenParticleCollection> HLTMuonPlotter::genParticleLabel_
private

Definition at line 129 of file HLTMuonPlotter.h.

std::string HLTMuonPlotter::hltPath_
private

Definition at line 122 of file HLTMuonPlotter.h.

std::string HLTMuonPlotter::hltProcessName_
private

Definition at line 123 of file HLTMuonPlotter.h.

edm::EDGetTokenT<trigger::TriggerEventWithRefs> HLTMuonPlotter::hltTriggerSummaryRAW_
private

Definition at line 128 of file HLTMuonPlotter.h.

L1MuonMatcherAlgo HLTMuonPlotter::l1Matcher_
private

Definition at line 146 of file HLTMuonPlotter.h.

std::vector<std::string> HLTMuonPlotter::moduleLabels_
private

Definition at line 125 of file HLTMuonPlotter.h.

std::vector<double> HLTMuonPlotter::parametersEta_
private

Definition at line 132 of file HLTMuonPlotter.h.

std::vector<double> HLTMuonPlotter::parametersPhi_
private

Definition at line 133 of file HLTMuonPlotter.h.

std::vector<double> HLTMuonPlotter::parametersTurnOn_
private

Definition at line 134 of file HLTMuonPlotter.h.

std::string HLTMuonPlotter::recMuonCut_
private

Definition at line 141 of file HLTMuonPlotter.h.

edm::EDGetTokenT<reco::MuonCollection> HLTMuonPlotter::recMuonLabel_
private

Definition at line 130 of file HLTMuonPlotter.h.

StringCutObjectSelector<reco::Muon >* HLTMuonPlotter::recMuonSelector_
private

Definition at line 144 of file HLTMuonPlotter.h.

Referenced by ~HLTMuonPlotter().

std::vector<std::string> HLTMuonPlotter::stepLabels_
private

Definition at line 126 of file HLTMuonPlotter.h.