Main Page
Namespaces
Classes
Package Documentation
DQM
HcalCommon
src
DQModule.cc
Go to the documentation of this file.
1
2
#include "
DQM/HcalCommon/interface/DQModule.h
"
3
4
namespace
hcaldqm
{
5
DQModule::DQModule
(
edm::ParameterSet
const
&ps) : _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
}
29
}
// namespace hcaldqm
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
hcaldqm::fClient
Definition:
DQModule.h:24
hcaldqm::DQModule::_mtype
ModuleType _mtype
Definition:
DQModule.h:42
Logger::debug
void debug(STDTYPE const &msg) const
Definition:
Logger.h:20
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
DQModule.h
hcaldqm::DQModule::_runkeyVal
int _runkeyVal
Definition:
DQModule.h:46
hcaldqm::DQModule::_maxLS
int _maxLS
Definition:
DQModule.h:53
hcaldqm::fLocal
Definition:
DQModule.h:26
hcaldqm::DQModule::_ptype
ProcessingType _ptype
Definition:
DQModule.h:43
Logger::set
void set(std::string const &name, int debug=0)
Definition:
Logger.h:29
hcaldqm::DQModule::_logger
Logger _logger
Definition:
DQModule.h:54
hcaldqm::DQModule::_name
std::string _name
Definition:
DQModule.h:41
hcaldqm::DQModule::_debug
int _debug
Definition:
DQModule.h:44
hcaldqm
Definition:
Constants.h:8
hcaldqm::fOffline
Definition:
DQModule.h:26
hcaldqm::fOnline
Definition:
DQModule.h:26
hcaldqm::DQModule::_subsystem
std::string _subsystem
Definition:
DQModule.h:48
hcaldqm::DQModule::_runkeyName
std::string _runkeyName
Definition:
DQModule.h:47
edm::ParameterSet
Definition:
ParameterSet.h:36
hcaldqm::DQModule::DQModule
DQModule(edm::ParameterSet const &)
Definition:
DQModule.cc:5
hcaldqm::fTask
Definition:
DQModule.h:24
Generated for CMSSW Reference Manual by
1.8.11