test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PresampleTask.h
Go to the documentation of this file.
1 #ifndef PresampleTask_H
2 #define PresampleTask_H
3 
4 #include "DQWorkerTask.h"
5 
8 
9 namespace ecaldqm
10 {
11  class PresampleTask : public DQWorkerTask {
12  public:
13  PresampleTask();
15 
16  bool filterRunType(short const*) override;
17 
18  bool analyze(void const*, Collections) override;
19 
20  template<typename DigiCollection> void runOnDigis(DigiCollection const&);
21 
22  private:
23  void setParams(edm::ParameterSet const&) override;
24 
26  int nSamples_;
27  };
28 
29  inline bool PresampleTask::analyze(void const* _p, Collections _collection){
30  switch(_collection){
31  case kEBDigi:
32  if(_p) runOnDigis(*static_cast<EBDigiCollection const*>(_p));
33  return true;
34  case kEEDigi:
35  if(_p) runOnDigis(*static_cast<EEDigiCollection const*>(_p));
36  return true;
37  break;
38  default:
39  break;
40  }
41 
42  return false;
43  }
44 }
45 
46 #endif
47 
void runOnDigis(DigiCollection const &)
void setParams(edm::ParameterSet const &) override
bool analyze(void const *, Collections) override
Definition: PresampleTask.h:29
bool filterRunType(short const *) override