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 {
41 public:
42  V0Monitor( const edm::ParameterSet& );
43  ~V0Monitor() override;
44 
45 protected:
46 
47  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
48  MonitorElement* bookHisto1D(DQMStore::IBooker & ibooker,std::string name, std::string title, std::string xaxis, std::string yaxis, MEbinning binning);
49  MonitorElement* bookHisto2D(DQMStore::IBooker & ibooker,std::string name, std::string title, std::string xaxis, std::string yaxis, MEbinning xbinning, MEbinning ybinning);
50  MonitorElement* bookProfile(DQMStore::IBooker & ibooker,std::string name, std::string title, std::string xaxis, std::string yaxis, MEbinning xbinning, MEbinning ybinning);
51  void analyze(edm::Event const& iEvent, edm::EventSetup const& iSetup) override;
52 
53 private:
54 
55  void getHistoPSet(edm::ParameterSet pset, MEbinning& mebinning);
56 
58 
63 
64  int pvNDOF_;
65 
67 
82 
86 
92 
98 
104 
107 
108  MEbinning mass_binning_;
109  MEbinning pt_binning_;
110  MEbinning eta_binning_;
111  MEbinning Lxy_binning_;
112  MEbinning chi2oNDF_binning_;
113  MEbinning lumi_binning_;
114  MEbinning pu_binning_;
115  MEbinning ls_binning_;
116 };
117 
118 #endif // LUMIMONITOR_H
MEbinning pu_binning_
Definition: V0Monitor.h:114
MonitorElement * v0_Lxy_vs_pt_
Definition: V0Monitor.h:84
MonitorElement * v0_deltaMass_vs_PU_
Definition: V0Monitor.h:103
MonitorElement * v0_mass_vs_PU_
Definition: V0Monitor.h:101
MonitorElement * v0_pt_
Definition: V0Monitor.h:70
MonitorElement * v0_Lxy_vs_PU_
Definition: V0Monitor.h:102
MonitorElement * v0_N_vs_LS_
Definition: V0Monitor.h:106
MonitorElement * v0_mass_vs_eta_
Definition: V0Monitor.h:78
MonitorElement * v0_mass_vs_lumi_
Definition: V0Monitor.h:95
MEbinning Lxy_binning_
Definition: V0Monitor.h:111
MonitorElement * v0_mass_vs_p_
Definition: V0Monitor.h:76
MonitorElement * v0_mass_
Definition: V0Monitor.h:69
MEbinning lumi_binning_
Definition: V0Monitor.h:113
MonitorElement * v0_chi2oNDF_
Definition: V0Monitor.h:75
MonitorElement * v0_mass_vs_pt_
Definition: V0Monitor.h:77
MonitorElement * v0_deltaMass_
Definition: V0Monitor.h:79
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:71
edm::EDGetTokenT< reco::BeamSpot > bsToken_
Definition: V0Monitor.h:60
int iEvent
Definition: GenABIO.cc:224
MonitorElement * v0_deltaMass_vs_lumi_
Definition: V0Monitor.h:97
edm::EDGetTokenT< reco::VertexCompositeCandidateCollection > v0Token_
Definition: V0Monitor.h:59
MonitorElement * v0_Lxy_vs_BX_
Definition: V0Monitor.h:90
MEbinning ls_binning_
Definition: V0Monitor.h:115
double xmin
Definition: V0Monitor.h:31
MonitorElement * v0_Lxy_wrtBS_
Definition: V0Monitor.h:74
int pvNDOF_
Definition: V0Monitor.h:64
MonitorElement * n_vs_lumi_
Definition: V0Monitor.h:93
std::string folderName_
Definition: V0Monitor.h:57
MonitorElement * v0_Lxy_vs_lumi_
Definition: V0Monitor.h:96
MonitorElement * v0_Lxy_vs_eta_
Definition: V0Monitor.h:85
MonitorElement * v0_deltaMass_vs_BX_
Definition: V0Monitor.h:91
edm::EDGetTokenT< reco::VertexCollection > pvToken_
Definition: V0Monitor.h:61
MonitorElement * v0_deltaMass_vs_eta_
Definition: V0Monitor.h:81
MEbinning pt_binning_
Definition: V0Monitor.h:109
MEbinning chi2oNDF_binning_
Definition: V0Monitor.h:112
MonitorElement * v0_N_
Definition: V0Monitor.h:68
MEbinning mass_binning_
Definition: V0Monitor.h:108
example_stream void bookHistograms(DQMStore::IBooker &,@example_stream edm::Run const &,@example_stream edm::EventSetup const &) override
edm::EDGetTokenT< LumiScalersCollection > lumiscalersToken_
Definition: V0Monitor.h:62
MonitorElement * v0_Lxy_vs_deltaMass_
Definition: V0Monitor.h:83
int nbins
Definition: V0Monitor.h:30
MonitorElement * n_vs_PU_
Definition: V0Monitor.h:99
MonitorElement * n_vs_LS_
Definition: V0Monitor.h:105
MEbinning eta_binning_
Definition: V0Monitor.h:110
GenericTriggerEventFlag * genTriggerEventFlag_
Definition: V0Monitor.h:66
MonitorElement * v0_phi_
Definition: V0Monitor.h:72
MonitorElement * v0_N_vs_BX_
Definition: V0Monitor.h:88
MonitorElement * v0_mass_vs_BX_
Definition: V0Monitor.h:89
MonitorElement * n_vs_BX_
Definition: V0Monitor.h:87
MonitorElement * v0_N_vs_lumi_
Definition: V0Monitor.h:94
Definition: Run.h:45
MonitorElement * v0_N_vs_PU_
Definition: V0Monitor.h:100
double xmax
Definition: V0Monitor.h:32
MonitorElement * v0_Lxy_
Definition: V0Monitor.h:73
MonitorElement * v0_deltaMass_vs_pt_
Definition: V0Monitor.h:80