CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | Private Attributes | Friends
ecaldqm::DQWorker Class Reference

#include <DQWorker.h>

Inheritance diagram for ecaldqm::DQWorker:
ecaldqm::DBWriterWorker ecaldqm::DQWorkerClient ecaldqm::DQWorkerTask EcalMEFormatter ecaldqm::IntegrityWriter ecaldqm::LaserWriter ecaldqm::LedWriter ecaldqm::OccupancyWriter ecaldqm::PedestalWriter ecaldqm::PresampleWriter ecaldqm::SummaryWriter ecaldqm::TestPulseWriter ecaldqm::TimingWriter ecaldqm::CalibrationSummaryClient ecaldqm::CertificationClient ecaldqm::IntegrityClient ecaldqm::LaserClient ecaldqm::LedClient ecaldqm::MLClient ecaldqm::OccupancyClient ecaldqm::PedestalClient ecaldqm::PNIntegrityClient ecaldqm::PresampleClient ecaldqm::RawDataClient ecaldqm::SelectiveReadoutClient ecaldqm::SummaryClient ecaldqm::TestPulseClient ecaldqm::TimingClient ecaldqm::TowerStatusTask ecaldqm::TrigPrimClient ecaldqm::ClusterTask ecaldqm::EnergyTask ecaldqm::GpuTask ecaldqm::IntegrityTask ecaldqm::LaserTask ecaldqm::LedTask ecaldqm::OccupancyTask ecaldqm::PedestalTask ecaldqm::PiZeroTask ecaldqm::PNDiodeTask ecaldqm::PresampleTask ecaldqm::RawDataTask ecaldqm::RecoSummaryTask ecaldqm::SelectiveReadoutTask ecaldqm::TestPulseTask ecaldqm::TimingTask ecaldqm::TrigPrimTask

Classes

struct  Timestamp
 

Public Member Functions

virtual void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void beginRun (edm::Run const &, edm::EventSetup const &)
 
virtual void bookMEs (DQMStore::IBooker &)
 
bool checkElectronicsMap (bool=true)
 
bool checkGeometry (bool=true)
 
bool checkTopology (bool=true)
 
bool checkTrigTowerMap (bool=true)
 
 DQWorker ()
 
virtual void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void endRun (edm::Run const &, edm::EventSetup const &)
 
EcalDQMSetupObjects const getEcalDQMSetupObjects ()
 
EcalElectronicsMapping const * GetElectronicsMap ()
 
CaloGeometry const * GetGeometry ()
 
std::string const & getName () const
 
CaloTopology const * GetTopology ()
 
EcalTrigTowerConstituentsMap const * GetTrigTowerMap ()
 
bool onlineMode () const
 
virtual void releaseMEs ()
 
void setEventNumber (edm::EventNumber_t _e)
 
void setLumiNumber (edm::LuminosityBlockNumber_t _l)
 
void setRunNumber (edm::RunNumber_t _r)
 
void setSetupObjects (edm::EventSetup const &)
 
void setSetupObjectsEndLumi (edm::EventSetup const &)
 
void setTime (time_t _t)
 
void setTokens (edm::ConsumesCollector &)
 
virtual ~DQWorker () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ParameterSetDescription &_desc)
 

Public Attributes

edm::ESGetToken< EcalElectronicsMapping, EcalMappingRcdelecMapHandle
 
edm::ESGetToken< EcalElectronicsMapping, EcalMappingRcdelecMapHandleEndLumi
 
edm::ESGetToken< CaloGeometry, CaloGeometryRecordgeomHandle
 
edm::ESGetToken< CaloGeometry, CaloGeometryRecordgeomHandleEndLumi
 
edm::ESGetToken< CaloTopology, CaloTopologyRecordtopoHandle
 
edm::ESGetToken< CaloTopology, CaloTopologyRecordtopoHandleEndLumi
 
edm::ESGetToken< EcalTrigTowerConstituentsMap, IdealGeometryRecordttMapHandle
 
edm::ESGetToken< EcalTrigTowerConstituentsMap, IdealGeometryRecordttMapHandleEndLumi
 

Protected Types

typedef dqm::legacy::DQMStore DQMStore
 
typedef dqm::legacy::MonitorElement MonitorElement
 

Protected Member Functions

void initialize (std::string const &_name, edm::ParameterSet const &)
 
void print_ (std::string const &, int=0) const
 
virtual void setME (edm::ParameterSet const &)
 
virtual void setParams (edm::ParameterSet const &)
 
virtual void setSource (edm::ParameterSet const &)
 
void setVerbosity (int _verbosity)
 

Protected Attributes

bool booked_
 
MESetCollection MEs_
 
std::string name_
 
bool onlineMode_
 
Timestamp timestamp_
 
int verbosity_
 
bool willConvertToEDM_
 

Private Attributes

EcalDQMSetupObjects edso_
 

Friends

class WorkerFactoryStore
 

Detailed Description

Definition at line 41 of file DQWorker.h.

Member Typedef Documentation

◆ DQMStore

Definition at line 54 of file DQWorker.h.

◆ MonitorElement

Definition at line 55 of file DQWorker.h.

Constructor & Destructor Documentation

◆ DQWorker()

ecaldqm::DQWorker::DQWorker ( )

Definition at line 24 of file DQWorker.cc.

25  : name_(""),
26  MEs_(),
27  booked_(false),
28  timestamp_(),
29  verbosity_(0),
30  onlineMode_(false),
31  willConvertToEDM_(true),
32  edso_() {}
bool willConvertToEDM_
Definition: DQWorker.h:139
EcalDQMSetupObjects edso_
Definition: DQWorker.h:142
Timestamp timestamp_
Definition: DQWorker.h:134
MESetCollection MEs_
Definition: DQWorker.h:131
std::string name_
Definition: DQWorker.h:130

◆ ~DQWorker()

ecaldqm::DQWorker::~DQWorker ( )
virtualnoexcept

Definition at line 34 of file DQWorker.cc.

34 {}

Member Function Documentation

◆ beginLuminosityBlock()

virtual void ecaldqm::DQWorker::beginLuminosityBlock ( edm::LuminosityBlock const &  ,
edm::EventSetup const &   
)
inlinevirtual

Reimplemented in ecaldqm::LaserTask, and ecaldqm::LedTask.

Definition at line 74 of file DQWorker.h.

Referenced by ecaldqm::EcalDQMonitor::ecaldqmBeginLuminosityBlock().

74 {}

◆ beginRun()

virtual void ecaldqm::DQWorker::beginRun ( edm::Run const &  ,
edm::EventSetup const &   
)
inlinevirtual

◆ bookMEs()

void ecaldqm::DQWorker::bookMEs ( DQMStore::IBooker _booker)
virtual

Reimplemented in ecaldqm::DQWorkerClient.

Definition at line 96 of file DQWorker.cc.

References ecaldqm::MESetCollection::begin(), booked_, ecaldqm::MESetCollection::end(), GetElectronicsMap(), and MEs_.

Referenced by EcalDQMonitorTask::bookHistograms(), ecaldqm::DQWorkerClient::bookMEs(), and EcalDQMonitorClient::dqmEndJob().

96  {
97  if (booked_)
98  return;
99  for (MESetCollection::iterator mItr(MEs_.begin()); mItr != MEs_.end(); ++mItr)
100  mItr->second->book(_booker, GetElectronicsMap());
101  booked_ = true;
102  }
auto end() const
Definition: MESet.h:393
MESetColletionType::iterator iterator
Definition: MESet.h:384
EcalElectronicsMapping const * GetElectronicsMap()
Definition: DQWorker.cc:150
MESetCollection MEs_
Definition: DQWorker.h:131

◆ checkElectronicsMap()

bool ecaldqm::DQWorker::checkElectronicsMap ( bool  doThrow = true)

Definition at line 118 of file DQWorker.cc.

References edso_, ecaldqm::EcalDQMSetupObjects::electronicsMap, and Exception.

Referenced by EcalDQMonitorClient::dqmEndJob(), getEcalDQMSetupObjects(), GetElectronicsMap(), and EcalDQMonitorClient::runWorkers().

118  {
119  if (edso_.electronicsMap)
120  return true;
121  if (doThrow)
122  throw cms::Exception("InvalidCall") << "Electronics Mapping not initialized";
123  return false;
124  }
EcalDQMSetupObjects edso_
Definition: DQWorker.h:142
EcalElectronicsMapping const * electronicsMap
Definition: MESet.h:34

◆ checkGeometry()

bool ecaldqm::DQWorker::checkGeometry ( bool  doThrow = true)

Definition at line 134 of file DQWorker.cc.

References edso_, Exception, and ecaldqm::EcalDQMSetupObjects::geometry.

Referenced by getEcalDQMSetupObjects(), and GetGeometry().

134  {
135  if (edso_.geometry)
136  return true;
137  if (doThrow)
138  throw cms::Exception("InvalidCall") << "CaloGeometry not initialized";
139  return false;
140  }
EcalDQMSetupObjects edso_
Definition: DQWorker.h:142
CaloGeometry const * geometry
Definition: MESet.h:36

◆ checkTopology()

bool ecaldqm::DQWorker::checkTopology ( bool  doThrow = true)

Definition at line 142 of file DQWorker.cc.

References edso_, Exception, and ecaldqm::EcalDQMSetupObjects::topology.

Referenced by getEcalDQMSetupObjects(), and GetTopology().

142  {
143  if (edso_.topology)
144  return true;
145  if (doThrow)
146  throw cms::Exception("InvalidCall") << "CaloTopology not initialized";
147  return false;
148  }
EcalDQMSetupObjects edso_
Definition: DQWorker.h:142
CaloTopology const * topology
Definition: MESet.h:37

◆ checkTrigTowerMap()

bool ecaldqm::DQWorker::checkTrigTowerMap ( bool  doThrow = true)

Definition at line 126 of file DQWorker.cc.

References edso_, Exception, and ecaldqm::EcalDQMSetupObjects::trigtowerMap.

Referenced by getEcalDQMSetupObjects(), and GetTrigTowerMap().

126  {
127  if (edso_.trigtowerMap)
128  return true;
129  if (doThrow)
130  throw cms::Exception("InvalidCall") << "TrigTowerConstituentsMap not initialized";
131  return false;
132  }
EcalDQMSetupObjects edso_
Definition: DQWorker.h:142
EcalTrigTowerConstituentsMap const * trigtowerMap
Definition: MESet.h:35

◆ endLuminosityBlock()

virtual void ecaldqm::DQWorker::endLuminosityBlock ( edm::LuminosityBlock const &  ,
edm::EventSetup const &   
)
inlinevirtual

◆ endRun()

virtual void ecaldqm::DQWorker::endRun ( edm::Run const &  ,
edm::EventSetup const &   
)
inlinevirtual

Definition at line 72 of file DQWorker.h.

Referenced by ecaldqm::EcalDQMonitor::ecaldqmEndRun().

72 {}

◆ fillDescriptions()

void ecaldqm::DQWorker::fillDescriptions ( edm::ParameterSetDescription _desc)
static

Definition at line 37 of file DQWorker.cc.

References edm::ParameterSetDescription::addUntracked(), ecaldqm::fillMESetDescriptions(), edm::RequireZeroOrMore, and EcalCalibMonitorClient_cfi::workerParameters.

Referenced by EcalMEFormatter::fillDescriptions(), ecaldqm::DQWorkerClient::fillDescriptions(), and ecaldqm::DQWorkerTask::fillDescriptions().

37  {
38  _desc.addUntracked<bool>("onlineMode", false);
39  _desc.addUntracked<bool>("willConvertToEDM", true);
40 
41  edm::ParameterSetDescription meParameters;
42  edm::ParameterSetDescription meNodeParameters;
43  fillMESetDescriptions(meNodeParameters);
44  meParameters.addNode(
46  _desc.addUntracked("MEs", meParameters);
47 
49  workerParameters.setUnknown();
50  _desc.addUntracked("params", workerParameters);
51  }
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
void fillMESetDescriptions(edm::ParameterSetDescription &)
Definition: MESetUtils.cc:144

◆ getEcalDQMSetupObjects()

EcalDQMSetupObjects const ecaldqm::DQWorker::getEcalDQMSetupObjects ( )

Definition at line 170 of file DQWorker.cc.

References checkElectronicsMap(), checkGeometry(), checkTopology(), checkTrigTowerMap(), and edso_.

Referenced by ecaldqm::PresampleTask::beginEvent(), ecaldqm::OccupancyTask::beginEvent(), ecaldqm::TrigPrimTask::beginEvent(), ecaldqm::ClusterTask::beginEvent(), ecaldqm::OccupancyTask::endLuminosityBlock(), ecaldqm::TestPulseClient::producePlots(), ecaldqm::TrigPrimClient::producePlots(), ecaldqm::PedestalClient::producePlots(), ecaldqm::PresampleClient::producePlots(), ecaldqm::PNIntegrityClient::producePlots(), ecaldqm::LaserClient::producePlots(), ecaldqm::LedClient::producePlots(), ecaldqm::CalibrationSummaryClient::producePlots(), ecaldqm::TimingClient::producePlots(), ecaldqm::OccupancyClient::producePlots(), ecaldqm::CertificationClient::producePlots(), ecaldqm::RawDataClient::producePlots(), ecaldqm::SelectiveReadoutClient::producePlots(), ecaldqm::SummaryClient::producePlots(), ecaldqm::IntegrityClient::producePlots(), ecaldqm::MLClient::producePlots(), ecaldqm::TowerStatusTask::producePlotsTask_(), ecaldqm::SummaryClient::resetMEs(), ecaldqm::IntegrityWriter::run(), ecaldqm::LaserWriter::run(), ecaldqm::PedestalWriter::run(), ecaldqm::TestPulseWriter::run(), ecaldqm::RecoSummaryTask::runOnBasicClusters(), ecaldqm::ClusterTask::runOnBasicClusters(), ecaldqm::GpuTask::runOnCpuDigis(), ecaldqm::GpuTask::runOnCpuRecHits(), ecaldqm::GpuTask::runOnCpuUncalibRecHits(), ecaldqm::IntegrityTask::runOnDetIdCollection(), ecaldqm::PedestalTask::runOnDigis(), ecaldqm::PresampleTask::runOnDigis(), ecaldqm::TestPulseTask::runOnDigis(), ecaldqm::LedTask::runOnDigis(), ecaldqm::OccupancyTask::runOnDigis(), ecaldqm::LaserTask::runOnDigis(), ecaldqm::SelectiveReadoutTask::runOnDigis(), ecaldqm::PiZeroTask::runOnEBRecHits(), ecaldqm::IntegrityTask::runOnElectronicsIdCollection(), ecaldqm::TrigPrimTask::runOnEmulTPs(), ecaldqm::PNDiodeTask::runOnErrors(), ecaldqm::GpuTask::runOnGpuDigis(), ecaldqm::GpuTask::runOnGpuRecHits(), ecaldqm::GpuTask::runOnGpuUncalibRecHits(), ecaldqm::PedestalTask::runOnPnDigis(), ecaldqm::PNDiodeTask::runOnPnDigis(), ecaldqm::TestPulseTask::runOnPnDigis(), ecaldqm::LedTask::runOnPnDigis(), ecaldqm::LaserTask::runOnPnDigis(), ecaldqm::RawDataTask::runOnRawData(), ecaldqm::OccupancyTask::runOnRawData(), ecaldqm::LedTask::runOnRawData(), ecaldqm::LaserTask::runOnRawData(), ecaldqm::TrigPrimTask::runOnRealTPs(), ecaldqm::TimingTask::runOnRecHits(), ecaldqm::EnergyTask::runOnRecHits(), ecaldqm::RecoSummaryTask::runOnRecHits(), ecaldqm::OccupancyTask::runOnRecHits(), ecaldqm::RecoSummaryTask::runOnReducedRecHits(), ecaldqm::RawDataTask::runOnSource(), ecaldqm::SelectiveReadoutTask::runOnSource(), ecaldqm::SelectiveReadoutTask::runOnSrFlags(), ecaldqm::ClusterTask::runOnSuperClusters(), ecaldqm::OccupancyTask::runOnTPDigis(), ecaldqm::TimingTask::runOnUncalibRecHits(), ecaldqm::TestPulseTask::runOnUncalibRecHits(), ecaldqm::LedTask::runOnUncalibRecHits(), ecaldqm::LaserTask::runOnUncalibRecHits(), and ecaldqm::DQWorkerClient::towerAverage_().

170  {
173  checkGeometry();
174  checkTopology();
175  return edso_;
176  }
bool checkElectronicsMap(bool=true)
Definition: DQWorker.cc:118
EcalDQMSetupObjects edso_
Definition: DQWorker.h:142
bool checkGeometry(bool=true)
Definition: DQWorker.cc:134
bool checkTrigTowerMap(bool=true)
Definition: DQWorker.cc:126
bool checkTopology(bool=true)
Definition: DQWorker.cc:142

◆ GetElectronicsMap()

EcalElectronicsMapping const * ecaldqm::DQWorker::GetElectronicsMap ( )

Definition at line 150 of file DQWorker.cc.

References checkElectronicsMap(), edso_, and ecaldqm::EcalDQMSetupObjects::electronicsMap.

Referenced by ecaldqm::EnergyTask::beginEvent(), ecaldqm::IntegrityTask::beginEvent(), ecaldqm::RawDataTask::beginEvent(), ecaldqm::PresampleTask::beginEvent(), ecaldqm::TimingTask::beginEvent(), ecaldqm::OccupancyTask::beginEvent(), ecaldqm::TrigPrimTask::beginEvent(), bookMEs(), ecaldqm::TowerStatusTask::endLuminosityBlock(), EcalMEFormatter::format_(), ecaldqm::LaserClient::producePlots(), ecaldqm::LedClient::producePlots(), ecaldqm::TestPulseClient::producePlots(), ecaldqm::TrigPrimClient::producePlots(), ecaldqm::PedestalClient::producePlots(), ecaldqm::PresampleClient::producePlots(), ecaldqm::TimingClient::producePlots(), ecaldqm::OccupancyClient::producePlots(), ecaldqm::CalibrationSummaryClient::producePlots(), ecaldqm::RawDataClient::producePlots(), ecaldqm::SelectiveReadoutClient::producePlots(), ecaldqm::SummaryClient::producePlots(), ecaldqm::MLClient::producePlots(), ecaldqm::IntegrityClient::producePlots(), ecaldqm::TowerStatusTask::producePlotsTask_(), ecaldqm::SummaryClient::resetMEs(), ecaldqm::DQWorkerClient::resetMEs(), ecaldqm::DBWriterWorker::retrieveSource(), ecaldqm::DQWorkerClient::retrieveSource(), ecaldqm::IntegrityWriter::run(), ecaldqm::LaserWriter::run(), ecaldqm::PedestalWriter::run(), ecaldqm::PresampleWriter::run(), ecaldqm::TestPulseWriter::run(), ecaldqm::TimingWriter::run(), ecaldqm::LedWriter::run(), ecaldqm::OccupancyWriter::run(), ecaldqm::IntegrityTask::runOnDetIdCollection(), ecaldqm::PedestalTask::runOnDigis(), ecaldqm::TestPulseTask::runOnDigis(), ecaldqm::LedTask::runOnDigis(), ecaldqm::LaserTask::runOnDigis(), ecaldqm::SelectiveReadoutTask::runOnDigis(), ecaldqm::IntegrityTask::runOnElectronicsIdCollection(), ecaldqm::PNDiodeTask::runOnPnDigis(), ecaldqm::PedestalTask::runOnPnDigis(), ecaldqm::TestPulseTask::runOnPnDigis(), ecaldqm::LedTask::runOnPnDigis(), ecaldqm::LaserTask::runOnPnDigis(), ecaldqm::RawDataTask::runOnRawData(), ecaldqm::TrigPrimTask::runOnRealTPs(), ecaldqm::TestPulseTask::runOnUncalibRecHits(), ecaldqm::LedTask::runOnUncalibRecHits(), ecaldqm::LaserTask::runOnUncalibRecHits(), and ecaldqm::DQWorkerClient::towerAverage_().

150  {
152  return edso_.electronicsMap;
153  }
bool checkElectronicsMap(bool=true)
Definition: DQWorker.cc:118
EcalDQMSetupObjects edso_
Definition: DQWorker.h:142
EcalElectronicsMapping const * electronicsMap
Definition: MESet.h:34

◆ GetGeometry()

CaloGeometry const * ecaldqm::DQWorker::GetGeometry ( )

Definition at line 160 of file DQWorker.cc.

References checkGeometry(), edso_, and ecaldqm::EcalDQMSetupObjects::geometry.

Referenced by ecaldqm::ClusterTask::runOnBasicClusters(), ecaldqm::PiZeroTask::runOnEBRecHits(), and ecaldqm::ClusterTask::runOnSuperClusters().

160  {
161  checkGeometry();
162  return edso_.geometry;
163  }
EcalDQMSetupObjects edso_
Definition: DQWorker.h:142
bool checkGeometry(bool=true)
Definition: DQWorker.cc:134
CaloGeometry const * geometry
Definition: MESet.h:36

◆ getName()

std::string const& ecaldqm::DQWorker::getName ( ) const
inline

◆ GetTopology()

CaloTopology const * ecaldqm::DQWorker::GetTopology ( )

Definition at line 165 of file DQWorker.cc.

References checkTopology(), edso_, and ecaldqm::EcalDQMSetupObjects::topology.

Referenced by ecaldqm::PiZeroTask::runOnEBRecHits(), and ecaldqm::ClusterTask::runOnSuperClusters().

165  {
166  checkTopology();
167  return edso_.topology;
168  }
EcalDQMSetupObjects edso_
Definition: DQWorker.h:142
CaloTopology const * topology
Definition: MESet.h:37
bool checkTopology(bool=true)
Definition: DQWorker.cc:142

◆ GetTrigTowerMap()

EcalTrigTowerConstituentsMap const * ecaldqm::DQWorker::GetTrigTowerMap ( )

◆ initialize()

void ecaldqm::DQWorker::initialize ( std::string const &  _name,
edm::ParameterSet const &  _commonParams 
)
protected

Definition at line 65 of file DQWorker.cc.

References edm::ParameterSet::getUntrackedParameter(), name_, onlineMode_, and willConvertToEDM_.

Referenced by EcalMEFormatter::EcalMEFormatter(), and ecaldqm::WorkerFactoryStore::getWorker().

65  {
66  name_ = _name;
67  onlineMode_ = _commonParams.getUntrackedParameter<bool>("onlineMode");
68  willConvertToEDM_ = _commonParams.getUntrackedParameter<bool>("willConvertToEDM");
69  }
bool willConvertToEDM_
Definition: DQWorker.h:139
std::string name_
Definition: DQWorker.h:130

◆ onlineMode()

bool ecaldqm::DQWorker::onlineMode ( ) const
inline

◆ print_()

void ecaldqm::DQWorker::print_ ( std::string const &  _message,
int  _threshold = 0 
) const
protected

Definition at line 178 of file DQWorker.cc.

References name_, and verbosity_.

178  {
179  if (verbosity_ > _threshold)
180  edm::LogInfo("EcalDQM") << name_ << ": " << _message;
181  }
Log< level::Info, false > LogInfo
std::string name_
Definition: DQWorker.h:130

◆ releaseMEs()

void ecaldqm::DQWorker::releaseMEs ( )
virtual

Reimplemented in ecaldqm::DQWorkerClient.

Definition at line 90 of file DQWorker.cc.

References ecaldqm::MESetCollection::begin(), booked_, ecaldqm::MESetCollection::end(), and MEs_.

Referenced by EcalDQMonitorClient::dqmEndJob(), EcalDQMonitorTask::dqmEndRun(), and ecaldqm::DQWorkerClient::releaseMEs().

90  {
91  for (MESetCollection::iterator mItr(MEs_.begin()); mItr != MEs_.end(); ++mItr)
92  mItr->second->clear();
93  booked_ = false;
94  }
auto end() const
Definition: MESet.h:393
MESetColletionType::iterator iterator
Definition: MESet.h:384
MESetCollection MEs_
Definition: DQWorker.h:131

◆ setEventNumber()

void ecaldqm::DQWorker::setEventNumber ( edm::EventNumber_t  _e)
inline

Definition at line 122 of file DQWorker.h.

References ecaldqm::DQWorker::Timestamp::iEvt, and timestamp_.

Referenced by EcalDQMonitorTask::analyze().

122 { timestamp_.iEvt = _e; }
Timestamp timestamp_
Definition: DQWorker.h:134
edm::EventNumber_t iEvt
Definition: DQWorker.h:49

◆ setLumiNumber()

void ecaldqm::DQWorker::setLumiNumber ( edm::LuminosityBlockNumber_t  _l)
inline

◆ setME()

void ecaldqm::DQWorker::setME ( edm::ParameterSet const &  _meParams)
protectedvirtual

Reimplemented in ecaldqm::DQWorkerTask, and ecaldqm::DQWorkerClient.

Definition at line 71 of file DQWorker.cc.

References ecaldqm::createMESet(), cppFunctionSkipper::exception, edm::ParameterSet::getParameterNames(), edm::ParameterSet::getUntrackedParameterSet(), ecaldqm::MESetCollection::insert(), MEs_, mergeVDriftHistosByStation::name, onlineMode_, submitPVValidationJobs::params, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by EcalMEFormatter::EcalMEFormatter(), ecaldqm::WorkerFactoryStore::getWorker(), ecaldqm::DQWorkerClient::setME(), and ecaldqm::DQWorkerTask::setME().

71  {
72  std::vector<std::string> const &MENames(_meParams.getParameterNames());
73 
74  for (unsigned iME(0); iME != MENames.size(); iME++) {
75  std::string name(MENames[iME]);
76  edm::ParameterSet const &params(_meParams.getUntrackedParameterSet(name));
77 
78  if (!onlineMode_ && params.getUntrackedParameter<bool>("online"))
79  continue;
80 
81  try {
83  } catch (std::exception &) {
84  edm::LogError("EcalDQM") << "Exception caught while constructing MESet " << name;
85  throw;
86  }
87  }
88  }
void insert(const std::string &key, MESet *ptr)
Definition: MESet.h:387
Log< level::Error, false > LogError
MESetCollection MEs_
Definition: DQWorker.h:131
MESet * createMESet(edm::ParameterSet const &)
Definition: MESetUtils.cc:18

◆ setParams()

virtual void ecaldqm::DQWorker::setParams ( edm::ParameterSet const &  )
inlineprotectedvirtual

◆ setRunNumber()

void ecaldqm::DQWorker::setRunNumber ( edm::RunNumber_t  _r)
inline

◆ setSetupObjects()

void ecaldqm::DQWorker::setSetupObjects ( edm::EventSetup const &  _es)

Definition at line 104 of file DQWorker.cc.

References edso_, elecMapHandle, ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::EcalDQMSetupObjects::geometry, geomHandle, edm::EventSetup::getData(), topoHandle, ecaldqm::EcalDQMSetupObjects::topology, ecaldqm::EcalDQMSetupObjects::trigtowerMap, and ttMapHandle.

Referenced by EcalCondDBWriter::beginRun(), EcalDQMonitorClient::beginRun(), and EcalDQMonitorTask::bookHistograms().

104  {
105  edso_.electronicsMap = &_es.getData(elecMapHandle);
106  edso_.trigtowerMap = &_es.getData(ttMapHandle);
107  edso_.geometry = &_es.getData(geomHandle);
108  edso_.topology = &_es.getData(topoHandle);
109  }
EcalDQMSetupObjects edso_
Definition: DQWorker.h:142
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geomHandle
Definition: DQWorker.h:111
EcalElectronicsMapping const * electronicsMap
Definition: MESet.h:34
edm::ESGetToken< EcalElectronicsMapping, EcalMappingRcd > elecMapHandle
Definition: DQWorker.h:109
EcalTrigTowerConstituentsMap const * trigtowerMap
Definition: MESet.h:35
edm::ESGetToken< CaloTopology, CaloTopologyRecord > topoHandle
Definition: DQWorker.h:112
CaloTopology const * topology
Definition: MESet.h:37
CaloGeometry const * geometry
Definition: MESet.h:36
edm::ESGetToken< EcalTrigTowerConstituentsMap, IdealGeometryRecord > ttMapHandle
Definition: DQWorker.h:110

◆ setSetupObjectsEndLumi()

void ecaldqm::DQWorker::setSetupObjectsEndLumi ( edm::EventSetup const &  _es)

Definition at line 111 of file DQWorker.cc.

References edso_, elecMapHandleEndLumi, ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::EcalDQMSetupObjects::geometry, geomHandleEndLumi, edm::EventSetup::getData(), topoHandleEndLumi, ecaldqm::EcalDQMSetupObjects::topology, ecaldqm::EcalDQMSetupObjects::trigtowerMap, and ttMapHandleEndLumi.

Referenced by EcalMEFormatter::dqmEndLuminosityBlock().

111  {
112  edso_.electronicsMap = &_es.getData(elecMapHandleEndLumi);
113  edso_.trigtowerMap = &_es.getData(ttMapHandleEndLumi);
114  edso_.geometry = &_es.getData(geomHandleEndLumi);
115  edso_.topology = &_es.getData(topoHandleEndLumi);
116  }
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geomHandleEndLumi
Definition: DQWorker.h:116
edm::ESGetToken< EcalElectronicsMapping, EcalMappingRcd > elecMapHandleEndLumi
Definition: DQWorker.h:114
EcalDQMSetupObjects edso_
Definition: DQWorker.h:142
EcalElectronicsMapping const * electronicsMap
Definition: MESet.h:34
edm::ESGetToken< EcalTrigTowerConstituentsMap, IdealGeometryRecord > ttMapHandleEndLumi
Definition: DQWorker.h:115
EcalTrigTowerConstituentsMap const * trigtowerMap
Definition: MESet.h:35
CaloTopology const * topology
Definition: MESet.h:37
edm::ESGetToken< CaloTopology, CaloTopologyRecord > topoHandleEndLumi
Definition: DQWorker.h:117
CaloGeometry const * geometry
Definition: MESet.h:36

◆ setSource()

virtual void ecaldqm::DQWorker::setSource ( edm::ParameterSet const &  )
inlineprotectedvirtual

Reimplemented in ecaldqm::DQWorkerClient.

Definition at line 61 of file DQWorker.h.

Referenced by ecaldqm::WorkerFactoryStore::getWorker().

61 {} // for clients

◆ setTime()

void ecaldqm::DQWorker::setTime ( time_t  _t)
inline

◆ setTokens()

void ecaldqm::DQWorker::setTokens ( edm::ConsumesCollector _collector)

Definition at line 53 of file DQWorker.cc.

References edm::BeginRun, elecMapHandle, elecMapHandleEndLumi, edm::EndLuminosityBlock, edm::ConsumesCollector::esConsumes(), geomHandle, geomHandleEndLumi, topoHandle, topoHandleEndLumi, ttMapHandle, and ttMapHandleEndLumi.

Referenced by EcalDQMonitorClient::EcalDQMonitorClient(), EcalDQMonitorTask::EcalDQMonitorTask(), and EcalMEFormatter::EcalMEFormatter().

53  {
58 
63  }
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geomHandleEndLumi
Definition: DQWorker.h:116
edm::ESGetToken< EcalElectronicsMapping, EcalMappingRcd > elecMapHandleEndLumi
Definition: DQWorker.h:114
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geomHandle
Definition: DQWorker.h:111
edm::ESGetToken< EcalElectronicsMapping, EcalMappingRcd > elecMapHandle
Definition: DQWorker.h:109
edm::ESGetToken< EcalTrigTowerConstituentsMap, IdealGeometryRecord > ttMapHandleEndLumi
Definition: DQWorker.h:115
edm::ESGetToken< CaloTopology, CaloTopologyRecord > topoHandle
Definition: DQWorker.h:112
edm::ESGetToken< CaloTopology, CaloTopologyRecord > topoHandleEndLumi
Definition: DQWorker.h:117
edm::ESGetToken< EcalTrigTowerConstituentsMap, IdealGeometryRecord > ttMapHandle
Definition: DQWorker.h:110

◆ setVerbosity()

void ecaldqm::DQWorker::setVerbosity ( int  _verbosity)
inlineprotected

Definition at line 57 of file DQWorker.h.

References verbosity_.

Referenced by ecaldqm::WorkerFactoryStore::getWorker().

57 { verbosity_ = _verbosity; }

Friends And Related Function Documentation

◆ WorkerFactoryStore

friend class WorkerFactoryStore
friend

Definition at line 42 of file DQWorker.h.

Member Data Documentation

◆ booked_

bool ecaldqm::DQWorker::booked_
protected

Definition at line 132 of file DQWorker.h.

Referenced by bookMEs(), and releaseMEs().

◆ edso_

EcalDQMSetupObjects ecaldqm::DQWorker::edso_
private

◆ elecMapHandle

edm::ESGetToken<EcalElectronicsMapping, EcalMappingRcd> ecaldqm::DQWorker::elecMapHandle

Definition at line 109 of file DQWorker.h.

Referenced by setSetupObjects(), and setTokens().

◆ elecMapHandleEndLumi

edm::ESGetToken<EcalElectronicsMapping, EcalMappingRcd> ecaldqm::DQWorker::elecMapHandleEndLumi

Definition at line 114 of file DQWorker.h.

Referenced by setSetupObjectsEndLumi(), and setTokens().

◆ geomHandle

edm::ESGetToken<CaloGeometry, CaloGeometryRecord> ecaldqm::DQWorker::geomHandle

Definition at line 111 of file DQWorker.h.

Referenced by setSetupObjects(), and setTokens().

◆ geomHandleEndLumi

edm::ESGetToken<CaloGeometry, CaloGeometryRecord> ecaldqm::DQWorker::geomHandleEndLumi

Definition at line 116 of file DQWorker.h.

Referenced by setSetupObjectsEndLumi(), and setTokens().

◆ MEs_

MESetCollection ecaldqm::DQWorker::MEs_
protected

Definition at line 131 of file DQWorker.h.

Referenced by ecaldqm::EnergyTask::beginEvent(), ecaldqm::IntegrityTask::beginEvent(), ecaldqm::RawDataTask::beginEvent(), ecaldqm::PresampleTask::beginEvent(), ecaldqm::TimingTask::beginEvent(), ecaldqm::OccupancyTask::beginEvent(), ecaldqm::TrigPrimTask::beginEvent(), ecaldqm::ClusterTask::beginEvent(), bookMEs(), ecaldqm::OccupancyTask::endLuminosityBlock(), EcalMEFormatter::format_(), ecaldqm::PNIntegrityClient::producePlots(), ecaldqm::PedestalClient::producePlots(), ecaldqm::PresampleClient::producePlots(), ecaldqm::LaserClient::producePlots(), ecaldqm::TestPulseClient::producePlots(), ecaldqm::LedClient::producePlots(), ecaldqm::TrigPrimClient::producePlots(), ecaldqm::RawDataClient::producePlots(), ecaldqm::SelectiveReadoutClient::producePlots(), ecaldqm::CalibrationSummaryClient::producePlots(), ecaldqm::CertificationClient::producePlots(), ecaldqm::TimingClient::producePlots(), ecaldqm::OccupancyClient::producePlots(), ecaldqm::SummaryClient::producePlots(), ecaldqm::IntegrityClient::producePlots(), ecaldqm::MLClient::producePlots(), ecaldqm::TowerStatusTask::producePlotsTask_(), releaseMEs(), ecaldqm::SummaryClient::resetMEs(), ecaldqm::DQWorkerClient::resetMEs(), ecaldqm::DQWorkerClient::resetPerLumi(), ecaldqm::RecoSummaryTask::runOnBasicClusters(), ecaldqm::ClusterTask::runOnBasicClusters(), ecaldqm::GpuTask::runOnCpuDigis(), ecaldqm::GpuTask::runOnCpuRecHits(), ecaldqm::GpuTask::runOnCpuUncalibRecHits(), ecaldqm::IntegrityTask::runOnDetIdCollection(), ecaldqm::PedestalTask::runOnDigis(), ecaldqm::PresampleTask::runOnDigis(), ecaldqm::TestPulseTask::runOnDigis(), ecaldqm::LedTask::runOnDigis(), ecaldqm::OccupancyTask::runOnDigis(), ecaldqm::LaserTask::runOnDigis(), ecaldqm::SelectiveReadoutTask::runOnDigis(), ecaldqm::PiZeroTask::runOnEBRecHits(), ecaldqm::IntegrityTask::runOnElectronicsIdCollection(), ecaldqm::TrigPrimTask::runOnEmulTPs(), ecaldqm::PNDiodeTask::runOnErrors(), ecaldqm::GpuTask::runOnGpuDigis(), ecaldqm::GpuTask::runOnGpuRecHits(), ecaldqm::GpuTask::runOnGpuUncalibRecHits(), ecaldqm::PedestalTask::runOnPnDigis(), ecaldqm::PNDiodeTask::runOnPnDigis(), ecaldqm::TestPulseTask::runOnPnDigis(), ecaldqm::LedTask::runOnPnDigis(), ecaldqm::LaserTask::runOnPnDigis(), ecaldqm::RawDataTask::runOnRawData(), ecaldqm::OccupancyTask::runOnRawData(), ecaldqm::LaserTask::runOnRawData(), ecaldqm::LedTask::runOnRawData(), ecaldqm::TrigPrimTask::runOnRealTPs(), ecaldqm::TimingTask::runOnRecHits(), ecaldqm::EnergyTask::runOnRecHits(), ecaldqm::RecoSummaryTask::runOnRecHits(), ecaldqm::OccupancyTask::runOnRecHits(), ecaldqm::RecoSummaryTask::runOnReducedRecHits(), ecaldqm::RawDataTask::runOnSource(), ecaldqm::SelectiveReadoutTask::runOnSource(), ecaldqm::SelectiveReadoutTask::runOnSrFlags(), ecaldqm::ClusterTask::runOnSuperClusters(), ecaldqm::OccupancyTask::runOnTPDigis(), ecaldqm::TimingTask::runOnUncalibRecHits(), ecaldqm::TestPulseTask::runOnUncalibRecHits(), ecaldqm::LedTask::runOnUncalibRecHits(), ecaldqm::LaserTask::runOnUncalibRecHits(), ecaldqm::DQWorkerClient::setME(), setME(), ecaldqm::DQWorkerTask::setME(), ecaldqm::TrigPrimClient::setParams(), ecaldqm::MLClient::setParams(), ecaldqm::TowerStatusTask::setParams(), ecaldqm::PedestalTask::setParams(), ecaldqm::RecoSummaryTask::setParams(), ecaldqm::TestPulseTask::setParams(), ecaldqm::GpuTask::setParams(), ecaldqm::LedTask::setParams(), ecaldqm::OccupancyTask::setParams(), ecaldqm::LaserTask::setParams(), ecaldqm::TrigPrimTask::setParams(), and ecaldqm::ClusterTask::setParams().

◆ name_

std::string ecaldqm::DQWorker::name_
protected

◆ onlineMode_

bool ecaldqm::DQWorker::onlineMode_
protected

◆ timestamp_

Timestamp ecaldqm::DQWorker::timestamp_
protected

◆ topoHandle

edm::ESGetToken<CaloTopology, CaloTopologyRecord> ecaldqm::DQWorker::topoHandle

Definition at line 112 of file DQWorker.h.

Referenced by setSetupObjects(), and setTokens().

◆ topoHandleEndLumi

edm::ESGetToken<CaloTopology, CaloTopologyRecord> ecaldqm::DQWorker::topoHandleEndLumi

Definition at line 117 of file DQWorker.h.

Referenced by setSetupObjectsEndLumi(), and setTokens().

◆ ttMapHandle

Definition at line 110 of file DQWorker.h.

Referenced by setSetupObjects(), and setTokens().

◆ ttMapHandleEndLumi

edm::ESGetToken<EcalTrigTowerConstituentsMap, IdealGeometryRecord> ecaldqm::DQWorker::ttMapHandleEndLumi

Definition at line 115 of file DQWorker.h.

Referenced by setSetupObjectsEndLumi(), and setTokens().

◆ verbosity_

int ecaldqm::DQWorker::verbosity_
protected

◆ willConvertToEDM_

bool ecaldqm::DQWorker::willConvertToEDM_
protected

Definition at line 139 of file DQWorker.h.

Referenced by initialize(), and ecaldqm::DQWorkerTask::setME().