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
9 
10 #include <string> // string class
11 #include <cassert>
12 
16 
19 
22 
24 public:
26  ~ZCountingElectrons() override;
27 
28 protected:
29  void dqmBeginRun(edm::Run const&, edm::EventSetup const&) override;
30  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
31  void analyze(edm::Event const& e, edm::EventSetup const& eSetup) override;
32 
33 private:
34  // Electron-specific functions
35  bool ele_probe_selection(double pt, double abseta);
36  bool ele_tag_selection(double pt, double abseta);
37 
38  // EDM object collection names
41 
42  // Electrons
48 
49  double PtCutL1_;
50  double PtCutL2_;
51  double EtaCutL1_;
52  double EtaCutL2_;
53 
54  int MassBin_;
55  double MassMin_;
56  double MassMax_;
57 
58  int LumiBin_;
59  double LumiMin_;
60  double LumiMax_;
61 
62  int PVBin_;
63  double PVMin_;
64  double PVMax_;
65 
67  double VtxNdofCut_;
68  double VtxAbsZCut_;
69  double VtxRhoCut_;
70 
72 
73  // trigger objects
76 
77  //constants
78  const double DRMAX = 0.1; // max dR matching between muon and hlt object
79  const float ELECTRON_MASS = 0.000511;
80  const float ELE_ETA_CRACK_LOW = 1.4442;
81  const float ELE_ETA_CRACK_HIGH = 1.56;
82 
83  // Electron-specific members
85 
86  // General Histograms
88 
89  // Electron Histograms
94 
99 
103 };
104 
105 #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