|
|
#include <MuonMiniAOD.h>
Definition at line 25 of file MuonMiniAOD.h.
◆ MuonMiniAOD()
◆ ~MuonMiniAOD()
MuonMiniAOD::~MuonMiniAOD |
( |
| ) |
|
|
override |
◆ analyze()
Inizialize parameters for histo binning.
Reimplemented from DQMEDAnalyzer.
Definition at line 76 of file MuonMiniAOD.cc.
92 unsigned int theIndexOfThePrimaryVertex = 999.;
94 LogTrace(
metname) <<
"[EfficiencyAnalyzer] Could not find vertex collection" << std::endl;
95 for (
unsigned int ind = 0; ind <
vertex->size(); ++ind) {
96 if ((*
vertex)[ind].isValid() && !((*vertex)[ind].isFake())) {
97 theIndexOfThePrimaryVertex = ind;
103 if (theIndexOfThePrimaryVertex < 100) {
104 posVtx = ((*vertex)[theIndexOfThePrimaryVertex]).
position();
105 errVtx = ((*vertex)[theIndexOfThePrimaryVertex]).
error();
107 LogInfo(
"RecoMuonValidator") <<
"reco::PrimaryVertex not found, use BeamSpot position instead\n";
113 posVtx =
bs.position();
114 errVtx(0, 0) =
bs.BeamWidthX();
115 errVtx(1, 1) =
bs.BeamWidthY();
116 errVtx(2, 2) =
bs.sigmaZ();
126 if (
PassesCut_A(muon1, thePrimaryVertex, (*monitor)->getName()))
130 if (
PassesCut_B(muon1, thePrimaryVertex, (*monitor)->getName()))
135 (*monitor)->Fill(Pass_A, Pass_B);
References cms::cuda::bs, relativeConstraints::error, iEvent, LogTrace, metname, beam_dqm_sourceclient-live_cfg::monitor, PDWG_BPHSkim_cff::muons, position, bphysicsOniaDQM_cfi::vertex, and PDWG_TauSkim_cff::workingPoints.
◆ bookHistograms()
Implements DQMEDAnalyzer.
Definition at line 17 of file MuonMiniAOD.cc.
31 (*monitor)->setBinLabel(1,
"Pass", 1);
32 (*monitor)->setBinLabel(2,
"No Pass", 1);
33 (*monitor)->setBinLabel(1,
"Pass", 2);
34 (*monitor)->setBinLabel(2,
"No Pass", 2);
References dqm::implementation::IBooker::book2D(), dqm::implementation::NavigatorBase::cd(), beam_dqm_sourceclient-live_cfg::monitor, dqm::implementation::NavigatorBase::setCurrentFolder(), and PDWG_TauSkim_cff::workingPoints.
◆ PassesCut_A()
◆ PassesCut_B()
Definition at line 57 of file MuonMiniAOD.cc.
61 return muon1->isTightMuon(thePrimaryVertex);
63 return muon1->isMediumMuon();
65 return muon1->isLooseMuon();
67 return muon1->isHighPtMuon(thePrimaryVertex);
69 return muon1->isSoftMuon(thePrimaryVertex);
71 LogInfo(
"RecoMuonValidator") <<
"[MuonMiniAOD]: MuonMiniAOD. Unknown WP, returning false.\n";
◆ doPVCheck_
bool MuonMiniAOD::doPVCheck_ |
|
private |
◆ metname
std::string MuonMiniAOD::metname |
|
private |
◆ parameters
◆ theBeamSpotLabel_
◆ theMuonCollectionLabel_
◆ theVertexLabel_
◆ workingPoints
bool PassesCut_A(edm::View< pat::Muon >::const_iterator, reco::Vertex, TString)
bool isSoftMuon(const reco::Muon &, const reco::Vertex &, bool run2016_hip_mitigation=false)
math::Error< dimension >::type Error
covariance error matrix (3x3)
virtual void setCurrentFolder(std::string const &fullpath)
Log< level::Info, false > LogInfo
edm::EDGetTokenT< edm::View< pat::Muon > > theMuonCollectionLabel_
bool isLooseMuon(const reco::Muon &)
edm::ParameterSet parameters
bool isHighPtMuon(const reco::Muon &, const reco::Vertex &)
std::vector< MonitorElement * > workingPoints
bool isTightMuon(const reco::Muon &, const reco::Vertex &)
static int position[264][3]
bool isMediumMuon(const reco::Muon &, bool run2016_hip_mitigation=false)
math::XYZPoint Point
point in the space
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
T getParameter(std::string const &) const
edm::EDGetTokenT< reco::VertexCollection > theVertexLabel_
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
bool PassesCut_B(edm::View< pat::Muon >::const_iterator, reco::Vertex, TString)
edm::EDGetTokenT< reco::BeamSpot > theBeamSpotLabel_