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 reset(void);
39 
41  void cleanup(void);
42 
43  private:
44 
46 
48 
50 
51  bool mergeRuns_;
52 
56 
58 
61 
63 
64  bool ESOnFed_[56];
65 
66  int getFEDNumber(const int x, const int y) {
67  int iz = (x < 40) ? 1 : 2;
68  int ip = (y >= 40) ? 1 : 2;
69  int ix = (x < 40) ? x : x - 40;
70  int iy = (y < 40) ? y :y - 40;
71  return (*es_mapping_).getFED( iz, ip, ix + 1, iy + 1);
72  }
73 
74 };
75 
76 #endif
77 
void endJob(void) override
EndJob.
bool ESOnFed_[56]
Definition: ESDaqInfoTask.h:64
int getFEDNumber(const int x, const int y)
Definition: ESDaqInfoTask.h:66
std::string prefixME_
Definition: ESDaqInfoTask.h:47
void cleanup(void)
Cleanup.
MonitorElement * meESDaqActiveMap_
Definition: ESDaqInfoTask.h:55
void beginJob(void) override
BeginJob.
~ESDaqInfoTask() override
Destructor.
void reset(void)
Reset.
MonitorElement * meESDaqError_
Definition: ESDaqInfoTask.h:57
DQMStore * dqmStore_
Definition: ESDaqInfoTask.h:45
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
MonitorElement * meESDaqActive_[56]
Definition: ESDaqInfoTask.h:54
void beginLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup) override
BeginLuminosityBlock.
MonitorElement * meESDaqFraction_
Definition: ESDaqInfoTask.h:53
ESElectronicsMapper * es_mapping_
Definition: ESDaqInfoTask.h:62
ESDaqInfoTask(const edm::ParameterSet &ps)
Constructor.