CMS 3D CMS Logo

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

#include <HLTMuonMatchAndPlot.h>

Public Member Functions

void analyze (edm::Handle< reco::MuonCollection > &, edm::Handle< reco::BeamSpot > &, edm::Handle< reco::VertexCollection > &, edm::Handle< trigger::TriggerEvent > &, edm::Handle< edm::TriggerResults > &)
 
void beginRun (DQMStore::IBooker &, const edm::Run &, const edm::EventSetup &)
 
void endRun (const edm::Run &, const edm::EventSetup &)
 
void fillEdges (size_t &nBins, float *&edges, const std::vector< double > &binning)
 
template<class T >
void fillMapFromPSet (std::map< std::string, T > &, const edm::ParameterSet &, std::string)
 
template<class T >
void fillMapFromPSet (map< string, T > &m, const ParameterSet &pset, string target)
 
 HLTMuonMatchAndPlot (const edm::ParameterSet &, std::string, const std::vector< std::string > &)
 Constructor. More...
 
template<class T1 , class T2 >
std::vector< size_t > matchByDeltaR (const std::vector< T1 > &, const std::vector< T2 > &, const double maxDeltaR=NOMATCH)
 
template<class T1 , class T2 >
vector< size_t > matchByDeltaR (const vector< T1 > &collection1, const vector< T2 > &collection2, const double maxDeltaR)
 

Private Member Functions

void book1D (DQMStore::IBooker &, std::string, std::string, std::string)
 
void book2D (DQMStore::IBooker &, std::string, std::string, std::string, std::string)
 
reco::MuonCollection selectedMuons (const reco::MuonCollection &, const reco::BeamSpot &, bool, const StringCutObjectSelector< reco::Muon > &, double, double)
 
trigger::TriggerObjectCollection selectedTriggerObjects (const trigger::TriggerObjectCollection &, const trigger::TriggerEvent &, bool hasTriggerCuts, const StringCutObjectSelector< trigger::TriggerObject > triggerSelector)
 

Private Attributes

std::map< std::string,
std::vector< double > > 
binParams_
 
unsigned int cutMinPt_
 
std::string destination_
 
bool hasProbeRecoCuts
 
bool hasTargetRecoCuts
 
bool hasTriggerCuts_
 
std::map< std::string,
MonitorElement * > 
hists_
 
std::string hltPath_
 
std::string hltProcessName_
 
std::vector< std::string > moduleLabels_
 
std::map< std::string, double > plotCuts_
 
double probeD0Cut_
 
StringCutObjectSelector
< reco::Muon
probeMuonSelector_
 
edm::ParameterSet probeParams_
 
double probeZ0Cut_
 
std::vector< std::string > requiredTriggers_
 
double targetD0Cut_
 
StringCutObjectSelector
< reco::Muon
targetMuonSelector_
 
edm::ParameterSet targetParams_
 
double targetptCutJpsi_
 
double targetptCutZ_
 
double targetZ0Cut_
 
std::string triggerLevel_
 
StringCutObjectSelector
< trigger::TriggerObject
triggerSelector_
 

Detailed Description

Match reconstructed muons to HLT objects and plot efficiencies.

Note that this is not a true EDAnalyzer;

Documentation available on the CMS TWiki: https://twiki.cern.ch/twiki/bin/view/CMS/MuonHLTOfflinePerformance

Author
J. Slaunwhite, Jeff Klukas

Contanier class to handle vector of reconstructed muons matched to HLT objects used to plot efficiencies.

Note that this is not a true EDAnalyzer; rather, the intent is that one EDAnalyzer would call an instance of HLTMuonMatchAndPlotContainer

Documentation available on the CMS TWiki: https://twiki.cern.ch/twiki/bin/view/CMS/MuonHLTOfflinePerformance

Author
C. Battilana

Definition at line 60 of file HLTMuonMatchAndPlot.h.

Constructor & Destructor Documentation

HLTMuonMatchAndPlot::HLTMuonMatchAndPlot ( const edm::ParameterSet ,
std::string  ,
const std::vector< std::string > &   
)

Constructor.

Definition at line 34 of file HLTMuonMatchAndPlot.cc.

Member Function Documentation

void HLTMuonMatchAndPlot::analyze ( edm::Handle< reco::MuonCollection > &  allMuons,
edm::Handle< reco::BeamSpot > &  beamSpot,
edm::Handle< reco::VertexCollection > &  vertices,
edm::Handle< trigger::TriggerEvent > &  triggerSummary,
edm::Handle< edm::TriggerResults > &  triggerResults 
)

Definition at line 150 of file HLTMuonMatchAndPlot.cc.

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

Definition at line 84 of file HLTMuonMatchAndPlot.cc.

void HLTMuonMatchAndPlot::book1D ( DQMStore::IBooker ,
std::string  ,
std::string  ,
std::string   
)
private

Definition at line 507 of file HLTMuonMatchAndPlot.cc.

void HLTMuonMatchAndPlot::book2D ( DQMStore::IBooker ,
std::string  ,
std::string  ,
std::string  ,
std::string   
)
private

Definition at line 534 of file HLTMuonMatchAndPlot.cc.

void HLTMuonMatchAndPlot::endRun ( const edm::Run iRun,
const edm::EventSetup iSetup 
)

Definition at line 142 of file HLTMuonMatchAndPlot.cc.

void HLTMuonMatchAndPlot::fillEdges ( size_t &  nBins,
float *&  edges,
const std::vector< double > &  binning 
)

Definition at line 341 of file HLTMuonMatchAndPlot.cc.

template<class T >
void HLTMuonMatchAndPlot::fillMapFromPSet ( std::map< std::string, T > &  ,
const edm::ParameterSet ,
std::string   
)
template<class T >
void HLTMuonMatchAndPlot::fillMapFromPSet ( map< string, T > &  m,
const ParameterSet pset,
string  target 
)

Definition at line 375 of file HLTMuonMatchAndPlot.cc.

template<class T1 , class T2 >
std::vector<size_t> HLTMuonMatchAndPlot::matchByDeltaR ( const std::vector< T1 > &  ,
const std::vector< T2 > &  ,
const double  maxDeltaR = NOMATCH 
)
template<class T1 , class T2 >
vector<size_t> HLTMuonMatchAndPlot::matchByDeltaR ( const vector< T1 > &  collection1,
const vector< T2 > &  collection2,
const double  maxDeltaR 
)

Definition at line 404 of file HLTMuonMatchAndPlot.cc.

MuonCollection HLTMuonMatchAndPlot::selectedMuons ( const reco::MuonCollection allMuons,
const reco::BeamSpot beamSpot,
bool  hasRecoCuts,
const StringCutObjectSelector< reco::Muon > &  selector,
double  d0Cut,
double  z0Cut 
)
private

Definition at line 449 of file HLTMuonMatchAndPlot.cc.

TriggerObjectCollection HLTMuonMatchAndPlot::selectedTriggerObjects ( const trigger::TriggerObjectCollection triggerObjects,
const trigger::TriggerEvent triggerSummary,
bool  hasTriggerCuts,
const StringCutObjectSelector< trigger::TriggerObject triggerSelector 
)
private

Definition at line 478 of file HLTMuonMatchAndPlot.cc.

Member Data Documentation

std::map<std::string, std::vector<double> > HLTMuonMatchAndPlot::binParams_
private

Definition at line 106 of file HLTMuonMatchAndPlot.h.

unsigned int HLTMuonMatchAndPlot::cutMinPt_
private

Definition at line 113 of file HLTMuonMatchAndPlot.h.

std::string HLTMuonMatchAndPlot::destination_
private

Definition at line 104 of file HLTMuonMatchAndPlot.h.

bool HLTMuonMatchAndPlot::hasProbeRecoCuts
private

Definition at line 120 of file HLTMuonMatchAndPlot.h.

bool HLTMuonMatchAndPlot::hasTargetRecoCuts
private

Definition at line 119 of file HLTMuonMatchAndPlot.h.

bool HLTMuonMatchAndPlot::hasTriggerCuts_
private

Definition at line 132 of file HLTMuonMatchAndPlot.h.

std::map<std::string, MonitorElement *> HLTMuonMatchAndPlot::hists_
private

Definition at line 116 of file HLTMuonMatchAndPlot.h.

std::string HLTMuonMatchAndPlot::hltPath_
private

Definition at line 114 of file HLTMuonMatchAndPlot.h.

std::string HLTMuonMatchAndPlot::hltProcessName_
private

Definition at line 103 of file HLTMuonMatchAndPlot.h.

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

Definition at line 115 of file HLTMuonMatchAndPlot.h.

std::map<std::string, double> HLTMuonMatchAndPlot::plotCuts_
private

Definition at line 107 of file HLTMuonMatchAndPlot.h.

double HLTMuonMatchAndPlot::probeD0Cut_
private

Definition at line 129 of file HLTMuonMatchAndPlot.h.

StringCutObjectSelector<reco::Muon> HLTMuonMatchAndPlot::probeMuonSelector_
private

Definition at line 127 of file HLTMuonMatchAndPlot.h.

edm::ParameterSet HLTMuonMatchAndPlot::probeParams_
private

Definition at line 109 of file HLTMuonMatchAndPlot.h.

double HLTMuonMatchAndPlot::probeZ0Cut_
private

Definition at line 128 of file HLTMuonMatchAndPlot.h.

std::vector<std::string> HLTMuonMatchAndPlot::requiredTriggers_
private

Definition at line 105 of file HLTMuonMatchAndPlot.h.

double HLTMuonMatchAndPlot::targetD0Cut_
private

Definition at line 124 of file HLTMuonMatchAndPlot.h.

StringCutObjectSelector<reco::Muon> HLTMuonMatchAndPlot::targetMuonSelector_
private

Definition at line 122 of file HLTMuonMatchAndPlot.h.

edm::ParameterSet HLTMuonMatchAndPlot::targetParams_
private

Definition at line 108 of file HLTMuonMatchAndPlot.h.

double HLTMuonMatchAndPlot::targetptCutJpsi_
private

Definition at line 126 of file HLTMuonMatchAndPlot.h.

double HLTMuonMatchAndPlot::targetptCutZ_
private

Definition at line 125 of file HLTMuonMatchAndPlot.h.

double HLTMuonMatchAndPlot::targetZ0Cut_
private

Definition at line 123 of file HLTMuonMatchAndPlot.h.

std::string HLTMuonMatchAndPlot::triggerLevel_
private

Definition at line 112 of file HLTMuonMatchAndPlot.h.

StringCutObjectSelector<trigger::TriggerObject> HLTMuonMatchAndPlot::triggerSelector_
private

Definition at line 131 of file HLTMuonMatchAndPlot.h.