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