CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Static Private Attributes
ecaldqm::SetWorker Class Reference

#include <DQWorker.h>

Public Member Functions

template<class W >
 SetWorker (const std::string &_name, W *)
 

Static Public Member Functions

static WorkerFactory findFactory (const std::string &)
 

Static Private Attributes

static std::map< std::string,
WorkerFactory
workerFactories_
 

Detailed Description

Definition at line 76 of file DQWorker.h.

Constructor & Destructor Documentation

template<class W >
ecaldqm::SetWorker::SetWorker ( const std::string &  _name,
W *   
)
inline

Definition at line 78 of file DQWorker.h.

References data, ecaldqm::DQWorker::meData, and workerFactories_.

78  {
79  workerFactories_[_name] = workerFactory<W>;
80 
81  std::vector<MEData>& data(DQWorker::meData[_name]);
82  data.clear();
83  data.resize(W::nMESets);
84  W::setMEData(data);
85  }
static std::map< std::string, WorkerFactory > workerFactories_
Definition: DQWorker.h:88
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
static std::map< std::string, std::vector< MEData > > meData
Definition: DQWorker.h:47

Member Function Documentation

WorkerFactory ecaldqm::SetWorker::findFactory ( const std::string &  _name)
static

Definition at line 131 of file DQWorker.cc.

References NULL.

Referenced by EcalDQMonitorTask::EcalDQMonitorTask().

132  {
133  if(workerFactories_.find(_name) != workerFactories_.end()) return workerFactories_[_name];
134  return NULL;
135  }
#define NULL
Definition: scimark2.h:8
static std::map< std::string, WorkerFactory > workerFactories_
Definition: DQWorker.h:88

Member Data Documentation

std::map< std::string, WorkerFactory > ecaldqm::SetWorker::workerFactories_
staticprivate

Definition at line 88 of file DQWorker.h.

Referenced by SetWorker().