CMS 3D CMS Logo

ZCountingElectrons.h
Go to the documentation of this file.
1 #ifndef ZCountingElectrons_H
2 #define ZCountingElectrons_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 
17 
20 
23 
25 public:
27  ~ZCountingElectrons() override;
28 
29 protected:
30  void dqmBeginRun(edm::Run const&, edm::EventSetup const&) override;
31  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
32  void analyze(edm::Event const& e, edm::EventSetup const& eSetup) override;
33 
34 private:
35  // Electron-specific functions
36  bool ele_probe_selection(double pt, double abseta);
37  bool ele_tag_selection(double pt, double abseta);
38 
39  // EDM object collection names
42 
43  // Electrons
49 
50  double PtCutL1_;
51  double PtCutL2_;
52  double EtaCutL1_;
53  double EtaCutL2_;
54 
55  int MassBin_;
56  double MassMin_;
57  double MassMax_;
58 
59  int LumiBin_;
60  double LumiMin_;
61  double LumiMax_;
62 
63  int PVBin_;
64  double PVMin_;
65  double PVMax_;
66 
68  double VtxNdofCut_;
69  double VtxAbsZCut_;
70  double VtxRhoCut_;
71 
73 
74  // trigger objects
77 
78  //constants
79  const double DRMAX = 0.1; // max dR matching between muon and hlt object
80  const float ELECTRON_MASS = 0.000511;
81  const float ELE_ETA_CRACK_LOW = 1.4442;
82  const float ELE_ETA_CRACK_HIGH = 1.56;
83 
84  // Electron-specific members
86 
87  // General Histograms
89 
90  // Electron Histograms
95 
100 
104 };
105 
106 #endif
MonitorElement * h_ee_yield_Z_ebeb
MonitorElement * h_ee_mass_id_pass_forward
MonitorElement * h_ee_mass_HLT_pass_forward
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * h_ee_yield_Z_ebee
const edm::InputTag triggerResultsInputTag_
const std::string ELE_ID_WP
const float ELE_ETA_CRACK_LOW
MonitorElement * h_ee_yield_Z_eeee
edm::EDGetTokenT< edm::View< reco::GsfElectron > > fGsfElectronName_token
bool ele_probe_selection(double pt, double abseta)
edm::EDGetTokenT< reco::BeamSpot > fBeamspotToken
edm::EDGetTokenT< double > fRhoToken
MonitorElement * h_ee_mass_HLT_fail_central
void dqmBeginRun(edm::Run const &, edm::EventSetup const &) override
edm::EDGetTokenT< reco::VertexCollection > fPVName_token
bool ele_tag_selection(double pt, double abseta)
edm::EDGetTokenT< reco::ConversionCollection > fConversionToken
HLTConfigProvider hltConfigProvider_
MonitorElement * h_ee_mass_HLT_fail_forward
MonitorElement * h_ee_mass_HLT_pass_central
const float ELE_ETA_CRACK_HIGH
MonitorElement * h_ee_mass_id_pass_central
MonitorElement * h_ee_mass_id_fail_central
TriggerTools * triggers
ZCountingElectrons(const edm::ParameterSet &ps)
~ZCountingElectrons() override
MonitorElement * h_npv
void analyze(edm::Event const &e, edm::EventSetup const &eSetup) override
ElectronIdentifier EleID_
MonitorElement * h_ee_mass_id_fail_forward
edm::EDGetTokenT< edm::View< reco::SuperCluster > > fSCName_token
Definition: Run.h:45