CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TestPulseTask.h
Go to the documentation of this file.
1 #ifndef TestPulseTask_H
2 #define TestPulseTask_H
3 
4 #include "DQWorkerTask.h"
5 
7 
11 
12 namespace ecaldqm {
13 
14  class TestPulseTask : public DQWorkerTask {
15  public:
16  TestPulseTask();
18 
19  bool filterRunType(short const*) override;
20 
21  void addDependencies(DependencySet&) override;
22 
23  bool analyze(void const*, Collections) override;
24 
26  template<typename DigiCollection> void runOnDigis(DigiCollection const&);
29 
30  private:
31  void setParams(edm::ParameterSet const&) override;
32 
33  std::map<int, unsigned> gainToME_;
34  std::map<int, unsigned> pnGainToME_;
35 
36  bool enable_[nDCC];
37  int gain_[nDCC];
38  };
39 
40  inline bool TestPulseTask::analyze(void const* _p, Collections _collection){
41  switch(_collection){
42  case kEcalRawData:
43  if(_p) runOnRawData(*static_cast<EcalRawDataCollection const*>(_p));
44  return true;
45  break;
46  case kEBDigi:
47  if(_p) runOnDigis(*static_cast<EBDigiCollection const*>(_p));
48  return true;
49  break;
50  case kEEDigi:
51  if(_p) runOnDigis(*static_cast<EEDigiCollection const*>(_p));
52  return true;
53  break;
54  case kPnDiodeDigi:
55  if(_p) runOnPnDigis(*static_cast<EcalPnDiodeDigiCollection const*>(_p));
56  return true;
57  break;
60  if(_p) runOnUncalibRecHits(*static_cast<EcalUncalibratedRecHitCollection const*>(_p));
61  return true;
62  break;
63  default:
64  break;
65  }
66  return false;
67  }
68 
69 }
70 
71 #endif
std::map< int, unsigned > gainToME_
Definition: TestPulseTask.h:33
std::map< int, unsigned > pnGainToME_
Definition: TestPulseTask.h:34
bool filterRunType(short const *) override
void setParams(edm::ParameterSet const &) override
void runOnDigis(DigiCollection const &)
void runOnPnDigis(EcalPnDiodeDigiCollection const &)
bool analyze(void const *, Collections) override
Definition: TestPulseTask.h:40
void addDependencies(DependencySet &) override
void runOnUncalibRecHits(EcalUncalibratedRecHitCollection const &)
void runOnRawData(EcalRawDataCollection const &)