CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | 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

Public Types

enum  MESets {
  kMEMChId, kMEMGain, kMEMBlockSize, kMEMTowerId,
  nMESets
}
 
- Public Types inherited from ecaldqm::DQWorker
enum  MESets { nMESets }
 

Public Member Functions

void analyze (const void *, Collections) override
 
 PNIntegrityTask (const edm::ParameterSet &, const edm::ParameterSet &)
 
void runOnErrors (const EcalElectronicsIdCollection &, Collections)
 
 ~PNIntegrityTask ()
 
- Public Member Functions inherited from ecaldqm::DQWorkerTask
virtual void beginEvent (const edm::Event &, const edm::EventSetup &)
 
 DQWorkerTask (const edm::ParameterSet &, const edm::ParameterSet &, std::string const &)
 
virtual void endEvent (const edm::Event &, const edm::EventSetup &)
 
virtual bool filterRunType (const std::vector< short > &)
 
virtual bool filterTrigger (const edm::TriggerResultsByName &)
 
virtual const std::vector
< std::pair< Collections,
Collections > > & 
getDependencies ()
 
virtual bool runsOn (unsigned)
 
virtual ~DQWorkerTask ()
 
- Public Member Functions inherited from ecaldqm::DQWorker
virtual void beginLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &)
 
virtual void beginRun (const edm::Run &, const edm::EventSetup &)
 
virtual void bookMEs ()
 
 DQWorker (const edm::ParameterSet &, const edm::ParameterSet &, std::string const &)
 
virtual void endLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &)
 
virtual void endRun (const edm::Run &, const edm::EventSetup &)
 
const std::vector< MESet * > & getMEs ()
 
virtual std::string const & getName ()
 
virtual bool isInitialized ()
 
virtual void reset ()
 
virtual void setInitialized (bool _init)
 
virtual void setVerbosity (int _verbosity)
 
virtual ~DQWorker ()
 

Static Public Member Functions

static void setMEData (std::vector< MEData > &)
 
- Static Public Member Functions inherited from ecaldqm::DQWorker
static void setMEData (std::vector< MEData > &)
 

Additional Inherited Members

- Static Public Attributes inherited from ecaldqm::DQWorker
static std::map< std::string,
std::vector< MEData > > 
meData
 
- Protected Member Functions inherited from ecaldqm::DQWorker
MESetcreateMESet_ (std::string const &, MEData const &, bool _readOnly=false) const
 
void meSet_ (unsigned, edm::ParameterSet const &)
 
- Protected Attributes inherited from ecaldqm::DQWorkerTask
uint32_t collectionMask_
 
std::vector< std::pair
< Collections, Collections > > 
dependencies_
 
- Protected Attributes inherited from ecaldqm::DQWorker
bool initialized_
 
std::vector< MESet * > MEs_
 
std::string name_
 
int verbosity_
 

Detailed Description

Definition at line 10 of file PNIntegrityTask.h.

Member Enumeration Documentation

Constructor & Destructor Documentation

ecaldqm::PNIntegrityTask::PNIntegrityTask ( const edm::ParameterSet _params,
const edm::ParameterSet _paths 
)

Definition at line 7 of file PNIntegrityTask.cc.

References ecaldqm::DQWorkerTask::collectionMask_, ecaldqm::kMEMBlockSizeErrors, ecaldqm::kMEMChIdErrors, ecaldqm::kMEMGainErrors, and ecaldqm::kMEMTowerIdErrors.

7  :
8  DQWorkerTask(_params, _paths, "PNIntegrityTask")
9  {
11  (0x1 << kMEMTowerIdErrors) |
12  (0x1 << kMEMBlockSizeErrors) |
13  (0x1 << kMEMChIdErrors) |
14  (0x1 << kMEMGainErrors);
15  }
DQWorkerTask(const edm::ParameterSet &, const edm::ParameterSet &, std::string const &)
Definition: DQWorkerTask.cc:5
ecaldqm::PNIntegrityTask::~PNIntegrityTask ( )

Definition at line 17 of file PNIntegrityTask.cc.

18  {
19  }

Member Function Documentation

void ecaldqm::PNIntegrityTask::analyze ( const void *  _p,
Collections  _collection 
)
inlineoverridevirtual

Reimplemented from ecaldqm::DQWorkerTask.

Definition at line 30 of file PNIntegrityTask.h.

References ecaldqm::kMEMBlockSizeErrors, ecaldqm::kMEMChIdErrors, ecaldqm::kMEMGainErrors, ecaldqm::kMEMTowerIdErrors, and runOnErrors().

30  {
31  switch(_collection){
32  case kMEMTowerIdErrors:
34  case kMEMChIdErrors:
35  case kMEMGainErrors:
36  runOnErrors(*static_cast<const EcalElectronicsIdCollection*>(_p), _collection);
37  break;
38  default:
39  break;
40  }
41  }
void runOnErrors(const EcalElectronicsIdCollection &, Collections)
void ecaldqm::PNIntegrityTask::runOnErrors ( const EcalElectronicsIdCollection _ids,
Collections  _collection 
)

Definition at line 22 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().

23  {
24  MESets set(nMESets);
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  }
const_iterator end() const
Definition: EDCollection.h:153
std::vector< MESet * > MEs_
Definition: DQWorker.h:56
const_iterator begin() const
Definition: EDCollection.h:146
std::vector< EcalElectronicsId >::const_iterator const_iterator
Definition: EDCollection.h:19
void ecaldqm::PNIntegrityTask::setMEData ( std::vector< MEData > &  _data)
static