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
30
void
DQModule::fillPSetDescription
(
edm::ParameterSetDescription
&
desc
) {
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
}
36
}
// namespace hcaldqm
hcaldqm::fTask
Definition:
DQModule.h:24
hcaldqm
Definition:
Constants.h:8
DQModule.h
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:52
hcaldqm::fLocal
Definition:
DQModule.h:26
OfflineHarvestingSequence_cosmic.ptype
ptype
Definition:
OfflineHarvestingSequence_cosmic.py:7
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
hcaldqm::DQModule::_runkeyVal
int _runkeyVal
Definition:
DQModule.h:47
hcaldqm::DQModule::_ptype
ProcessingType _ptype
Definition:
DQModule.h:44
hcaldqm::DQModule::_mtype
ModuleType _mtype
Definition:
DQModule.h:43
hcaldqm::DQModule::_name
std::string _name
Definition:
DQModule.h:42
hcaldqm::DQModule::_runkeyName
std::string _runkeyName
Definition:
DQModule.h:48
edm::ParameterSet
Definition:
ParameterSet.h:47
hcaldqm::fClient
Definition:
DQModule.h:24
hcaldqm::DQModule::_logger
Logger _logger
Definition:
DQModule.h:55
hcaldqm::DQModule::fillPSetDescription
static void fillPSetDescription(edm::ParameterSetDescription &desc)
Definition:
DQModule.cc:30
hcaldqm::DQModule::_debug
int _debug
Definition:
DQModule.h:45
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
hcaldqm::DQModule::_subsystem
std::string _subsystem
Definition:
DQModule.h:49
hcaldqm::DQModule::_maxLS
int _maxLS
Definition:
DQModule.h:54
submitPVResolutionJobs.desc
string desc
Definition:
submitPVResolutionJobs.py:251
hcaldqm::DQModule::DQModule
DQModule(edm::ParameterSet const &)
Definition:
DQModule.cc:5
Logger::set
void set(std::string const &name, int debug=0)
Definition:
Logger.h:29
Logger::debug
void debug(STDTYPE const &msg) const
Definition:
Logger.h:20
hcaldqm::fOnline
Definition:
DQModule.h:26
hcaldqm::fOffline
Definition:
DQModule.h:26
Generated for CMSSW Reference Manual by
1.8.16