CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
ecaldqm::DQWorkerTask Class Reference

#include <DQWorkerTask.h>

Inheritance diagram for ecaldqm::DQWorkerTask:
ecaldqm::DQWorker ecaldqm::ClusterTask ecaldqm::EnergyTask ecaldqm::IntegrityTask ecaldqm::LaserTask ecaldqm::LedTask ecaldqm::OccupancyTask ecaldqm::PedestalTask ecaldqm::PNDiodeTask ecaldqm::PresampleTask ecaldqm::RawDataTask ecaldqm::RecoSummaryTask ecaldqm::SelectiveReadoutTask ecaldqm::TestPulseTask ecaldqm::TimingTask ecaldqm::TrigPrimTask

Public Types

typedef EcalDCCHeaderBlock::EcalDCCEventSettings EventSettings
 

Public Member Functions

virtual void addDependencies (DependencySet &)
 
virtual bool analyze (void const *, Collections)
 
virtual void beginEvent (edm::Event const &, edm::EventSetup const &)
 
 DQWorkerTask ()
 
virtual void endEvent (edm::Event const &, edm::EventSetup const &)
 
virtual bool filterRunType (short const *)
 
virtual bool filterTrigger (edm::TriggerResultsByName const &)
 
void recoverStats ()
 
virtual void setTokens (edm::ConsumesCollector &)
 
void softReset ()
 
virtual ~DQWorkerTask ()
 
- Public Member Functions inherited from ecaldqm::DQWorker
virtual void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void beginRun (edm::Run const &, edm::EventSetup const &)
 
virtual void bookMEs (DQMStore::IBooker &)
 
 DQWorker ()
 
virtual void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void endRun (edm::Run const &, edm::EventSetup const &)
 
std::string const & getName () const
 
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 setTime (time_t _t)
 
virtual ~DQWorker ()(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ParameterSetDescription &)
 
- Static Public Member Functions inherited from ecaldqm::DQWorker
static void fillDescriptions (edm::ParameterSetDescription &_desc)
 

Protected Member Functions

void setME (edm::ParameterSet const &) final
 
- Protected Member Functions inherited from ecaldqm::DQWorker
void initialize (std::string const &_name, edm::ParameterSet const &)
 
void print_ (std::string const &, int=0) const
 
virtual void setParams (edm::ParameterSet const &)
 
virtual void setSource (edm::ParameterSet const &)
 
void setVerbosity (int _verbosity)
 

Protected Attributes

std::set< std::string > resettable_
 
- Protected Attributes inherited from ecaldqm::DQWorker
bool booked_
 
MESetCollection MEs_
 
std::string name_
 
bool onlineMode_
 
Timestamp timestamp_
 
int verbosity_
 
bool willConvertToEDM_
 

Detailed Description

Definition at line 74 of file DQWorkerTask.h.

Member Typedef Documentation

Definition at line 76 of file DQWorkerTask.h.

Constructor & Destructor Documentation

ecaldqm::DQWorkerTask::DQWorkerTask ( )

Definition at line 9 of file DQWorkerTask.cc.

9  :
10  DQWorker(),
11  resettable_()
12  {
13  }
std::set< std::string > resettable_
Definition: DQWorkerTask.h:103
virtual ecaldqm::DQWorkerTask::~DQWorkerTask ( )
inlinevirtual

Definition at line 79 of file DQWorkerTask.h.

79 {}

Member Function Documentation

virtual void ecaldqm::DQWorkerTask::addDependencies ( DependencySet )
inlinevirtual
virtual bool ecaldqm::DQWorkerTask::analyze ( void const *  ,
Collections   
)
inlinevirtual
virtual void ecaldqm::DQWorkerTask::beginEvent ( edm::Event const &  ,
edm::EventSetup const &   
)
inlinevirtual
virtual void ecaldqm::DQWorkerTask::endEvent ( edm::Event const &  ,
edm::EventSetup const &   
)
inlinevirtual

Reimplemented in ecaldqm::ClusterTask, and ecaldqm::RecoSummaryTask.

Definition at line 84 of file DQWorkerTask.h.

84 {}
void ecaldqm::DQWorkerTask::fillDescriptions ( edm::ParameterSetDescription _desc)
static

Definition at line 17 of file DQWorkerTask.cc.

References ecaldqm::DQWorker::fillDescriptions().

Referenced by EcalDQMonitorTask::fillDescriptions().

18  {
20  }
static void fillDescriptions(edm::ParameterSetDescription &_desc)
Definition: DQWorker.cc:31
virtual bool ecaldqm::DQWorkerTask::filterRunType ( short const *  )
inlinevirtual
virtual bool ecaldqm::DQWorkerTask::filterTrigger ( edm::TriggerResultsByName const &  )
inlinevirtual

Definition at line 87 of file DQWorkerTask.h.

87 { return true; };
void ecaldqm::DQWorkerTask::recoverStats ( )

Definition at line 49 of file DQWorkerTask.cc.

References ecaldqm::DQWorker::MEs_, dataset::name, resettable_, and AlCaHLTBitMon_QueryRunRegistry::string.

50  {
51  std::for_each(resettable_.begin(), resettable_.end(), [this](std::string const& name){
52  this->MEs_.at(name).recoverStats();
53  });
54  }
MESetCollection MEs_
Definition: DQWorker.h:75
std::set< std::string > resettable_
Definition: DQWorkerTask.h:103
void ecaldqm::DQWorkerTask::setME ( edm::ParameterSet const &  _ps)
finalprotectedvirtual

Reimplemented from ecaldqm::DQWorker.

Definition at line 23 of file DQWorkerTask.cc.

References MonitorElement::DQM_KIND_REAL, ecaldqm::binning::kTrend, ecaldqm::DQWorker::MEs_, resettable_, ecaldqm::DQWorker::setME(), and ecaldqm::DQWorker::willConvertToEDM_.

24  {
25  DQWorker::setME(_ps);
26 
27  for(MESetCollection::iterator mItr(MEs_.begin()); mItr != MEs_.end(); ++mItr){
28  if(willConvertToEDM_) mItr->second->setBatchMode();
29 
30  // TEMPORARY MEASURE - softReset does not accept variable bin size as of September 2012
31  // isVariableBinning is true for 1. MESetEcal or MESetNonObject with any custom binning or 2. MESetTrend
32  // In principle it is sufficient to protect the MESetTrends from being reset
33  if(mItr->second->getBinType() != ecaldqm::binning::kTrend &&
34  !mItr->second->isVariableBinning() &&
35  mItr->second->getKind() != MonitorElement::DQM_KIND_REAL)
36  resettable_.insert(mItr->first);
37  }
38  }
bool willConvertToEDM_
Definition: DQWorker.h:83
virtual void setME(edm::ParameterSet const &)
Definition: DQWorker.cc:56
MESetCollection MEs_
Definition: DQWorker.h:75
std::set< std::string > resettable_
Definition: DQWorkerTask.h:103
virtual void ecaldqm::DQWorkerTask::setTokens ( edm::ConsumesCollector )
inlinevirtual

Reimplemented in ecaldqm::ClusterTask.

Definition at line 91 of file DQWorkerTask.h.

Referenced by EcalDQMonitorTask::EcalDQMonitorTask().

91 {}
void ecaldqm::DQWorkerTask::softReset ( )

Definition at line 41 of file DQWorkerTask.cc.

References ecaldqm::DQWorker::MEs_, dataset::name, resettable_, and AlCaHLTBitMon_QueryRunRegistry::string.

42  {
43  std::for_each(resettable_.begin(), resettable_.end(), [this](std::string const& name){
44  this->MEs_.at(name).softReset();
45  });
46  }
MESetCollection MEs_
Definition: DQWorker.h:75
std::set< std::string > resettable_
Definition: DQWorkerTask.h:103

Member Data Documentation

std::set<std::string> ecaldqm::DQWorkerTask::resettable_
protected

Definition at line 103 of file DQWorkerTask.h.

Referenced by recoverStats(), setME(), and softReset().