CMS 3D CMS Logo

HTMonitor.h
Go to the documentation of this file.
1 #ifndef DQMOffline_Trigger_HTMonitor_h
2 #define DQMOffline_Trigger_HTMonitor_h
3 
4 #include <string>
5 #include <vector>
6 #include <map>
7 
16 
20 
22 
23 //DataFormats
26 
39 
42 
44 
45 //
46 // class declaration
47 //
48 
49 class HTMonitor : public DQMEDAnalyzer
50 {
51 public:
52 
53 
54  struct MEHTbinning {
55  unsigned nbins;
56  double xmin;
57  double xmax;
58  };
59 
60  struct HTME {
63  };
64 
65 
66  HTMonitor( const edm::ParameterSet& );
67  ~HTMonitor() override;
68  static void fillDescriptions(edm::ConfigurationDescriptions & descriptions);
71 
72 protected:
73 
74  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
75  void bookME(DQMStore::IBooker &, HTME& me, const std::string& histname, const std::string& histtitle, int nbins, double xmin, double xmax);
76  void bookME(DQMStore::IBooker &, HTME& me, const std::string& histname, const std::string& histtitle, const std::vector<double>& binningX);
77  void bookME(DQMStore::IBooker &, HTME& me, const std::string& histname, const std::string& histtitle, int nbinsX, double xmin, double xmax, double ymin, double ymax);
78  void bookME(DQMStore::IBooker &, HTME& me, const std::string& histname, const std::string& histtitle, int nbinsX, double xmin, double xmax, int nbinsY, double ymin, double ymax);
79  void bookME(DQMStore::IBooker &, HTME& me, const std::string& histname, const std::string& histtitle, const std::vector<double>& binningX, const std::vector<double>& binningY);
80  void setHTitle(HTME& me, const std::string& titleX, const std::string& titleY);
81 
82  void analyze(edm::Event const& iEvent, edm::EventSetup const& iSetup) override;
83 
84 private:
87 
90 
96 
97  std::vector<double> ht_variable_binning_;
100 
105 
106  std::unique_ptr<GenericTriggerEventFlag> num_genTriggerEventFlag_;
107  std::unique_ptr<GenericTriggerEventFlag> den_genTriggerEventFlag_;
108 
114  unsigned njets_;
115  unsigned nelectrons_;
116  unsigned nmuons_;
117 
118  static constexpr double MAXedge_PHI = 3.2;
119  static constexpr int Nbin_PHI = 64;
121  Nbin_PHI, -MAXedge_PHI, MAXedge_PHI
122  };
123 
124 
125 
126 };
127 
128 #endif // HTMONITOR_H
edm::EDGetTokenT< reco::MuonCollection > muoToken_
Definition: HTMonitor.h:94
edm::EDGetTokenT< reco::PFJetCollection > jetToken_
Definition: HTMonitor.h:92
HTME htME_variableBinning_
Definition: HTMonitor.h:101
numerator
Definition: cuy.py:483
void setHTitle(HTME &me, const std::string &titleX, const std::string &titleY)
Definition: HTMonitor.cc:54
void bookME(DQMStore::IBooker &, HTME &me, const std::string &histname, const std::string &histtitle, int nbins, double xmin, double xmax)
Definition: HTMonitor.cc:63
StringCutObjectSelector< reco::Muon, true > muoSelection_
Definition: HTMonitor.h:112
~HTMonitor() override
std::vector< double > ht_variable_binning_
Definition: HTMonitor.h:97
unsigned njets_
Definition: HTMonitor.h:114
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
edm::EDGetTokenT< reco::VertexCollection > vtxToken_
Definition: HTMonitor.h:95
static MEHTbinning getHistoPSet(const edm::ParameterSet &pset)
Definition: HTMonitor.cc:36
#define constexpr
std::unique_ptr< GenericTriggerEventFlag > den_genTriggerEventFlag_
Definition: HTMonitor.h:107
StringCutObjectSelector< reco::MET, true > metSelection_
Definition: HTMonitor.h:109
int iEvent
Definition: GenABIO.cc:230
static void fillHistoLSPSetDescription(edm::ParameterSetDescription &pset)
Definition: HTMonitor.cc:224
HTMonitor(const edm::ParameterSet &)
Definition: HTMonitor.cc:11
static void fillHistoPSetDescription(edm::ParameterSetDescription &pset)
Definition: HTMonitor.cc:217
MEHTbinning ht_binning_
Definition: HTMonitor.h:98
edm::EDGetTokenT< reco::GsfElectronCollection > eleToken_
Definition: HTMonitor.h:93
MEHTbinning ls_binning_
Definition: HTMonitor.h:99
std::string histoSuffix_
Definition: HTMonitor.h:89
static int Nbin_PHI
Definition: HTMonitor.h:119
unsigned nelectrons_
Definition: HTMonitor.h:115
denominator
Definition: cuy.py:484
StringCutObjectSelector< reco::GsfElectron, true > eleSelection_
Definition: HTMonitor.h:111
StringCutObjectSelector< reco::PFJet, true > jetSelection_
Definition: HTMonitor.h:110
void analyze(edm::Event const &iEvent, edm::EventSetup const &iSetup) override
Definition: HTMonitor.cc:135
std::string folderName_
Definition: HTMonitor.h:88
HTME deltaphimetj1ME_
Definition: HTMonitor.h:103
static double MAXedge_PHI
Definition: HTMonitor.h:118
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: HTMonitor.cc:229
StringCutObjectSelector< reco::PFJet, true > jetSelection_HT_
Definition: HTMonitor.h:113
static MEHTbinning getHistoLSPSet(const edm::ParameterSet &pset)
Definition: HTMonitor.cc:45
HTME deltaphij1j2ME_
Definition: HTMonitor.h:104
edm::EDGetTokenT< reco::PFMETCollection > metToken_
Definition: HTMonitor.h:91
HTME htVsLS_
Definition: HTMonitor.h:102
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: HTMonitor.cc:99
unsigned nmuons_
Definition: HTMonitor.h:116
static MEHTbinning phi_binning_
Definition: HTMonitor.h:120
Definition: Run.h:42
std::unique_ptr< GenericTriggerEventFlag > num_genTriggerEventFlag_
Definition: HTMonitor.h:106