Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
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
}
32
}
33
34
35
36
37
38
39
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
hcaldqm::fClient
Definition:
DQModule.h:22
hcaldqm::DQModule::_mtype
ModuleType _mtype
Definition:
DQModule.h:51
Logger::debug
void debug(STDTYPE const &msg) const
Definition:
Logger.h:31
DQModule.h
hcaldqm::DQModule::_runkeyVal
int _runkeyVal
Definition:
DQModule.h:55
hcaldqm::fLocal
Definition:
DQModule.h:30
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
hcaldqm::DQModule::_ptype
ProcessingType _ptype
Definition:
DQModule.h:52
Logger::set
void set(std::string const &name, int debug=0)
Definition:
Logger.h:41
hcaldqm::DQModule::_logger
Logger _logger
Definition:
DQModule.h:62
hcaldqm::DQModule::_name
std::string _name
Definition:
DQModule.h:50
hcaldqm::DQModule::_debug
int _debug
Definition:
DQModule.h:53
hcaldqm::fOffline
Definition:
DQModule.h:29
hcaldqm::fOnline
Definition:
DQModule.h:28
hcaldqm::DQModule::_subsystem
std::string _subsystem
Definition:
DQModule.h:57
hcaldqm::DQModule::_runkeyName
std::string _runkeyName
Definition:
DQModule.h:56
edm::ParameterSet
Definition:
ParameterSet.h:36
hcaldqm::DQModule::DQModule
DQModule(edm::ParameterSet const &)
Definition:
DQModule.cc:6
hcaldqm::fTask
Definition:
DQModule.h:21
Generated for CMSSW Reference Manual by
1.8.5