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 #include <string>
5 #include <vector>
6 #include <map>
7 
20 
24 
27 
28 //DataFormats
33 
35 
36 //
37 // class declaration
38 //
39 
40 class NoBPTXMonitor : public DQMEDAnalyzer {
41 public:
43  ~NoBPTXMonitor() override;
44  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
47 
48  struct NoBPTXME {
51  };
52 
53 protected:
54  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
56  NoBPTXME& me,
57  const std::string& histname,
58  const std::string& histtitle,
59  int nbins,
60  double xmin,
61  double xmax);
63  NoBPTXME& me,
64  const std::string& histname,
65  const std::string& histtitle,
66  const std::vector<double>& binningX);
68  NoBPTXME& me,
69  const std::string& histname,
70  const std::string& histtitle,
71  int nbinsX,
72  double xmin,
73  double xmax,
74  double ymin,
75  double ymax,
76  bool bookDen);
78  NoBPTXME& me,
79  const std::string& histname,
80  const std::string& histtitle,
81  int nbinsX,
82  double xmin,
83  double xmax,
84  int nbinsY,
85  double ymin,
86  double ymax);
88  NoBPTXME& me,
89  const std::string& histname,
90  const std::string& histtitle,
91  const std::vector<double>& binningX,
92  const std::vector<double>& binningY);
93  void setNoBPTXTitle(NoBPTXME& me, const std::string& titleX, const std::string& titleY, bool bookDen);
94 
95  void analyze(edm::Event const& iEvent, edm::EventSetup const& iSetup) override;
96 
97 private:
98  struct NoBPTXbinning {
99  unsigned int nbins;
100  double xmin;
101  double xmax;
102  };
103 
104  static NoBPTXbinning getHistoPSet(const edm::ParameterSet& pset);
105  static NoBPTXbinning getHistoLSPSet(const edm::ParameterSet& pset);
106 
109 
112 
113  std::vector<double> jetE_variable_binning_;
117  std::vector<double> muonPt_variable_binning_;
123 
144 
145  std::unique_ptr<GenericTriggerEventFlag> num_genTriggerEventFlag_;
146  std::unique_ptr<GenericTriggerEventFlag> den_genTriggerEventFlag_;
147 
150  unsigned int njets_;
151  unsigned int nmuons_;
152 };
153 
154 #endif //DQMOFFLINE_TRIGGER_NOBPTXMONITOR_H
static NoBPTXbinning getHistoPSet(const edm::ParameterSet &pset)
edm::EDGetTokenT< reco::TrackCollection > muonToken_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::string histoSuffix_
NoBPTXME muonPtVsBX_
NoBPTXME jetEVsLS_
StringCutObjectSelector< reco::CaloJet, true > jetSelection_
static void fillHistoLSPSetDescription(edm::ParameterSetDescription &pset)
std::string folderName_
NoBPTXbinning jetE_binning_
NoBPTXME jetPhiVsLS_
NoBPTXME muonEtaVsBX_
edm::EDGetTokenT< reco::CaloJetCollection > jetToken_
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_
MonitorElement * denominator
Definition: NoBPTXMonitor.h:50
NoBPTXbinning muonPt_binning_
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_
NoBPTXME muonPtNoBPTX_variableBinning_
int iEvent
Definition: GenABIO.cc:224
MonitorElement * numerator
Definition: NoBPTXMonitor.h:49
NoBPTXME jetEtaNoBPTX_
std::unique_ptr< GenericTriggerEventFlag > den_genTriggerEventFlag_
NoBPTXME jetEtaVsBX_
NoBPTXME muonPtNoBPTX_
NoBPTXME jetENoBPTX_
NoBPTXME jetEVsBX_
unsigned int njets_
NoBPTXME jetPhiVsBX_
NoBPTXME muonPhiVsBX_
unsigned int nmuons_
void analyze(edm::Event const &iEvent, edm::EventSetup const &iSetup) override
NoBPTXbinning jetEta_binning_
NoBPTXME jetENoBPTX_variableBinning_
static NoBPTXbinning getHistoLSPSet(const edm::ParameterSet &pset)
StringCutObjectSelector< reco::Track, true > muonSelection_
static void fillHistoPSetDescription(edm::ParameterSetDescription &pset)
NoBPTXbinning muonPhi_binning_
NoBPTXME muonEtaNoBPTX_
NoBPTXbinning muonEta_binning_
NoBPTXME jetEtaVsLS_
NoBPTXbinning jetPhi_binning_
std::unique_ptr< GenericTriggerEventFlag > num_genTriggerEventFlag_
NoBPTXME jetPhiNoBPTX_
NoBPTXbinning ls_binning_
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_
NoBPTXME muonPtVsLS_
Definition: Run.h:45
NoBPTXME muonPhiNoBPTX_