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
{
6
DQModule::DQModule
(
edm::ParameterSet
const
& ps):
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
_maxLS
= ps.
getUntrackedParameter
<
int
>(
"maxLS"
, 4000);
20
if
(mtype==
true
)
21
_mtype
=
fTask
;
22
else
23
_mtype
=
fClient
;
24
if
(ptype==0)
25
_ptype
=
fOnline
;
26
else
if
(ptype==1)
27
_ptype
=
fOffline
;
28
else
29
_ptype
=
fLocal
;
30
31
_logger
.
debug
(
"Calling Constructor"
);
32
}
33
}
34
35
36
37
38
39
40
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
hcaldqm::fClient
Definition:
DQModule.h:29
hcaldqm::DQModule::_mtype
ModuleType _mtype
Definition:
DQModule.h:58
Logger::debug
void debug(STDTYPE const &msg) const
Definition:
Logger.h:31
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
DQModule.h
hcaldqm::DQModule::_runkeyVal
int _runkeyVal
Definition:
DQModule.h:62
hcaldqm::DQModule::_maxLS
int _maxLS
Definition:
DQModule.h:69
hcaldqm::fLocal
Definition:
DQModule.h:37
hcaldqm::DQModule::_ptype
ProcessingType _ptype
Definition:
DQModule.h:59
Logger::set
void set(std::string const &name, int debug=0)
Definition:
Logger.h:41
hcaldqm::DQModule::_logger
Logger _logger
Definition:
DQModule.h:70
hcaldqm::DQModule::_name
std::string _name
Definition:
DQModule.h:57
hcaldqm::DQModule::_debug
int _debug
Definition:
DQModule.h:60
hcaldqm
Definition:
Constants.h:8
hcaldqm::fOffline
Definition:
DQModule.h:36
hcaldqm::fOnline
Definition:
DQModule.h:35
hcaldqm::DQModule::_subsystem
std::string _subsystem
Definition:
DQModule.h:64
hcaldqm::DQModule::_runkeyName
std::string _runkeyName
Definition:
DQModule.h:63
edm::ParameterSet
Definition:
ParameterSet.h:36
hcaldqm::DQModule::DQModule
DQModule(edm::ParameterSet const &)
Definition:
DQModule.cc:6
hcaldqm::fTask
Definition:
DQModule.h:27
Generated for CMSSW Reference Manual by
1.8.11