CMS 3D CMS Logo

V0Monitor.h
Go to the documentation of this file.
1 #ifndef LUMIMONITOR_H
2 #define LUMIMONITOR_H
3 
4 #include <string>
5 #include <vector>
6 #include <map>
7 
16 
21 
24 
26 
28 
29 struct MEbinning {
30  int nbins;
31  double xmin;
32  double xmax;
33 };
34 
35 //
36 // class declaration
37 //
38 
39 class V0Monitor : public DQMEDAnalyzer {
40 public:
43 
45  ~V0Monitor() override;
46 
47 protected:
48  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
49  MonitorElement* bookHisto1D(DQMStore::IBooker& ibooker,
54  MEbinning binning);
55  MonitorElement* bookHisto2D(DQMStore::IBooker& ibooker,
60  MEbinning xbinning,
61  MEbinning ybinning);
62  MonitorElement* bookProfile(DQMStore::IBooker& ibooker,
67  MEbinning xbinning,
68  MEbinning ybinning);
69  void analyze(edm::Event const& iEvent, edm::EventSetup const& iSetup) override;
70 
71 private:
72  void getHistoPSet(edm::ParameterSet pset, MEbinning& mebinning);
73 
75 
80 
81  int pvNDOF_;
82 
84 
85  MonitorElement* v0_N_;
86  MonitorElement* v0_mass_;
87  MonitorElement* v0_pt_;
88  MonitorElement* v0_eta_;
89  MonitorElement* v0_phi_;
90  MonitorElement* v0_Lxy_;
91  MonitorElement* v0_Lxy_wrtBS_;
92  MonitorElement* v0_chi2oNDF_;
93  MonitorElement* v0_mass_vs_p_;
94  MonitorElement* v0_mass_vs_pt_;
95  MonitorElement* v0_mass_vs_eta_;
96  MonitorElement* v0_deltaMass_;
97  MonitorElement* v0_deltaMass_vs_pt_;
98  MonitorElement* v0_deltaMass_vs_eta_;
99 
100  MonitorElement* v0_Lxy_vs_deltaMass_;
101  MonitorElement* v0_Lxy_vs_pt_;
102  MonitorElement* v0_Lxy_vs_eta_;
103 
104  MonitorElement* n_vs_BX_;
105  MonitorElement* v0_N_vs_BX_;
106  MonitorElement* v0_mass_vs_BX_;
107  MonitorElement* v0_Lxy_vs_BX_;
108  MonitorElement* v0_deltaMass_vs_BX_;
109 
110  MonitorElement* n_vs_lumi_;
111  MonitorElement* v0_N_vs_lumi_;
112  MonitorElement* v0_mass_vs_lumi_;
113  MonitorElement* v0_Lxy_vs_lumi_;
114  MonitorElement* v0_deltaMass_vs_lumi_;
115 
116  MonitorElement* n_vs_PU_;
117  MonitorElement* v0_N_vs_PU_;
118  MonitorElement* v0_mass_vs_PU_;
119  MonitorElement* v0_Lxy_vs_PU_;
120  MonitorElement* v0_deltaMass_vs_PU_;
121 
122  MonitorElement* n_vs_LS_;
123  MonitorElement* v0_N_vs_LS_;
124 
125  MEbinning mass_binning_;
126  MEbinning pt_binning_;
127  MEbinning eta_binning_;
128  MEbinning Lxy_binning_;
129  MEbinning chi2oNDF_binning_;
130  MEbinning lumi_binning_;
131  MEbinning pu_binning_;
132  MEbinning ls_binning_;
133 };
134 
135 #endif // LUMIMONITOR_H
MEbinning pu_binning_
Definition: V0Monitor.h:131
MonitorElement * v0_Lxy_vs_pt_
Definition: V0Monitor.h:101
MonitorElement * v0_deltaMass_vs_PU_
Definition: V0Monitor.h:120
MonitorElement * v0_mass_vs_PU_
Definition: V0Monitor.h:118
MonitorElement * v0_pt_
Definition: V0Monitor.h:87
MonitorElement * v0_Lxy_vs_PU_
Definition: V0Monitor.h:119
MonitorElement * v0_N_vs_LS_
Definition: V0Monitor.h:123
MonitorElement * v0_mass_vs_eta_
Definition: V0Monitor.h:95
MonitorElement * v0_mass_vs_lumi_
Definition: V0Monitor.h:112
dqm::legacy::MonitorElement MonitorElement
Definition: V0Monitor.h:42
MEbinning Lxy_binning_
Definition: V0Monitor.h:128
MonitorElement * v0_mass_vs_p_
Definition: V0Monitor.h:93
MonitorElement * v0_mass_
Definition: V0Monitor.h:86
MEbinning lumi_binning_
Definition: V0Monitor.h:130
MonitorElement * v0_chi2oNDF_
Definition: V0Monitor.h:92
MonitorElement * v0_mass_vs_pt_
Definition: V0Monitor.h:94
MonitorElement * v0_deltaMass_
Definition: V0Monitor.h:96
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
MonitorElement * v0_eta_
Definition: V0Monitor.h:88
edm::EDGetTokenT< reco::BeamSpot > bsToken_
Definition: V0Monitor.h:77
int iEvent
Definition: GenABIO.cc:224
MonitorElement * v0_deltaMass_vs_lumi_
Definition: V0Monitor.h:114
edm::EDGetTokenT< reco::VertexCompositeCandidateCollection > v0Token_
Definition: V0Monitor.h:76
MonitorElement * v0_Lxy_vs_BX_
Definition: V0Monitor.h:107
MEbinning ls_binning_
Definition: V0Monitor.h:132
double xmin
Definition: V0Monitor.h:31
MonitorElement * v0_Lxy_wrtBS_
Definition: V0Monitor.h:91
int pvNDOF_
Definition: V0Monitor.h:81
MonitorElement * n_vs_lumi_
Definition: V0Monitor.h:110
std::string folderName_
Definition: V0Monitor.h:74
dqm::legacy::DQMStore DQMStore
Definition: V0Monitor.h:41
MonitorElement * v0_Lxy_vs_lumi_
Definition: V0Monitor.h:113
MonitorElement * v0_Lxy_vs_eta_
Definition: V0Monitor.h:102
MonitorElement * v0_deltaMass_vs_BX_
Definition: V0Monitor.h:108
edm::EDGetTokenT< reco::VertexCollection > pvToken_
Definition: V0Monitor.h:78
MonitorElement * v0_deltaMass_vs_eta_
Definition: V0Monitor.h:98
MEbinning pt_binning_
Definition: V0Monitor.h:126
MEbinning chi2oNDF_binning_
Definition: V0Monitor.h:129
MonitorElement * v0_N_
Definition: V0Monitor.h:85
MEbinning mass_binning_
Definition: V0Monitor.h:125
example_stream void bookHistograms(DQMStore::IBooker &,@example_stream edm::Run const &,@example_stream edm::EventSetup const &) override
edm::EDGetTokenT< LumiScalersCollection > lumiscalersToken_
Definition: V0Monitor.h:79
MonitorElement * v0_Lxy_vs_deltaMass_
Definition: V0Monitor.h:100
int nbins
Definition: V0Monitor.h:30
MonitorElement * n_vs_PU_
Definition: V0Monitor.h:116
MonitorElement * n_vs_LS_
Definition: V0Monitor.h:122
MEbinning eta_binning_
Definition: V0Monitor.h:127
GenericTriggerEventFlag * genTriggerEventFlag_
Definition: V0Monitor.h:83
MonitorElement * v0_phi_
Definition: V0Monitor.h:89
MonitorElement * v0_N_vs_BX_
Definition: V0Monitor.h:105
MonitorElement * v0_mass_vs_BX_
Definition: V0Monitor.h:106
MonitorElement * n_vs_BX_
Definition: V0Monitor.h:104
MonitorElement * v0_N_vs_lumi_
Definition: V0Monitor.h:111
Definition: Run.h:45
MonitorElement * v0_N_vs_PU_
Definition: V0Monitor.h:117
double xmax
Definition: V0Monitor.h:32
MonitorElement * v0_Lxy_
Definition: V0Monitor.h:90
MonitorElement * v0_deltaMass_vs_pt_
Definition: V0Monitor.h:97