CMS 3D CMS Logo

DiDispStaMuonMonitor.h
Go to the documentation of this file.
1 #ifndef DQMOFFLINE_TRIGGER_DIDISPSTAMUONMONITOR_H
2 #define DQMOFFLINE_TRIGGER_DIDISPSTAMUONMONITOR_H
3 
4 #include <string>
5 #include <vector>
6 #include <map>
7 
20 
24 
27 
28 //DataFormats
31 
33 
34 //
35 // class declaration
36 //
37 
39 public:
41  ~DiDispStaMuonMonitor() override;
42  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
45 
46  struct DiDispStaMuonME {
49  };
50 
51 protected:
52  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
55  const std::string& histname,
56  const std::string& histtitle,
57  int nbins,
58  double xmin,
59  double xmax);
62  const std::string& histname,
63  const std::string& histtitle,
64  const std::vector<double>& binningX);
67  const std::string& histname,
68  const std::string& histtitle,
69  int nbinsX,
70  double xmin,
71  double xmax,
72  double ymin,
73  double ymax,
74  bool bookDen);
77  const std::string& histname,
78  const std::string& histtitle,
79  int nbinsX,
80  double xmin,
81  double xmax,
82  int nbinsY,
83  double ymin,
84  double ymax);
87  const std::string& histname,
88  const std::string& histtitle,
89  const std::vector<double>& binningX,
90  const std::vector<double>& binningY);
91  void setTitle(DiDispStaMuonME& me, const std::string& titleX, const std::string& titleY, bool bookDen);
92 
93  void analyze(edm::Event const& iEvent, edm::EventSetup const& iSetup) override;
94 
95 private:
96  struct MEbinning {
97  unsigned int nbins;
98  double xmin;
99  double xmax;
100  };
101 
102  static MEbinning getHistoPSet(const edm::ParameterSet& pset);
103  static MEbinning getHistoLSPSet(const edm::ParameterSet& pset);
104 
107 
109 
110  std::vector<double> muonPt_variable_binning_;
116 
129 
130  std::unique_ptr<GenericTriggerEventFlag> num_genTriggerEventFlag_;
131  std::unique_ptr<GenericTriggerEventFlag> den_genTriggerEventFlag_;
132 
136  unsigned int nmuons_;
137 };
138 
139 #endif //DQMOFFLINE_TRIGGER_DIDISPSTAMUONMONITOR_H
DiDispStaMuonME subMuonPtME_
~DiDispStaMuonMonitor() override
void setTitle(DiDispStaMuonME &me, const std::string &titleX, const std::string &titleY, bool bookDen)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
DiDispStaMuonME subMuonEtaME_
std::vector< double > muonPt_variable_binning_
static MEbinning getHistoPSet(const edm::ParameterSet &pset)
DiDispStaMuonME muonPtNoDxyCutME_
static MEbinning getHistoLSPSet(const edm::ParameterSet &pset)
static void fillHistoLSPSetDescription(edm::ParameterSetDescription &pset)
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
int iEvent
Definition: GenABIO.cc:224
DiDispStaMuonME subMuonDxyME_
std::unique_ptr< GenericTriggerEventFlag > num_genTriggerEventFlag_
void analyze(edm::Event const &iEvent, edm::EventSetup const &iSetup) override
StringCutObjectSelector< reco::Track, true > muonSelectionDxy_
StringCutObjectSelector< reco::Track, true > muonSelectionGeneral_
void bookME(DQMStore::IBooker &, DiDispStaMuonME &me, const std::string &histname, const std::string &histtitle, int nbins, double xmin, double xmax)
DiDispStaMuonMonitor(const edm::ParameterSet &)
std::unique_ptr< GenericTriggerEventFlag > den_genTriggerEventFlag_
static void fillHistoPSetDescription(edm::ParameterSetDescription &pset)
StringCutObjectSelector< reco::Track, true > muonSelectionPt_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
DiDispStaMuonME subMuonPtME_variableBinning_
edm::EDGetTokenT< reco::TrackCollection > muonToken_
DiDispStaMuonME subMuonPhiME_
Definition: Run.h:45
DiDispStaMuonME muonPtME_variableBinning_