CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PSMonitor.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
22 
23 // legacy/stage-1 L1T:
24 //#include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerReadoutRecord.h"
25 
26 // stage-2 L1T:
28 
29 // PS service
32 
33 struct MEbinning {
34  int nbins;
35  double xmin;
36  double xmax;
37  // MEbinning() {};
38  // explicit MEbinning(int n, double min, double max) { nbins= n; xmin = min; xmax = max;}
39 };
40 
41 //
42 // class declaration
43 //
44 
45 class PSMonitor : public DQMEDAnalyzer
46 {
47 public:
48  PSMonitor( const edm::ParameterSet& );
49  ~PSMonitor() = default;
50  static void fillDescriptions(edm::ConfigurationDescriptions & descriptions);
52 
53 protected:
54 
55  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
56  void analyze(edm::Event const& iEvent, edm::EventSetup const& iSetup);
57 
58 private:
59 
60  void getHistoPSet(edm::ParameterSet& pset, MEbinning& mebinning);
61 
63 
65 
68 
70 
73 
74 };
75 
76 #endif // LUMIMONITOR_H
std::string folderName_
Definition: PSMonitor.h:62
edm::EDGetTokenT< GlobalAlgBlkBxCollection > ugtBXToken_
Definition: PSMonitor.h:64
~PSMonitor()=default
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: PSMonitor.cc:90
void getHistoPSet(edm::ParameterSet &pset, MEbinning &mebinning)
Definition: PSMonitor.cc:32
int iEvent
Definition: GenABIO.cc:230
MEbinning ps_binning_
Definition: PSMonitor.h:71
double xmin
Definition: LumiMonitor.h:30
MonitorElement * psColumnIndexVsLS_
Definition: PSMonitor.h:69
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: PSMonitor.cc:40
edm::service::PrescaleService * psService_
Prescale service.
Definition: PSMonitor.h:67
static void fillHistoPSetDescription(edm::ParameterSetDescription &pset, int value)
Definition: PSMonitor.cc:85
PSMonitor(const edm::ParameterSet &)
Definition: PSMonitor.cc:12
void analyze(edm::Event const &iEvent, edm::EventSetup const &iSetup)
Definition: PSMonitor.cc:70
Definition: Run.h:43
double xmax
Definition: LumiMonitor.h:31
MEbinning ls_binning_
Definition: PSMonitor.h:72