#include <PNIntegrityTask.h>
Public Types | |
enum | MESets { kMEMChId, kMEMGain, kMEMBlockSize, kMEMTowerId, nMESets } |
Public Member Functions | |
void | analyze (const void *, Collections) |
PNIntegrityTask (const edm::ParameterSet &, const edm::ParameterSet &) | |
void | runOnErrors (const EcalElectronicsIdCollection &, Collections) |
~PNIntegrityTask () | |
Static Public Member Functions | |
static void | setMEData (std::vector< MEData > &) |
Definition at line 10 of file PNIntegrityTask.h.
Reimplemented from ecaldqm::DQWorker.
Definition at line 19 of file PNIntegrityTask.h.
{ kMEMChId, kMEMGain, kMEMBlockSize, kMEMTowerId, nMESets };
data refman pasoursint CMSSW_6_1_2_SLHC4_patch1 src DQM EcalBarrelMonitorTasks src PNIntegrityTask cc ecaldqm::PNIntegrityTask::PNIntegrityTask | ( | const edm::ParameterSet & | _params, |
const edm::ParameterSet & | _paths | ||
) |
Definition at line 8 of file PNIntegrityTask.cc.
References ecaldqm::kMEMBlockSizeErrors, ecaldqm::kMEMChIdErrors, ecaldqm::kMEMGainErrors, and ecaldqm::kMEMTowerIdErrors.
{ collectionMask_ = (0x1 << kMEMTowerIdErrors) | (0x1 << kMEMBlockSizeErrors) | (0x1 << kMEMChIdErrors) | (0x1 << kMEMGainErrors); }
ecaldqm::PNIntegrityTask::~PNIntegrityTask | ( | ) |
Definition at line 18 of file PNIntegrityTask.cc.
{ }
void ecaldqm::PNIntegrityTask::analyze | ( | const void * | _p, |
Collections | _collection | ||
) | [inline, virtual] |
Reimplemented from ecaldqm::DQWorkerTask.
Definition at line 30 of file PNIntegrityTask.h.
References ecaldqm::kMEMBlockSizeErrors, ecaldqm::kMEMChIdErrors, ecaldqm::kMEMGainErrors, ecaldqm::kMEMTowerIdErrors, and runOnErrors().
{ switch(_collection){ case kMEMTowerIdErrors: case kMEMBlockSizeErrors: case kMEMChIdErrors: case kMEMGainErrors: runOnErrors(*static_cast<const EcalElectronicsIdCollection*>(_p), _collection); break; default: break; } }
void ecaldqm::PNIntegrityTask::runOnErrors | ( | const EcalElectronicsIdCollection & | _ids, |
Collections | _collection | ||
) |
Definition at line 23 of file PNIntegrityTask.cc.
References edm::EDCollection< T >::begin(), edm::EDCollection< T >::end(), kMEMBlockSize, ecaldqm::kMEMBlockSizeErrors, kMEMChId, ecaldqm::kMEMChIdErrors, kMEMGain, ecaldqm::kMEMGainErrors, kMEMTowerId, ecaldqm::kMEMTowerIdErrors, ecaldqm::DQWorker::MEs_, and nMESets.
Referenced by analyze().
{ MESets set(nMESets); switch(_collection){ case kMEMTowerIdErrors: set = kMEMTowerId; break; case kMEMBlockSizeErrors: set = kMEMBlockSize; break; case kMEMChIdErrors: set = kMEMChId; break; case kMEMGainErrors: set = kMEMGain; break; default: return; } for(EcalElectronicsIdCollection::const_iterator idItr(_ids.begin()); idItr != _ids.end(); ++idItr){ if(MEs_[set]) MEs_[set]->fill(*idItr); } }
void ecaldqm::PNIntegrityTask::setMEData | ( | std::vector< MEData > & | _data | ) | [static] |
Reimplemented from ecaldqm::DQWorker.
Definition at line 51 of file PNIntegrityTask.cc.
References MonitorElement::DQM_KIND_TH1F, EcalDQMBinningService::kChannel, EcalDQMBinningService::kCrystal, kMEMBlockSize, kMEMChId, kMEMGain, and kMEMTowerId.
{ _data[kMEMChId] = MEData("MEMChId", BinService::kChannel, BinService::kCrystal, MonitorElement::DQM_KIND_TH1F); _data[kMEMGain] = MEData("MEMGain", BinService::kChannel, BinService::kCrystal, MonitorElement::DQM_KIND_TH1F); _data[kMEMBlockSize] = MEData("MEMBlockSize", BinService::kChannel, BinService::kCrystal, MonitorElement::DQM_KIND_TH1F); _data[kMEMTowerId] = MEData("MEMTowerId", BinService::kChannel, BinService::kCrystal, MonitorElement::DQM_KIND_TH1F); }