CMS 3D CMS Logo

NoBPTXMonitor.h
Go to the documentation of this file.
1 #ifndef DQMOFFLINE_TRIGGER_NOBPTXMONITOR_H
2 #define DQMOFFLINE_TRIGGER_NOBPTXMONITOR_H
3 
4 
5 #include <string>
6 #include <vector>
7 #include <map>
8 
21 
25 
28 
29 //DataFormats
34 
36 
37 
38 //
39 // class declaration
40 //
41 
43 {
44 public:
46  ~NoBPTXMonitor() override;
47  static void fillDescriptions(edm::ConfigurationDescriptions & descriptions);
50 
51  struct NoBPTXME {
54  };
55 
56 protected:
57 
58  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
59  void bookNoBPTX(DQMStore::IBooker &, NoBPTXME& me, const std::string& histname, const std::string& histtitle, int nbins, double xmin, double xmax);
60  void bookNoBPTX(DQMStore::IBooker &, NoBPTXME& me, const std::string& histname, const std::string& histtitle, const std::vector<double>& binningX);
61  void bookNoBPTX(DQMStore::IBooker &, NoBPTXME& me, const std::string& histname, const std::string& histtitle, int nbinsX, double xmin, double xmax, double ymin, double ymax, bool bookDen);
62  void bookNoBPTX(DQMStore::IBooker &, NoBPTXME& me, const std::string& histname, const std::string& histtitle, int nbinsX, double xmin, double xmax, int nbinsY, double ymin, double ymax);
63  void bookNoBPTX(DQMStore::IBooker &, NoBPTXME& me, const std::string& histname, const std::string& histtitle, const std::vector<double>& binningX, const std::vector<double>& binningY);
64  void setNoBPTXTitle(NoBPTXME& me, const std::string& titleX, const std::string& titleY, bool bookDen);
65 
66  void analyze(edm::Event const& iEvent, edm::EventSetup const& iSetup) override;
67 
68 private:
69  struct NoBPTXbinning {
70  unsigned int nbins;
71  double xmin;
72  double xmax;
73  };
74 
75  static NoBPTXbinning getHistoPSet (const edm::ParameterSet & pset);
76  static NoBPTXbinning getHistoLSPSet (const edm::ParameterSet & pset);
77 
80 
83 
84  std::vector<double> jetE_variable_binning_;
88  std::vector<double> muonPt_variable_binning_;
94 
115 
116  std::unique_ptr<GenericTriggerEventFlag> num_genTriggerEventFlag_;
117  std::unique_ptr<GenericTriggerEventFlag> den_genTriggerEventFlag_;
118 
121  unsigned int njets_;
122  unsigned int nmuons_;
123 
124 };
125 
126 #endif //DQMOFFLINE_TRIGGER_NOBPTXMONITOR_H
static NoBPTXbinning getHistoPSet(const edm::ParameterSet &pset)
edm::EDGetTokenT< reco::TrackCollection > muonToken_
Definition: NoBPTXMonitor.h:82
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::string histoSuffix_
Definition: NoBPTXMonitor.h:79
NoBPTXME muonPtVsBX_
NoBPTXME jetEVsLS_
Definition: NoBPTXMonitor.h:97
static void fillHistoLSPSetDescription(edm::ParameterSetDescription &pset)
std::string folderName_
Definition: NoBPTXMonitor.h:78
NoBPTXbinning jetE_binning_
Definition: NoBPTXMonitor.h:85
NoBPTXME jetPhiVsLS_
NoBPTXME muonEtaVsBX_
edm::EDGetTokenT< reco::CaloJetCollection > jetToken_
Definition: NoBPTXMonitor.h:81
StringCutObjectSelector< reco::CaloJet, true > jetSelection_
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
~NoBPTXMonitor() override
std::vector< double > jetE_variable_binning_
Definition: NoBPTXMonitor.h:84
MonitorElement * denominator
Definition: NoBPTXMonitor.h:53
NoBPTXbinning muonPt_binning_
Definition: NoBPTXMonitor.h:89
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void bookNoBPTX(DQMStore::IBooker &, NoBPTXME &me, const std::string &histname, const std::string &histtitle, int nbins, double xmin, double xmax)
NoBPTXME muonEtaVsLS_
NoBPTXbinning bx_binning_
Definition: NoBPTXMonitor.h:93
StringCutObjectSelector< reco::Track, true > muonSelection_
NoBPTXME muonPtNoBPTX_variableBinning_
int iEvent
Definition: GenABIO.cc:224
MonitorElement * numerator
Definition: NoBPTXMonitor.h:52
NoBPTXME jetEtaNoBPTX_
Definition: NoBPTXMonitor.h:99
std::unique_ptr< GenericTriggerEventFlag > den_genTriggerEventFlag_
NoBPTXME jetEtaVsBX_
NoBPTXME muonPtNoBPTX_
NoBPTXME jetENoBPTX_
Definition: NoBPTXMonitor.h:95
NoBPTXME jetEVsBX_
Definition: NoBPTXMonitor.h:98
unsigned int njets_
NoBPTXME jetPhiVsBX_
NoBPTXME muonPhiVsBX_
unsigned int nmuons_
void analyze(edm::Event const &iEvent, edm::EventSetup const &iSetup) override
NoBPTXbinning jetEta_binning_
Definition: NoBPTXMonitor.h:86
NoBPTXME jetENoBPTX_variableBinning_
Definition: NoBPTXMonitor.h:96
static NoBPTXbinning getHistoLSPSet(const edm::ParameterSet &pset)
static void fillHistoPSetDescription(edm::ParameterSetDescription &pset)
NoBPTXbinning muonPhi_binning_
Definition: NoBPTXMonitor.h:91
NoBPTXME muonEtaNoBPTX_
NoBPTXbinning muonEta_binning_
Definition: NoBPTXMonitor.h:90
NoBPTXME jetEtaVsLS_
NoBPTXbinning jetPhi_binning_
Definition: NoBPTXMonitor.h:87
std::unique_ptr< GenericTriggerEventFlag > num_genTriggerEventFlag_
NoBPTXME jetPhiNoBPTX_
NoBPTXbinning ls_binning_
Definition: NoBPTXMonitor.h:92
NoBPTXMonitor(const edm::ParameterSet &)
Definition: NoBPTXMonitor.cc:7
NoBPTXME muonPhiVsLS_
void setNoBPTXTitle(NoBPTXME &me, const std::string &titleX, const std::string &titleY, bool bookDen)
std::vector< double > muonPt_variable_binning_
Definition: NoBPTXMonitor.h:88
NoBPTXME muonPtVsLS_
Definition: Run.h:45
NoBPTXME muonPhiNoBPTX_