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 
27  int nSamples_;
28  };
29 
30  inline bool PresampleTask::analyze(void const* _p, Collections _collection){
31  switch(_collection){
32  case kEBDigi:
33  if(_p) runOnDigis(*static_cast<EBDigiCollection const*>(_p));
34  return true;
35  case kEEDigi:
36  if(_p) runOnDigis(*static_cast<EEDigiCollection const*>(_p));
37  return true;
38  break;
39  default:
40  break;
41  }
42 
43  return false;
44  }
45 }
46 
47 #endif
48 
void runOnDigis(DigiCollection const &)
void setParams(edm::ParameterSet const &) override
bool analyze(void const *, Collections) override
Definition: PresampleTask.h:30
bool filterRunType(short const *) override