CMS 3D CMS Logo

LumiMonitor.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 
20 
21 //DataFormats
26 
27 
28 struct MEbinning {
29  int nbins;
30  double xmin;
31  double xmax;
32  // MEbinning() {};
33  // explicit MEbinning(int n, double min, double max) { nbins= n; xmin = min; xmax = max;}
34 };
35 
36 //
37 // class declaration
38 //
39 
40 class LumiMonitor : public DQMEDAnalyzer
41 {
42 public:
44  ~LumiMonitor() override = default;
45  static void fillDescriptions(edm::ConfigurationDescriptions & descriptions);
46  static void fillHistoPSetDescription(edm::ParameterSetDescription & pset);
47  static void fillHistoLSPSetDescription(edm::ParameterSetDescription & pset);
48 
49 protected:
50 
51  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
52  void analyze(edm::Event const& iEvent, edm::EventSetup const& iSetup) override;
53 
54 private:
55 
56  static MEbinning getHistoPSet (edm::ParameterSet pset);
57  static MEbinning getHistoLSPSet(edm::ParameterSet pset);
58 
60 
65 
73 
74 
76 
83 
85 
86 };
87 
88 #endif // LUMIMONITOR_H
bool useBPixLayer1_
Definition: LumiMonitor.h:68
def analyze(function, filename, filter=None)
Definition: Profiling.py:11
MEbinning pu_binning_
Definition: LumiMonitor.h:63
float minPixelClusterCharge_
Definition: LumiMonitor.h:70
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > pixelClustersToken_
Definition: LumiMonitor.h:67
void bookHistograms(fwlite::EventContainer &eventCont)
MonitorElement * numberOfPixelClustersVsLumi_
Definition: LumiMonitor.h:78
edm::EDGetTokenT< LumiSummary > lumiSummaryToken_
Definition: LumiMonitor.h:75
int iEvent
Definition: GenABIO.cc:230
std::string folderName_
Definition: LumiMonitor.h:59
MonitorElement * pixelLumiVsLumi_
Definition: LumiMonitor.h:82
edm::EDGetTokenT< LumiScalersCollection > lumiScalersToken_
Definition: LumiMonitor.h:61
MEbinning pixellumi_binning_
Definition: LumiMonitor.h:72
double xmin
Definition: LumiMonitor.h:30
MonitorElement * lumiVsLS_
Definition: LumiMonitor.h:79
MonitorElement * pixelLumiVsLS_
Definition: LumiMonitor.h:81
MonitorElement * puVsLS_
Definition: LumiMonitor.h:80
bool doPixelLumi_
Definition: LumiMonitor.h:66
MEbinning pixelCluster_binning_
Definition: LumiMonitor.h:71
MonitorElement * numberOfPixelClustersVsLS_
Definition: LumiMonitor.h:77
float lumi_factor_per_bx_
Definition: LumiMonitor.h:84
int minNumberOfPixelsPerCluster_
Definition: LumiMonitor.h:69
MEbinning lumi_binning_
Definition: LumiMonitor.h:62
MEbinning ls_binning_
Definition: LumiMonitor.h:64
Definition: Run.h:43
double xmax
Definition: LumiMonitor.h:31