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  virtual ~ESDaqInfoTask();
22 
23  protected:
24 
26  void analyze(const edm::Event& e, const edm::EventSetup& c);
27 
29  void beginJob(void);
30 
32  void endJob(void);
33 
35  void beginLuminosityBlock(const edm::LuminosityBlock& lumiBlock, const edm::EventSetup& iSetup);
36 
38  void endLuminosityBlock(const edm::LuminosityBlock& lumiBlock, const edm::EventSetup& iSetup);
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 
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 beginJob(void)
BeginJob.
void cleanup(void)
Cleanup.
MonitorElement * meESDaqActiveMap_
Definition: ESDaqInfoTask.h:58
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
void reset(void)
Reset.
MonitorElement * meESDaqError_
Definition: ESDaqInfoTask.h:60
DQMStore * dqmStore_
Definition: ESDaqInfoTask.h:48
MonitorElement * meESDaqActive_[56]
Definition: ESDaqInfoTask.h:57
MonitorElement * meESDaqFraction_
Definition: ESDaqInfoTask.h:56
void endJob(void)
EndJob.
ESElectronicsMapper * es_mapping_
Definition: ESDaqInfoTask.h:65
void beginLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup)
BeginLuminosityBlock.
ESDaqInfoTask(const edm::ParameterSet &ps)
Constructor.
void endLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup)
EndLuminosityBlock.
virtual ~ESDaqInfoTask()
Destructor.