CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PNIntegrityTask.cc
Go to the documentation of this file.
1 #include "../interface/PNIntegrityTask.h"
2 
4 
5 namespace ecaldqm {
6 
8  DQWorkerTask(_params, _paths, "PNIntegrityTask")
9  {
11  (0x1 << kMEMTowerIdErrors) |
12  (0x1 << kMEMBlockSizeErrors) |
13  (0x1 << kMEMChIdErrors) |
14  (0x1 << kMEMGainErrors);
15  }
16 
18  {
19  }
20 
21  void
23  {
25 
26  switch(_collection){
27  case kMEMTowerIdErrors:
28  set = kMEMTowerId;
29  break;
31  set = kMEMBlockSize;
32  break;
33  case kMEMChIdErrors:
34  set = kMEMChId;
35  break;
36  case kMEMGainErrors:
37  set = kMEMGain;
38  break;
39  default:
40  return;
41  }
42 
43  for(EcalElectronicsIdCollection::const_iterator idItr(_ids.begin()); idItr != _ids.end(); ++idItr){
44  if(MEs_[set]) MEs_[set]->fill(*idItr);
45  }
46  }
47 
48  /*static*/
49  void
50  PNIntegrityTask::setMEData(std::vector<MEData>& _data)
51  {
56  }
57 
59 }
60 
61 
PNIntegrityTask(const edm::ParameterSet &, const edm::ParameterSet &)
const_iterator end() const
Definition: EDCollection.h:154
void runOnErrors(const EcalElectronicsIdCollection &, Collections)
std::vector< MESet * > MEs_
Definition: DQWorker.h:56
const_iterator begin() const
Definition: EDCollection.h:147
static void setMEData(std::vector< MEData > &)
DEFINE_ECALDQM_WORKER(CertificationClient)
std::vector< T >::const_iterator const_iterator
Definition: EDCollection.h:20
void set(const std::string &name, int value)
set the flag, with a run-time name