CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes
hcaldqm::DQModule Class Reference

#include <DQModule.h>

Inheritance diagram for hcaldqm::DQModule:
hcaldqm::DQClient hcaldqm::DQHarvester hcaldqm::DQTask hcaldqm::DigiRunSummary hcaldqm::PedestalRunSummary hcaldqm::RawRunSummary hcaldqm::RecoRunSummary hcaldqm::TPRunSummary HcalOfflineHarvesting HcalOnlineHarvesting DigiTask HFRaddamTask LaserTask LEDTask NoCQTask PedestalTask QIE10Task QIE11Task RawTask RecHitTask TPTask UMNioTask

Public Member Functions

 DQModule (edm::ParameterSet const &)
 
virtual ~DQModule () noexcept(false)
 

Static Public Member Functions

static void fillPSetDescription (edm::ParameterSetDescription &desc)
 

Protected Attributes

int _currentLS
 
int _debug
 
int _evsPerLS
 
int _evsTotal
 
Logger _logger
 
int _maxLS
 
ModuleType _mtype
 
std::string _name
 
ProcessingType _ptype
 
std::string _runkeyName
 
int _runkeyVal
 
std::string _subsystem
 

Detailed Description

Definition at line 30 of file DQModule.h.

Constructor & Destructor Documentation

hcaldqm::DQModule::DQModule ( edm::ParameterSet const &  ps)

Definition at line 5 of file DQModule.cc.

References _debug, _logger, _maxLS, _mtype, _name, _ptype, _runkeyName, _runkeyVal, _subsystem, Logger::debug(), hcaldqm::fClient, hcaldqm::fLocal, hcaldqm::fOffline, hcaldqm::fOnline, hcaldqm::fTask, edm::ParameterSet::getUntrackedParameter(), Logger::set(), and AlCaHLTBitMon_QueryRunRegistry::string.

5  : _evsTotal(0), _evsPerLS(0) {
6  _name = ps.getUntrackedParameter<std::string>("name", "Unknown_Module");
7  _debug = ps.getUntrackedParameter<int>("debug", 0);
8  _logger.set(_name, _debug);
9  _runkeyVal = ps.getUntrackedParameter<int>("runkeyVal", 0);
10  _runkeyName = ps.getUntrackedParameter<std::string>("runkeyName", "pp_run");
11  _subsystem = ps.getUntrackedParameter<std::string>("subsystem", "Hcal");
12 
13  bool mtype = ps.getUntrackedParameter<bool>("mtype", true);
14  int ptype = ps.getUntrackedParameter<int>("ptype", 0);
15  _maxLS = ps.getUntrackedParameter<int>("maxLS", 4000);
16  if (mtype == true)
17  _mtype = fTask;
18  else
19  _mtype = fClient;
20  if (ptype == 0)
21  _ptype = fOnline;
22  else if (ptype == 1)
23  _ptype = fOffline;
24  else
25  _ptype = fLocal;
26 
27  _logger.debug("Calling Constructor");
28  }
ModuleType _mtype
Definition: DQModule.h:43
void debug(STDTYPE const &msg) const
Definition: Logger.h:20
ProcessingType _ptype
Definition: DQModule.h:44
void set(std::string const &name, int debug=0)
Definition: Logger.h:29
Logger _logger
Definition: DQModule.h:55
std::string _name
Definition: DQModule.h:42
std::string _subsystem
Definition: DQModule.h:49
std::string _runkeyName
Definition: DQModule.h:48
virtual hcaldqm::DQModule::~DQModule ( )
inlinevirtualnoexcept

Definition at line 33 of file DQModule.h.

33 {}

Member Function Documentation

void hcaldqm::DQModule::fillPSetDescription ( edm::ParameterSetDescription desc)
static

Definition at line 30 of file DQModule.cc.

References edm::ParameterSetDescription::addUntracked(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by hcaldqm::DQTask::fillPSetDescription().

30  {
31  desc.addUntracked<std::string>("subsystem", "Hcal");
32  desc.addUntracked("mtype", true);
33  desc.addUntracked<int>("ptype", 0);
34  desc.addUntracked<int>("maxLS", 4000);
35  }
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)

Member Data Documentation

int hcaldqm::DQModule::_currentLS
protected
int hcaldqm::DQModule::_debug
protected
int hcaldqm::DQModule::_evsPerLS
protected
int hcaldqm::DQModule::_evsTotal
protected

Definition at line 51 of file DQModule.h.

Referenced by LEDTask::_process(), and hcaldqm::DQTask::analyze().

Logger hcaldqm::DQModule::_logger
protected
int hcaldqm::DQModule::_maxLS
protected
ModuleType hcaldqm::DQModule::_mtype
protected

Definition at line 43 of file DQModule.h.

Referenced by DQModule().

std::string hcaldqm::DQModule::_name
protected

Definition at line 42 of file DQModule.h.

Referenced by plotting.Subtract::__str__(), plotting.Transform::__str__(), plotting.FakeDuplicate::__str__(), plotting.CutEfficiency::__str__(), plotting.AggregateBins::__str__(), plotting.AggregateHistos::__str__(), plotting.ROC::__str__(), trackingPlots.TimePerEventPlot::__str__(), trackingPlots.TimePerTrackPlot::__str__(), SequenceTypes.SequencePlaceholder::_clonesequence(), trackingPlots.TimePerEventPlot::_create(), HcalOfflineHarvesting::_dqmEndJob(), plotting.PlotGroup::_drawSeparate(), plotting.PlotGroup::_save(), hcaldqm::DQTask::analyze(), hcaldqm::RawRunSummary::beginRun(), hcaldqm::DigiRunSummary::beginRun(), NoCQTask::bookHistograms(), HFRaddamTask::bookHistograms(), PedestalTask::bookHistograms(), LEDTask::bookHistograms(), QIE10Task::bookHistograms(), TPTask::bookHistograms(), QIE11Task::bookHistograms(), UMNioTask::bookHistograms(), LaserTask::bookHistograms(), RawTask::bookHistograms(), RecHitTask::bookHistograms(), DigiTask::bookHistograms(), SequenceTypes.SequencePlaceholder::copy(), SequenceTypes.TaskPlaceholder::copy(), plotting.Subtract::create(), plotting.Transform::create(), plotting.FakeDuplicate::create(), plotting.CutEfficiency::create(), plotting.AggregateBins::create(), plotting.AggregateHistos::create(), trackingPlots.TimePerTrackPlot::create(), plotting.Plot::create(), hcaldqm::DQClient::DQClient(), DQModule(), plotting.PlotGroup::draw(), SequenceTypes.SequencePlaceholder::dumpPython(), SequenceTypes.TaskPlaceholder::dumpPython(), SequenceTypes.SequencePlaceholder::dumpSequenceConfig(), SequenceTypes.SequencePlaceholder::dumpSequencePython(), SequenceTypes.TaskPlaceholder::dumpSequencePython(), hcaldqm::RawRunSummary::endJob(), hcaldqm::RecoRunSummary::endJob(), hcaldqm::TPRunSummary::endJob(), hcaldqm::DigiRunSummary::endJob(), plotting.Plot::getName(), plotting.PlotGroup::getName(), plotting.PlotterFolder::getName(), plotting.PlotterItem::getName(), plotting.PlotterFolder::getSelectionNameIterator(), SequenceTypes.SequencePlaceholder::insertInto(), SequenceTypes.TaskPlaceholder::insertInto(), validation.SimpleSample::name(), trackingPlots.Iteration::name(), plotting.PlotterItem::readDirs(), plotting.PlotGroup::remove(), SequenceTypes.SequencePlaceholder::resolve(), SequenceTypes.TaskPlaceholder::resolve(), and plotting.Plot::setName().

ProcessingType hcaldqm::DQModule::_ptype
protected

Definition at line 44 of file DQModule.h.

Referenced by HcalOnlineHarvesting::_dqmEndLuminosityBlock(), PedestalTask::_dump(), LEDTask::_dump(), LaserTask::_dump(), HFRaddamTask::_isApplicable(), QIE11Task::_isApplicable(), PedestalTask::_isApplicable(), LEDTask::_isApplicable(), LaserTask::_isApplicable(), QIE11Task::_process(), TPTask::_process(), RawTask::_process(), RecHitTask::_process(), LEDTask::_process(), DigiTask::_process(), LaserTask::_process(), DigiTask::_resetMonitors(), hcaldqm::RawRunSummary::beginRun(), hcaldqm::DigiRunSummary::beginRun(), hcaldqm::DQHarvester::beginRun(), hcaldqm::DQClient::beginRun(), PedestalTask::bookHistograms(), TPTask::bookHistograms(), LEDTask::bookHistograms(), QIE10Task::bookHistograms(), QIE11Task::bookHistograms(), UMNioTask::bookHistograms(), RawTask::bookHistograms(), LaserTask::bookHistograms(), RecHitTask::bookHistograms(), DigiTask::bookHistograms(), hcaldqm::DQTask::bookHistograms(), LEDTask::dqmEndRun(), UMNioTask::dqmEndRun(), LaserTask::dqmEndRun(), PedestalTask::dqmEndRun(), DQModule(), hcaldqm::RecoRunSummary::endJob(), hcaldqm::RawRunSummary::endJob(), hcaldqm::DigiRunSummary::endJob(), hcaldqm::RawRunSummary::endLuminosityBlock(), hcaldqm::DigiRunSummary::endLuminosityBlock(), PedestalTask::globalEndLuminosityBlock(), TPTask::globalEndLuminosityBlock(), RawTask::globalEndLuminosityBlock(), RecHitTask::globalEndLuminosityBlock(), DigiTask::globalEndLuminosityBlock(), LaserTask::globalEndLuminosityBlock(), and TPTask::TPTask().

std::string hcaldqm::DQModule::_runkeyName
protected

Definition at line 48 of file DQModule.h.

Referenced by hcaldqm::DQTask::bookHistograms(), and DQModule().

int hcaldqm::DQModule::_runkeyVal
protected
std::string hcaldqm::DQModule::_subsystem
protected