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 
11 class ESDaqInfoTask : public edm::one::EDAnalyzer<edm::one::SharedResources, edm::one::WatchLuminosityBlocks> {
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 endLuminosityBlock(const edm::LuminosityBlock&, const edm::EventSetup&) override;
37 
39  void reset(void);
40 
41 private:
45 
46  bool mergeRuns_;
47 
51 
53 
56 
58 
59  bool ESOnFed_[56];
60 
61  int getFEDNumber(const int x, const int y) {
62  int iz = (x < 40) ? 1 : 2;
63  int ip = (y >= 40) ? 1 : 2;
64  int ix = (x < 40) ? x : x - 40;
65  int iy = (y < 40) ? y : y - 40;
66  return (*es_mapping_).getFED(iz, ip, ix + 1, iy + 1);
67  }
68 };
69 
70 #endif
void endJob(void) override
EndJob.
bool ESOnFed_[56]
Definition: ESDaqInfoTask.h:59
int getFEDNumber(const int x, const int y)
Definition: ESDaqInfoTask.h:61
dqm::legacy::MonitorElement MonitorElement
Definition: ESDaqInfoTask.h:13
std::string prefixME_
Definition: ESDaqInfoTask.h:44
MonitorElement * meESDaqActiveMap_
Definition: ESDaqInfoTask.h:50
void beginJob(void) override
BeginJob.
edm::ESGetToken< RunInfo, RunInfoRcd > runInfoToken_
Definition: ESDaqInfoTask.h:43
~ESDaqInfoTask() override
Destructor.
void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
EndLuminosityBlock.
void reset(void)
Reset.
MonitorElement * meESDaqError_
Definition: ESDaqInfoTask.h:52
DQMStore * dqmStore_
Definition: ESDaqInfoTask.h:42
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
MonitorElement * meESDaqActive_[56]
Definition: ESDaqInfoTask.h:49
void beginLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup) override
BeginLuminosityBlock.
MonitorElement * meESDaqFraction_
Definition: ESDaqInfoTask.h:48
ESElectronicsMapper * es_mapping_
Definition: ESDaqInfoTask.h:57
dqm::legacy::DQMStore DQMStore
Definition: ESDaqInfoTask.h:14
ESDaqInfoTask(const edm::ParameterSet &ps)
Constructor.