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  bool passGlobalMuon(const reco::Muon& muon);
44  bool passTrack(const reco::Track& track);
45 
46  // EDM object collection names
49 
50  // Muons
52  std::vector<std::string> fMuonHLTNames;
53  std::vector<std::string> fMuonHLTObjectNames;
54 
57 
58  // Tracks
60 
61  // other input
62  const double PtCutL1_;
63  const double PtCutL2_;
64  const double EtaCutL1_;
65  const double EtaCutL2_;
66 
67  const int MassBin_;
68  const double MassMin_;
69  const double MassMax_;
70 
71  const int LumiBin_;
72  const double LumiMin_;
73  const double LumiMax_;
74 
75  const int PVBin_;
76  const double PVMin_;
77  const double PVMax_;
78 
79  const double VtxNTracksFitCut_;
80  const double VtxNdofCut_;
81  const double VtxAbsZCut_;
82  const double VtxRhoCut_;
83 
86  const double IsoCut_;
87 
88  // muon ID and ISO parameters
91 
92  // trigger objects
95 
96  // constants
97  const double DRMAX_HLT = 0.01; // max deltaR^2 matching between muon and hlt object
98  const double DRMAX_IO = 0.09; // max deltaR^2 matching between inner and outer muon track
99 
100  const double MIN_PT_TRK = 15; // minimum pT of inner track considered for matching outer to inner track
101  const double MAX_ETA_TRK = 2.5; // maximum |eta| of inner track considered for matching outer to inner track
102  const double MIN_PT_STA = 15; // minimum pT of outer track considered for matching inner to outer track
103  const double MAX_ETA_STA = 2.4; // maximum |eta| of outer track considered for matching inner to outer track
104 
105  const int N_STA_HITS = 1; // minimum number of valid standalone hits
106 
107  const double MUON_MASS = 0.105658369;
108  const double MUON_BOUND = 0.9;
109 
110  // General Histograms
112 
113  // Muon Histograms
117 
121 
125 
132 
139 };
140 
141 #endif
MonitorElement * h_mass_Sta_pass_EE
Definition: ZCounting.h:135
ZCounting(const edm::ParameterSet &ps)
Definition: ZCounting.cc:21
const double MassMax_
Definition: ZCounting.h:69
MonitorElement * h_mass_Sta_pass_BE
Definition: ZCounting.h:134
MonitorElement * h_mass_Sta_fail_BE
Definition: ZCounting.h:137
bool passMuonIso(const reco::Muon &muon)
Definition: ZCounting.cc:726
const double VtxNTracksFitCut_
Definition: ZCounting.h:79
const edm::InputTag triggerResultsInputTag_
Definition: ZCounting.h:47
bool passTrack(const reco::Track &track)
Definition: ZCounting.cc:719
MonitorElement * h_mass_1HLT_BE
Definition: ZCounting.h:119
const double DRMAX_HLT
Definition: ZCounting.h:97
TriggerTools * triggers
Definition: ZCounting.h:94
std::vector< std::string > fMuonHLTNames
Definition: ZCounting.h:52
const double VtxAbsZCut_
Definition: ZCounting.h:81
const int PVBin_
Definition: ZCounting.h:75
const std::string IDTypestr_
Definition: ZCounting.h:84
const double EtaCutL2_
Definition: ZCounting.h:65
MonitorElement * h_mass_Glo_pass_BB
Definition: ZCounting.h:126
MuonIsoTypes IsoType_
Definition: ZCounting.h:90
MonitorElement * h_mass_2HLT_BE
Definition: ZCounting.h:115
const double EtaCutL1_
Definition: ZCounting.h:64
edm::EDGetTokenT< reco::TrackCollection > fStandaloneUpdName_token
Definition: ZCounting.h:56
MonitorElement * h_mass_Glo_fail_BE
Definition: ZCounting.h:130
HLTConfigProvider hltConfigProvider_
Definition: ZCounting.h:93
edm::EDGetTokenT< reco::TrackCollection > fTrackName_token
Definition: ZCounting.h:59
const double MIN_PT_STA
Definition: ZCounting.h:102
bool isCustomTightMuon(const reco::Muon &muon)
Definition: ZCounting.cc:677
bool passMuonID(const reco::Muon &muon, const reco::Vertex *vtx)
Definition: ZCounting.cc:686
const double MUON_MASS
Definition: ZCounting.h:107
edm::EDGetTokenT< reco::MuonCollection > fMuonName_token
Definition: ZCounting.h:51
const double MassMin_
Definition: ZCounting.h:68
const double VtxNdofCut_
Definition: ZCounting.h:80
const double LumiMax_
Definition: ZCounting.h:73
MonitorElement * h_mass_Sta_fail_BB
Definition: ZCounting.h:136
MonitorElement * h_mass_Sta_pass_BB
Definition: ZCounting.h:133
const double MAX_ETA_TRK
Definition: ZCounting.h:101
const double IsoCut_
Definition: ZCounting.h:86
edm::EDGetTokenT< reco::VertexCollection > fPVName_token
Definition: ZCounting.h:48
const double MAX_ETA_STA
Definition: ZCounting.h:103
MonitorElement * h_mass_ID_fail_BE
Definition: ZCounting.h:123
MonitorElement * h_mass_ID_fail_EE
Definition: ZCounting.h:124
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: ZCounting.cc:125
const std::string IsoTypestr_
Definition: ZCounting.h:85
MuonIDTypes IDType_
Definition: ZCounting.h:89
MonitorElement * h_npv
Definition: ZCounting.h:111
const int LumiBin_
Definition: ZCounting.h:71
void analyze(edm::Event const &e, edm::EventSetup const &eSetup) override
Definition: ZCounting.cc:346
MonitorElement * h_mass_2HLT_EE
Definition: ZCounting.h:116
const double MUON_BOUND
Definition: ZCounting.h:108
MonitorElement * h_mass_2HLT_BB
Definition: ZCounting.h:114
const double PVMin_
Definition: ZCounting.h:76
MonitorElement * h_mass_ID_fail_BB
Definition: ZCounting.h:122
const double PVMax_
Definition: ZCounting.h:77
MonitorElement * h_mass_Sta_fail_EE
Definition: ZCounting.h:138
bool passGlobalMuon(const reco::Muon &muon)
Definition: ZCounting.cc:704
~ZCounting() override
Definition: ZCounting.cc:94
MonitorElement * h_mass_Glo_fail_BB
Definition: ZCounting.h:129
MonitorElement * h_mass_Glo_pass_BE
Definition: ZCounting.h:127
const double LumiMin_
Definition: ZCounting.h:72
void dqmBeginRun(edm::Run const &, edm::EventSetup const &) override
Definition: ZCounting.cc:99
const double PtCutL1_
Definition: ZCounting.h:62
std::vector< std::string > fMuonHLTObjectNames
Definition: ZCounting.h:53
const double MIN_PT_TRK
Definition: ZCounting.h:100
MonitorElement * h_mass_1HLT_EE
Definition: ZCounting.h:120
const double PtCutL2_
Definition: ZCounting.h:63
Definition: Run.h:45
MonitorElement * h_mass_1HLT_BB
Definition: ZCounting.h:118
const double DRMAX_IO
Definition: ZCounting.h:98
const int N_STA_HITS
Definition: ZCounting.h:105
MonitorElement * h_mass_Glo_fail_EE
Definition: ZCounting.h:131
edm::EDGetTokenT< reco::TrackCollection > fStandaloneRegName_token
Definition: ZCounting.h:55
MonitorElement * h_mass_Glo_pass_EE
Definition: ZCounting.h:128
const double VtxRhoCut_
Definition: ZCounting.h:82
const int MassBin_
Definition: ZCounting.h:67