CMS 3D CMS Logo

BPHMonitor.h
Go to the documentation of this file.
1 #ifndef BPHMONITOR_H
2 #define BPHMONITOR_H
3 
4 #include <string>
5 #include <vector>
6 #include <map>
7 
16 
20 
22 
23 //DataFormats
28 
34 
35 
37 
38 struct MEbinning {
39  int nbins;
40  double xmin;
41  double xmax;
42 };
43 
44 struct METME{
47 };
48 
49 //
50 // class declaration
51 //
52 
53 class BPHMonitor : public DQMEDAnalyzer
54 {
55 public:
56  BPHMonitor( const edm::ParameterSet& );
57  ~BPHMonitor();
58  static void fillDescriptions(edm::ConfigurationDescriptions & descriptions);
59  static void fillHistoPSetDescription(edm::ParameterSetDescription & pset);
60  static void fillHistoLSPSetDescription(edm::ParameterSetDescription & pset);
61 
62 protected:
63 
64  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
65  void bookME(DQMStore::IBooker &, METME& me, std::string& histname, std::string& histtitle, int& nbins, double& xmin, double& xmax);
66  void bookME(DQMStore::IBooker &, METME& me, std::string& histname, std::string& histtitle, std::vector<double> binningX);
67  void bookME(DQMStore::IBooker &, METME& me, std::string& histname, std::string& histtitle, int& nbinsX, double& xmin, double& xmax, double& ymin, double& ymax);
68  void bookME(DQMStore::IBooker &, METME& me, std::string& histname, std::string& histtitle, int& nbinsX, double& xmin, double& xmax, int& nbinsY, double& ymin, double& ymax);
69  void bookME(DQMStore::IBooker &, METME& me, std::string& histname, std::string& histtitle, std::vector<double> binningX, std::vector<double> binningY);
70  void setMETitle(METME& me, std::string titleX, std::string titleY);
71 
72  void analyze(edm::Event const& iEvent, edm::EventSetup const& iSetup) override;
73 
74 private:
75  static MEbinning getHistoPSet (edm::ParameterSet pset);
76  static MEbinning getHistoLSPSet (edm::ParameterSet pset);
77 
80 
83 
90 
96 
97 
102  int nmuons_;
103 
104 };
105 
106 #endif // METMONITOR_H
MonitorElement * numerator
Definition: BPHMonitor.h:45
MEbinning z0_binning_
Definition: BPHMonitor.h:88
std::string histoSuffix_
Definition: BPHMonitor.h:79
METME muPt_
Definition: BPHMonitor.h:93
def analyze(function, filename, filter=None)
Definition: Profiling.py:11
edm::EDGetTokenT< reco::MuonCollection > muoToken_
Definition: BPHMonitor.h:81
std::string folderName_
Definition: BPHMonitor.h:78
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
MEbinning eta_binning_
Definition: BPHMonitor.h:86
void bookHistograms(fwlite::EventContainer &eventCont)
MEbinning ls_binning_
Definition: BPHMonitor.h:89
int iEvent
Definition: GenABIO.cc:230
MEbinning pt_binning_
Definition: BPHMonitor.h:85
double xmin
Definition: LumiMonitor.h:30
GenericTriggerEventFlag * den_genTriggerEventFlag_
Definition: BPHMonitor.h:99
MEbinning phi_binning_
Definition: BPHMonitor.h:84
MonitorElement * denominator
Definition: BPHMonitor.h:46
StringCutObjectSelector< reco::Muon, true > muoSelection_
Definition: BPHMonitor.h:100
METME muz0_
Definition: BPHMonitor.h:95
MEbinning d0_binning_
Definition: BPHMonitor.h:87
edm::EDGetTokenT< reco::BeamSpot > bsToken_
Definition: BPHMonitor.h:82
StringCutObjectSelector< reco::Muon, true > muoSelection_ref
Definition: BPHMonitor.h:101
METME muEta_
Definition: BPHMonitor.h:92
METME mud0_
Definition: BPHMonitor.h:94
GenericTriggerEventFlag * num_genTriggerEventFlag_
Definition: BPHMonitor.h:98
METME muPhi_
Definition: BPHMonitor.h:91
Definition: Run.h:42
double xmax
Definition: LumiMonitor.h:31