CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
IntegrityTask.h
Go to the documentation of this file.
1 #ifndef IntegrityTask_H
2 #define IntegrityTask_H
3 
5 
8 
9 namespace ecaldqm {
10 
11  class IntegrityTask : public DQWorkerTask {
12  public:
15 
16  void bookMEs();
17 
19 
20  void analyze(const void*, Collections);
21 
24 
25  enum MESets {
35  };
36 
37  static void setMEData(std::vector<MEData>&);
38 
39  private:
40  int hltTaskMode_; // 0 -> Do not produce FED plots; 1 -> Only produce FED plots; 2 -> Do both
42  };
43 
44  inline void IntegrityTask::analyze(const void* _p, Collections _collection){
45  switch(_collection){
46  case kGainErrors:
47  case kChIdErrors:
48  case kGainSwitchErrors:
49  runOnErrors(*static_cast<const DetIdCollection*>(_p), _collection);
50  break;
51  case kTowerIdErrors:
52  case kBlockSizeErrors:
53  runOnErrors(*static_cast<const EcalElectronicsIdCollection*>(_p), _collection);
54  break;
55  default:
56  break;
57  }
58  }
59 
60 }
61 
62 #endif
63 
static void setMEData(std::vector< MEData > &)
void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
void analyze(const void *, Collections)
Definition: IntegrityTask.h:44
IntegrityTask(const edm::ParameterSet &, const edm::ParameterSet &)
Definition: IntegrityTask.cc:7
std::string hltTaskFolder_
Definition: IntegrityTask.h:41
void runOnErrors(const DetIdCollection &, Collections)