Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Muon dqm 13 te v 74 x #10875

Merged
merged 2 commits into from Sep 2, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
72 changes: 36 additions & 36 deletions DQMOffline/Muon/interface/EfficiencyAnalyzer.h
Expand Up @@ -71,52 +71,52 @@ class EfficiencyAnalyzer : public DQMEDAnalyzer {
double vtxMin_;
double vtxMax_;

MonitorElement* h_passProbes_TightMu_pt;
MonitorElement* h_passProbes_TightMu_EB_pt;
MonitorElement* h_passProbes_TightMu_EE_pt;
MonitorElement* h_passProbes_TightMu_eta;
MonitorElement* h_passProbes_TightMu_hp_eta;
MonitorElement* h_passProbes_TightMu_phi;
MonitorElement* h_passProbes_detIsoTightMu_pt;
MonitorElement* h_passProbes_EB_detIsoTightMu_pt;
MonitorElement* h_passProbes_EE_detIsoTightMu_pt;
MonitorElement* h_passProbes_pfIsoTightMu_pt;
MonitorElement* h_passProbes_EB_pfIsoTightMu_pt;
MonitorElement* h_passProbes_EE_pfIsoTightMu_pt;
MonitorElement* h_passProbes_detIsoTightMu_nVtx;
MonitorElement* h_passProbes_pfIsoTightMu_nVtx;
MonitorElement* h_passProbes_EB_detIsoTightMu_nVtx;
MonitorElement* h_passProbes_EE_detIsoTightMu_nVtx;
MonitorElement* h_passProbes_EB_pfIsoTightMu_nVtx;
MonitorElement* h_passProbes_EE_pfIsoTightMu_nVtx;

MonitorElement* h_failProbes_TightMu_pt;
MonitorElement* h_failProbes_TightMu_eta;
MonitorElement* h_failProbes_TightMu_phi;
std::string ID_;

MonitorElement* h_passProbes_ID_pt;
MonitorElement* h_passProbes_ID_EB_pt;
MonitorElement* h_passProbes_ID_EE_pt;
MonitorElement* h_passProbes_ID_eta;
MonitorElement* h_passProbes_ID_hp_eta;
MonitorElement* h_passProbes_ID_phi;
MonitorElement* h_passProbes_detIsoID_pt;
MonitorElement* h_passProbes_EB_detIsoID_pt;
MonitorElement* h_passProbes_EE_detIsoID_pt;
MonitorElement* h_passProbes_pfIsoID_pt;
MonitorElement* h_passProbes_EB_pfIsoID_pt;
MonitorElement* h_passProbes_EE_pfIsoID_pt;
MonitorElement* h_passProbes_detIsoID_nVtx;
MonitorElement* h_passProbes_pfIsoID_nVtx;
MonitorElement* h_passProbes_EB_detIsoID_nVtx;
MonitorElement* h_passProbes_EE_detIsoID_nVtx;
MonitorElement* h_passProbes_EB_pfIsoID_nVtx;
MonitorElement* h_passProbes_EE_pfIsoID_nVtx;

MonitorElement* h_failProbes_ID_pt;
MonitorElement* h_failProbes_ID_eta;
MonitorElement* h_failProbes_ID_phi;

MonitorElement* h_allProbes_pt;
MonitorElement* h_allProbes_EB_pt;
MonitorElement* h_allProbes_EE_pt;
MonitorElement* h_allProbes_eta;
MonitorElement* h_allProbes_hp_eta;
MonitorElement* h_allProbes_phi;
MonitorElement* h_allProbes_TightMu_pt;
MonitorElement* h_allProbes_EB_TightMu_pt;
MonitorElement* h_allProbes_EE_TightMu_pt;
MonitorElement* h_allProbes_TightMu_nVtx;
MonitorElement* h_allProbes_EB_TightMu_nVtx;
MonitorElement* h_allProbes_EE_TightMu_nVtx;
MonitorElement* h_allProbes_ID_pt;
MonitorElement* h_allProbes_EB_ID_pt;
MonitorElement* h_allProbes_EE_ID_pt;
MonitorElement* h_allProbes_ID_nVtx;
MonitorElement* h_allProbes_EB_ID_nVtx;
MonitorElement* h_allProbes_EE_ID_nVtx;


MonitorElement* test_TightMu_Minv;

// Apply deltaBeta PU corrections to the PF isolation eficiencies.
MonitorElement* h_passProbes_pfIsodBTightMu_pt;
MonitorElement* h_passProbes_EB_pfIsodBTightMu_pt;
MonitorElement* h_passProbes_EE_pfIsodBTightMu_pt;
MonitorElement* h_passProbes_pfIsodBTightMu_nVtx;
MonitorElement* h_passProbes_EB_pfIsodBTightMu_nVtx;
MonitorElement* h_passProbes_EE_pfIsodBTightMu_nVtx;
MonitorElement* h_passProbes_pfIsodBID_pt;
MonitorElement* h_passProbes_EB_pfIsodBID_pt;
MonitorElement* h_passProbes_EE_pfIsodBID_pt;
MonitorElement* h_passProbes_pfIsodBID_nVtx;
MonitorElement* h_passProbes_EB_pfIsodBID_nVtx;
MonitorElement* h_passProbes_EE_pfIsodBID_nVtx;

int _numPV;

Expand Down
57 changes: 29 additions & 28 deletions DQMOffline/Muon/interface/EfficiencyPlotter.h
Expand Up @@ -68,36 +68,37 @@ class EfficiencyPlotter: public DQMEDHarvester {
int vtxBin;
double vtxMin;
double vtxMax;

std::string ID_;

// efficiency histograms
MonitorElement* h_eff_pt_TightMu;
MonitorElement* h_eff_pt_EB_TightMu;
MonitorElement* h_eff_pt_EE_TightMu;
MonitorElement* h_eff_eta_TightMu;
MonitorElement* h_eff_hp_eta_TightMu;
MonitorElement* h_eff_phi_TightMu;
MonitorElement* h_eff_pt_detIsoTightMu;
MonitorElement* h_eff_pt_EB_detIsoTightMu;
MonitorElement* h_eff_pt_EE_detIsoTightMu;
MonitorElement* h_eff_pt_pfIsoTightMu;
MonitorElement* h_eff_pt_EB_pfIsoTightMu;
MonitorElement* h_eff_pt_EE_pfIsoTightMu;

MonitorElement* h_eff_vtx_detIsoTightMu;
MonitorElement* h_eff_vtx_pfIsoTightMu;
MonitorElement* h_eff_vtx_EB_detIsoTightMu;
MonitorElement* h_eff_vtx_EE_detIsoTightMu;
MonitorElement* h_eff_vtx_EB_pfIsoTightMu;
MonitorElement* h_eff_vtx_EE_pfIsoTightMu;

MonitorElement* h_eff_pt_pfIsodBTightMu;
MonitorElement* h_eff_pt_EB_pfIsodBTightMu;
MonitorElement* h_eff_pt_EE_pfIsodBTightMu;

MonitorElement* h_eff_vtx_pfIsodBTightMu;
MonitorElement* h_eff_vtx_EB_pfIsodBTightMu;
MonitorElement* h_eff_vtx_EE_pfIsodBTightMu;

MonitorElement* h_eff_pt_ID;
MonitorElement* h_eff_pt_EB_ID;
MonitorElement* h_eff_pt_EE_ID;
MonitorElement* h_eff_eta_ID;
MonitorElement* h_eff_hp_eta_ID;
MonitorElement* h_eff_phi_ID;
MonitorElement* h_eff_pt_detIsoID;
MonitorElement* h_eff_pt_EB_detIsoID;
MonitorElement* h_eff_pt_EE_detIsoID;
MonitorElement* h_eff_pt_pfIsoID;
MonitorElement* h_eff_pt_EB_pfIsoID;
MonitorElement* h_eff_pt_EE_pfIsoID;

MonitorElement* h_eff_vtx_detIsoID;
MonitorElement* h_eff_vtx_pfIsoID;
MonitorElement* h_eff_vtx_EB_detIsoID;
MonitorElement* h_eff_vtx_EE_detIsoID;
MonitorElement* h_eff_vtx_EB_pfIsoID;
MonitorElement* h_eff_vtx_EE_pfIsoID;

MonitorElement* h_eff_pt_pfIsodBID;
MonitorElement* h_eff_pt_EB_pfIsodBID;
MonitorElement* h_eff_pt_EE_pfIsodBID;

MonitorElement* h_eff_vtx_pfIsodBID;
MonitorElement* h_eff_vtx_EB_pfIsodBID;
MonitorElement* h_eff_vtx_EE_pfIsodBID;
};

#endif
1 change: 1 addition & 0 deletions DQMOffline/Muon/interface/MuonRecoAnalyzer.h
Expand Up @@ -109,6 +109,7 @@ class MuonRecoAnalyzer : public DQMEDAnalyzer {
std::vector<MonitorElement*> oneOverptResolution;
std::vector<MonitorElement*> rhAnalysis;
std::vector<MonitorElement*> muVStkSytemRotation;
std::vector<MonitorElement*> phiVsetaGlbTrack;


MonitorElement* tunePResolution;
Expand Down
63 changes: 49 additions & 14 deletions DQMOffline/Muon/python/EfficencyPlotter_cfi.py
@@ -1,18 +1,53 @@
import FWCore.ParameterSet.Config as cms

effPlotter = cms.EDAnalyzer("EfficiencyPlotter",
phiMin = cms.double(-3.2),
etaMin = cms.double(-2.5),
ptMin = cms.double(10),
etaBin = cms.int32(8),
ptBin = cms.int32(10),
phiBin = cms.int32(8),
etaMax = cms.double(2.5),
phiMax = cms.double(3.2),
ptMax = cms.double(100),
vtxBin = cms.int32(10),
vtxMin = cms.double(0.5),
vtxMax = cms.double(40.5)
)
effPlotter_Loose = cms.EDAnalyzer("EfficiencyPlotter",
phiMin = cms.double(-3.2),
etaMin = cms.double(-2.5),
ptMin = cms.double(10),
etaBin = cms.int32(8),
ptBin = cms.int32(10),
phiBin = cms.int32(8),
etaMax = cms.double(2.5),
phiMax = cms.double(3.2),
ptMax = cms.double(100),
vtxBin = cms.int32(10),
vtxMin = cms.double(0.5),
vtxMax = cms.double(40.5),
MuonID = cms.string("Loose")
)


effPlotter_Medium = cms.EDAnalyzer("EfficiencyPlotter",
phiMin = cms.double(-3.2),
etaMin = cms.double(-2.5),
ptMin = cms.double(10),
etaBin = cms.int32(8),
ptBin = cms.int32(10),
phiBin = cms.int32(8),
etaMax = cms.double(2.5),
phiMax = cms.double(3.2),
ptMax = cms.double(100),
vtxBin = cms.int32(10),
vtxMin = cms.double(0.5),
vtxMax = cms.double(40.5),
MuonID = cms.string("Medium")
)


effPlotter_Tight = cms.EDAnalyzer("EfficiencyPlotter",
phiMin = cms.double(-3.2),
etaMin = cms.double(-2.5),
ptMin = cms.double(10),
etaBin = cms.int32(8),
ptBin = cms.int32(10),
phiBin = cms.int32(8),
etaMax = cms.double(2.5),
phiMax = cms.double(3.2),
ptMax = cms.double(100),
vtxBin = cms.int32(10),
vtxMin = cms.double(0.5),
vtxMax = cms.double(40.5),
MuonID = cms.string("Tight")
)


8 changes: 6 additions & 2 deletions DQMOffline/Muon/python/muonAnalyzer_cff.py
Expand Up @@ -17,7 +17,9 @@
staMuonSegmentAnalyzer*
muonKinVsEtaAnalyzer*
diMuonHistos*
muonEfficiencyAnalyzer*
LooseMuonEfficiencyAnalyzer*
MediumMuonEfficiencyAnalyzer*
TightMuonEfficiencyAnalyzer*
muonPFsequence*
muonRecoOneHLT)

Expand All @@ -28,5 +30,7 @@
staMuonSegmentAnalyzer*
muonKinVsEtaAnalyzer*
diMuonHistos*
muonEfficiencyAnalyzer*
LooseMuonEfficiencyAnalyzer*
MediumMuonEfficiencyAnalyzer*
TightMuonEfficiencyAnalyzer*
muonPFsequence)
66 changes: 64 additions & 2 deletions DQMOffline/Muon/python/muonEfficiencyAnalyzer_cfi.py
Expand Up @@ -2,7 +2,7 @@

from RecoMuon.TrackingTools.MuonServiceProxy_cff import *

muonEfficiencyAnalyzer = cms.EDAnalyzer("EfficiencyAnalyzer",
TightMuonEfficiencyAnalyzer = cms.EDAnalyzer("EfficiencyAnalyzer",
MuonServiceProxy,
MuonCollection = cms.InputTag("muons"),
TrackCollection = cms.InputTag("generalTracks"),
Expand All @@ -25,5 +25,67 @@

vtxBin = cms.int32(10),
vtxMax = cms.double(40.5),
vtxMin = cms.double(0.5)
vtxMin = cms.double(0.5),

ID = cms.string("Tight")
)


LooseMuonEfficiencyAnalyzer = cms.EDAnalyzer("EfficiencyAnalyzer",
MuonServiceProxy,
MuonCollection = cms.InputTag("muons"),
TrackCollection = cms.InputTag("generalTracks"),
VertexLabel = cms.InputTag("offlinePrimaryVertices"),
BeamSpotLabel = cms.InputTag("offlineBeamSpot"),

doPrimaryVertexCheck = cms.bool( True ),

ptBin = cms.int32(10),
ptMax = cms.double(100),
ptMin = cms.double(10),

etaBin = cms.int32(8),
etaMax = cms.double(2.5),
etaMin = cms.double(-2.5),

phiBin = cms.int32(8),
phiMax = cms.double(3.2),
phiMin = cms.double(-3.2),

vtxBin = cms.int32(10),
vtxMax = cms.double(40.5),
vtxMin = cms.double(0.5),

ID = cms.string("Loose")

)


MediumMuonEfficiencyAnalyzer = cms.EDAnalyzer("EfficiencyAnalyzer",
MuonServiceProxy,
MuonCollection = cms.InputTag("muons"),
TrackCollection = cms.InputTag("generalTracks"),
VertexLabel = cms.InputTag("offlinePrimaryVertices"),
BeamSpotLabel = cms.InputTag("offlineBeamSpot"),

doPrimaryVertexCheck = cms.bool( True ),

ptBin = cms.int32(10),
ptMax = cms.double(100),
ptMin = cms.double(10),

etaBin = cms.int32(8),
etaMax = cms.double(2.5),
etaMin = cms.double(-2.5),

phiBin = cms.int32(8),
phiMax = cms.double(3.2),
phiMin = cms.double(-3.2),

vtxBin = cms.int32(10),
vtxMax = cms.double(40.5),
vtxMin = cms.double(0.5),

ID = cms.string("Medium")

)
4 changes: 3 additions & 1 deletion DQMOffline/Muon/python/muonQualityTests_cff.py
Expand Up @@ -39,7 +39,9 @@

muonQualityTests = cms.Sequence(muonSourcesQualityTests*
muTrackResidualsTest*
effPlotter*
effPlotter_Loose*
effPlotter_Medium*
effPlotter_Tight*
muRecoTest*
muonClientsQualityTests*
muonComp2RefQualityTests*
Expand Down
4 changes: 2 additions & 2 deletions DQMOffline/Muon/python/muonRecoOneHLT_cfi.py
Expand Up @@ -30,7 +30,7 @@
dbLabel = cms.string( "MuonDQMTrigger"),
hltInputTag = cms.InputTag( "TriggerResults::HLT" ),
hltDBKey = cms.string('SingleMu'),
hltPaths = cms.vstring( "HLT_IsoMu30_eta2p1_v7" ),
hltPaths = cms.vstring( "HLT_IsoMu24_eta2p1_v*" ),
andOrHlt = cms.bool( True ),
errorReplyHlt = cms.bool( False ),
),
Expand All @@ -39,7 +39,7 @@
dbLabel = cms.string( "MuonDQMTrigger"),
hltInputTag = cms.InputTag( "TriggerResults::HLT" ),
hltDBKey = cms.string('DoubleMu'),
hltPaths = cms.vstring( "HLT_Mu17_Mu8_v11" ),
hltPaths = cms.vstring( "HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_v*" ),
andOrHlt = cms.bool( True ),
errorReplyHlt = cms.bool( False ),
)
Expand Down