CMS 3D CMS Logo

ESDaqInfoTask.h
Go to the documentation of this file.
1 #ifndef ESDaqInfoTask_h
2 #define ESDaqInfoTask_h
3 
7 
8 #include "Geometry/EcalMapping/interface/ESElectronicsMapper.h" // definition in line 75
9 
10 class DQMStore;
11 class MonitorElement;
12 
14 
15  public:
16 
19 
21  ~ESDaqInfoTask() override;
22 
23  protected:
24 
26  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
27 
29  void beginJob(void) override;
30 
32  void endJob(void) override;
33 
35  void beginLuminosityBlock(const edm::LuminosityBlock& lumiBlock, const edm::EventSetup& iSetup) override;
36 
38  void endLuminosityBlock(const edm::LuminosityBlock& lumiBlock, const edm::EventSetup& iSetup) override;
39 
41  void reset(void);
42 
44  void cleanup(void);
45 
46  private:
47 
49 
51 
53 
54  bool mergeRuns_;
55 
59 
61 
64 
66 
67  bool ESOnFed_[56];
68 
69  int getFEDNumber(const int x, const int y) {
70  int iz = (x < 40) ? 1 : 2;
71  int ip = (y >= 40) ? 1 : 2;
72  int ix = (x < 40) ? x : x - 40;
73  int iy = (y < 40) ? y :y - 40;
74  return (*es_mapping_).getFED( iz, ip, ix + 1, iy + 1);
75  }
76 
77 };
78 
79 #endif
80 
void endJob(void) override
EndJob.
bool ESOnFed_[56]
Definition: ESDaqInfoTask.h:67
int getFEDNumber(const int x, const int y)
Definition: ESDaqInfoTask.h:69
std::string prefixME_
Definition: ESDaqInfoTask.h:50
void cleanup(void)
Cleanup.
MonitorElement * meESDaqActiveMap_
Definition: ESDaqInfoTask.h:58
void beginJob(void) override
BeginJob.
void endLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup) override
EndLuminosityBlock.
~ESDaqInfoTask() override
Destructor.
void reset(void)
Reset.
MonitorElement * meESDaqError_
Definition: ESDaqInfoTask.h:60
DQMStore * dqmStore_
Definition: ESDaqInfoTask.h:48
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
MonitorElement * meESDaqActive_[56]
Definition: ESDaqInfoTask.h:57
void beginLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup) override
BeginLuminosityBlock.
MonitorElement * meESDaqFraction_
Definition: ESDaqInfoTask.h:56
ESElectronicsMapper * es_mapping_
Definition: ESDaqInfoTask.h:65
ESDaqInfoTask(const edm::ParameterSet &ps)
Constructor.