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 
4 #include "DQWorkerTask.h"
5 
8 
10 
11 namespace ecaldqm
12 {
13  class RawDataTask : public DQWorkerTask {
14  public:
15  RawDataTask();
17 
18  void addDependencies(DependencySet&) override;
19 
20  void beginRun(edm::Run const&, edm::EventSetup const&) override;
21  void beginLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&) override;
22  void beginEvent(edm::Event const&, edm::EventSetup const&) override;
23 
24  bool analyze(void const*, Collections) override;
25 
26  void runOnSource(FEDRawDataCollection const&);
28 
29  enum Constants {
31  };
32 
33  private:
34  edm::RunNumber_t runNumber_; // run number needed regardless of single-/multi-thread operation
35  int l1A_;
36  int orbit_;
37  int bx_;
38  short triggerType_;
40 
41  };
42 
43  inline bool RawDataTask::analyze(void const* _p, Collections _collection){
44  switch(_collection){
45  case kSource:
46  if(_p) runOnSource(*static_cast<FEDRawDataCollection const*>(_p));
47  return true;
48  break;
49  case kEcalRawData:
50  if(_p) runOnRawData(*static_cast<EcalRawDataCollection const*>(_p));
51  return true;
52  break;
53  default:
54  break;
55  }
56  return false;
57  }
58 
59 }
60 
61 #endif
62 
void runOnRawData(EcalRawDataCollection const &)
Definition: RawDataTask.cc:77
void addDependencies(DependencySet &) override
Definition: RawDataTask.cc:26
bool analyze(void const *, Collections) override
Definition: RawDataTask.h:43
edm::RunNumber_t runNumber_
Definition: RawDataTask.h:34
void beginRun(edm::Run const &, edm::EventSetup const &) override
Definition: RawDataTask.cc:32
void runOnSource(FEDRawDataCollection const &)
Definition: RawDataTask.cc:55
void beginEvent(edm::Event const &, edm::EventSetup const &) override
Definition: RawDataTask.cc:45
unsigned int RunNumber_t
Definition: EventRange.h:32
void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
Definition: RawDataTask.cc:38
Definition: Run.h:41