CMS 3D CMS Logo

Public Types | Public Member Functions | Static Public Member Functions

ecaldqm::PNIntegrityTask Class Reference

#include <PNIntegrityTask.h>

Inheritance diagram for ecaldqm::PNIntegrityTask:
ecaldqm::DQWorkerTask ecaldqm::DQWorker

List of all members.

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 > &)

Detailed Description

Definition at line 10 of file PNIntegrityTask.h.


Member Enumeration Documentation

Enumerator:
kMEMChId 
kMEMGain 
kMEMBlockSize 
kMEMTowerId 
nMESets 

Reimplemented from ecaldqm::DQWorker.

Definition at line 19 of file PNIntegrityTask.h.


Constructor & Destructor Documentation

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 
)
ecaldqm::PNIntegrityTask::~PNIntegrityTask ( )

Definition at line 18 of file PNIntegrityTask.cc.

  {
  }


Member Function Documentation

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]