CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RawDataTask.h
Go to the documentation of this file.
1 #ifndef RawDataTask_H
2 #define RawDataTask_H
3 
5 
8 
9 namespace ecaldqm {
10 
11  class RawDataTask : public DQWorkerTask {
12  public:
14  ~RawDataTask();
15 
16  void bookMEs() override;
17 
18  void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override;
19  void beginEvent(const edm::Event &, const edm::EventSetup &) override;
20 
21  void analyze(const void*, Collections) override;
22 
25 
26  enum MESets {
30  kCRC, // h1f
31  kRunNumber, // h1f
32  kOrbit, // h1f
33  kTriggerType, // h1f
34  kL1ADCC, // h1f
35  kL1AFE, // h1f
36  // kL1AFEMap, // h2f
37  kL1ATCC, // h1f
38  kL1ASRP, // h1f
39  kBXDCC, // h1f
40  kBXFE, // h1f
41  kBXTCC, // h1f
42  kBXSRP, // h1f
43  kDesyncByLumi, // h1f
44  kDesyncTotal, // h1f
45  kFEStatus, // h1f
46  kFEByLumi, // h1f
50  };
51 
52  enum Constants {
54  };
55 
56  static void setMEData(std::vector<MEData>&);
57 
58  private:
59  int hltTaskMode_; // 0 -> Do not produce FED plots; 1 -> Only produce FED plots; 2 -> Do both
61  int run_;
62  int l1A_;
63  int orbit_;
64  int bx_;
65  short triggerType_;
67 
68  };
69 
70  inline void RawDataTask::analyze(const void* _p, Collections _collection){
71  switch(_collection){
72  case kSource:
73  runOnSource(*static_cast<const FEDRawDataCollection*>(_p), _collection);
74  break;
75  case kEcalRawData:
76  runOnRawData(*static_cast<const EcalRawDataCollection*>(_p), _collection);
77  break;
78  default:
79  break;
80  }
81  }
82 
83 }
84 
85 #endif
86 
void analyze(const void *, Collections) override
Definition: RawDataTask.h:70
void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
Definition: RawDataTask.cc:123
void runOnRawData(const EcalRawDataCollection &, Collections)
Definition: RawDataTask.cc:166
void bookMEs() override
Definition: RawDataTask.cc:52
void beginEvent(const edm::Event &, const edm::EventSetup &) override
Definition: RawDataTask.cc:130
std::string hltTaskFolder_
Definition: RawDataTask.h:60
RawDataTask(const edm::ParameterSet &, const edm::ParameterSet &)
Definition: RawDataTask.cc:12
static void setMEData(std::vector< MEData > &)
Definition: RawDataTask.cc:300
void runOnSource(const FEDRawDataCollection &, Collections)
Definition: RawDataTask.cc:141