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
10 
12 public:
15 
18 
20  ~ESDaqInfoTask() override;
21 
22 protected:
24  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
25 
27  void beginJob(void) override;
28 
30  void endJob(void) override;
31 
33  void beginLuminosityBlock(const edm::LuminosityBlock& lumiBlock, const edm::EventSetup& iSetup) override;
34 
36  void reset(void);
37 
38 private:
42 
43  bool mergeRuns_;
44 
48 
50 
53 
55 
56  bool ESOnFed_[56];
57 
58  int getFEDNumber(const int x, const int y) {
59  int iz = (x < 40) ? 1 : 2;
60  int ip = (y >= 40) ? 1 : 2;
61  int ix = (x < 40) ? x : x - 40;
62  int iy = (y < 40) ? y : y - 40;
63  return (*es_mapping_).getFED(iz, ip, ix + 1, iy + 1);
64  }
65 };
66 
67 #endif
void endJob(void) override
EndJob.
bool ESOnFed_[56]
Definition: ESDaqInfoTask.h:56
int getFEDNumber(const int x, const int y)
Definition: ESDaqInfoTask.h:58
dqm::legacy::MonitorElement MonitorElement
Definition: ESDaqInfoTask.h:13
std::string prefixME_
Definition: ESDaqInfoTask.h:41
MonitorElement * meESDaqActiveMap_
Definition: ESDaqInfoTask.h:47
void beginJob(void) override
BeginJob.
edm::ESGetToken< RunInfo, RunInfoRcd > runInfoToken_
Definition: ESDaqInfoTask.h:40
~ESDaqInfoTask() override
Destructor.
void reset(void)
Reset.
MonitorElement * meESDaqError_
Definition: ESDaqInfoTask.h:49
DQMStore * dqmStore_
Definition: ESDaqInfoTask.h:39
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
MonitorElement * meESDaqActive_[56]
Definition: ESDaqInfoTask.h:46
void beginLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup) override
BeginLuminosityBlock.
MonitorElement * meESDaqFraction_
Definition: ESDaqInfoTask.h:45
ESElectronicsMapper * es_mapping_
Definition: ESDaqInfoTask.h:54
dqm::legacy::DQMStore DQMStore
Definition: ESDaqInfoTask.h:14
ESDaqInfoTask(const edm::ParameterSet &ps)
Constructor.