CMS 3D CMS Logo

DQModule.cc
Go to the documentation of this file.
1 
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);
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 
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
ModuleType _mtype
Definition: DQModule.h:43
T getUntrackedParameter(std::string const &, T const &) const
ProcessingType _ptype
Definition: DQModule.h:44
void set(std::string const &name, int debug=0)
Definition: Logger.h:29
static void fillPSetDescription(edm::ParameterSetDescription &desc)
Definition: DQModule.cc:30
void debug(STDTYPE const &msg) const
Definition: Logger.h:20
Logger _logger
Definition: DQModule.h:55
std::string _name
Definition: DQModule.h:42
std::string _subsystem
Definition: DQModule.h:49
std::string _runkeyName
Definition: DQModule.h:48
DQModule(edm::ParameterSet const &)
Definition: DQModule.cc:5