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