CMS 3D CMS Logo

DQModule.cc
Go to the documentation of this file.
1 
3 
4 namespace hcaldqm
5 {
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 
T getUntrackedParameter(std::string const &, T const &) const
ModuleType _mtype
Definition: DQModule.h:58
void debug(STDTYPE const &msg) const
Definition: Logger.h:31
ProcessingType _ptype
Definition: DQModule.h:59
void set(std::string const &name, int debug=0)
Definition: Logger.h:41
Logger _logger
Definition: DQModule.h:70
std::string _name
Definition: DQModule.h:57
std::string _subsystem
Definition: DQModule.h:64
std::string _runkeyName
Definition: DQModule.h:63
DQModule(edm::ParameterSet const &)
Definition: DQModule.cc:6