CMS 3D CMS Logo

ZCounting.h
Go to the documentation of this file.
1 #ifndef ZCounting_H
2 #define ZCounting_H
3 
4 #include "FWCore/Framework/interface/MakerMacros.h" // definitions for declaring plug-in modules
5 #include "FWCore/Framework/interface/Frameworkfwd.h" // declaration of EDM types
9 
10 #include <string> // string class
11 #include <cassert>
12 
19 
22 
24 
25 class ZCounting : public DQMEDAnalyzer {
26 public:
27  ZCounting(const edm::ParameterSet& ps);
28  ~ZCounting() override;
29 
32 
33 protected:
34  void dqmBeginRun(edm::Run const&, edm::EventSetup const&) override;
35  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
36  void analyze(edm::Event const& e, edm::EventSetup const& eSetup) override;
37 
38 private:
39  //other functions
40  bool passMuonID(const reco::Muon& muon, const reco::Vertex* vtx);
41  bool passMuonIso(const reco::Muon& muon);
42  bool isCustomTightMuon(const reco::Muon& muon);
43 
44  // EDM object collection names
47 
48  // Muons
50  std::vector<std::string> fMuonHLTNames;
51  std::vector<std::string> fMuonHLTObjectNames;
52 
53  // Tracks
55 
56  // other input
57  const double PtCutL1_;
58  const double PtCutL2_;
59  const double EtaCutL1_;
60  const double EtaCutL2_;
61 
62  const int MassBin_;
63  const double MassMin_;
64  const double MassMax_;
65 
66  const int LumiBin_;
67  const double LumiMin_;
68  const double LumiMax_;
69 
70  const int PVBin_;
71  const double PVMin_;
72  const double PVMax_;
73 
74  const double VtxNTracksFitCut_;
75  const double VtxNdofCut_;
76  const double VtxAbsZCut_;
77  const double VtxRhoCut_;
78 
81  const double IsoCut_;
82 
83  // muon ID and ISO parameters
86 
87  // trigger objects
90 
91  // constants
92  const double DRMAX = 0.1; // max dR matching between muon and hlt object
93 
94  const double MUON_MASS = 0.105658369;
95  const double MUON_BOUND = 0.9;
96 
97  // General Histograms
99 
100  // Muon Histograms
104 
108 
112 
116 };
117 
118 #endif
ZCounting(const edm::ParameterSet &ps)
Definition: ZCounting.cc:20
const double MassMax_
Definition: ZCounting.h:64
MonitorElement * h_mass_SIT_fail_BE
Definition: ZCounting.h:110
bool passMuonIso(const reco::Muon &muon)
Definition: ZCounting.cc:520
const double VtxNTracksFitCut_
Definition: ZCounting.h:74
const edm::InputTag triggerResultsInputTag_
Definition: ZCounting.h:45
MonitorElement * h_mass_1HLT_BE
Definition: ZCounting.h:106
TriggerTools * triggers
Definition: ZCounting.h:89
std::vector< std::string > fMuonHLTNames
Definition: ZCounting.h:50
const double VtxAbsZCut_
Definition: ZCounting.h:76
const int PVBin_
Definition: ZCounting.h:70
const std::string IDTypestr_
Definition: ZCounting.h:79
const double EtaCutL2_
Definition: ZCounting.h:60
MuonIsoTypes IsoType_
Definition: ZCounting.h:85
MonitorElement * h_mass_2HLT_BE
Definition: ZCounting.h:102
const double EtaCutL1_
Definition: ZCounting.h:59
const double DRMAX
Definition: ZCounting.h:92
MonitorElement * h_mass_SIT_fail_BB
Definition: ZCounting.h:109
MonitorElement * h_mass_Glo_fail_BE
Definition: ZCounting.h:114
HLTConfigProvider hltConfigProvider_
Definition: ZCounting.h:88
edm::EDGetTokenT< reco::TrackCollection > fTrackName_token
Definition: ZCounting.h:54
bool isCustomTightMuon(const reco::Muon &muon)
Definition: ZCounting.cc:489
bool passMuonID(const reco::Muon &muon, const reco::Vertex *vtx)
Definition: ZCounting.cc:502
const double MUON_MASS
Definition: ZCounting.h:94
edm::EDGetTokenT< reco::MuonCollection > fMuonName_token
Definition: ZCounting.h:49
const double MassMin_
Definition: ZCounting.h:63
const double VtxNdofCut_
Definition: ZCounting.h:75
const double LumiMax_
Definition: ZCounting.h:68
const double IsoCut_
Definition: ZCounting.h:81
edm::EDGetTokenT< reco::VertexCollection > fPVName_token
Definition: ZCounting.h:46
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: ZCounting.cc:120
const std::string IsoTypestr_
Definition: ZCounting.h:80
MuonIDTypes IDType_
Definition: ZCounting.h:84
MonitorElement * h_npv
Definition: ZCounting.h:98
const int LumiBin_
Definition: ZCounting.h:66
void analyze(edm::Event const &e, edm::EventSetup const &eSetup) override
Definition: ZCounting.cc:263
MonitorElement * h_mass_2HLT_EE
Definition: ZCounting.h:103
const double MUON_BOUND
Definition: ZCounting.h:95
MonitorElement * h_mass_2HLT_BB
Definition: ZCounting.h:101
const double PVMin_
Definition: ZCounting.h:71
const double PVMax_
Definition: ZCounting.h:72
~ZCounting() override
Definition: ZCounting.cc:89
MonitorElement * h_mass_Glo_fail_BB
Definition: ZCounting.h:113
const double LumiMin_
Definition: ZCounting.h:67
void dqmBeginRun(edm::Run const &, edm::EventSetup const &) override
Definition: ZCounting.cc:94
const double PtCutL1_
Definition: ZCounting.h:57
std::vector< std::string > fMuonHLTObjectNames
Definition: ZCounting.h:51
MonitorElement * h_mass_1HLT_EE
Definition: ZCounting.h:107
MonitorElement * h_mass_SIT_fail_EE
Definition: ZCounting.h:111
const double PtCutL2_
Definition: ZCounting.h:58
Definition: Run.h:45
MonitorElement * h_mass_1HLT_BB
Definition: ZCounting.h:105
MonitorElement * h_mass_Glo_fail_EE
Definition: ZCounting.h:115
const double VtxRhoCut_
Definition: ZCounting.h:77
const int MassBin_
Definition: ZCounting.h:62