CMS 3D CMS Logo

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

#include <DQModule.h>

Inheritance diagram for hcaldqm::DQModule:
hcaldqm::DQClient hcaldqm::DQHarvester hcaldqm::DQTask DigiTask LaserTask LEDTask PedestalTask RadDamTask RawTask RecHitTask TPTask

Public Member Functions

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

Protected Attributes

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

Detailed Description

Definition at line 38 of file DQModule.h.

Constructor & Destructor Documentation

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

Definition at line 6 of file DQModule.cc.

References _debug, _logger, _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.

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

Definition at line 42 of file DQModule.h.

42 {}

Member Data Documentation

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

Definition at line 60 of file DQModule.h.

Referenced by hcaldqm::DQTask::_resetMonitors(), and hcaldqm::DQTask::analyze().

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

Definition at line 51 of file DQModule.h.

Referenced by DQModule().

std::string hcaldqm::DQModule::_name
protected
ProcessingType hcaldqm::DQModule::_ptype
protected
std::string hcaldqm::DQModule::_runkeyName
protected

Definition at line 56 of file DQModule.h.

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

int hcaldqm::DQModule::_runkeyVal
protected

Definition at line 55 of file DQModule.h.

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

std::string hcaldqm::DQModule::_subsystem
protected