CMS 3D CMS Logo

DQModule.h
Go to the documentation of this file.
1 #ifndef DQModule_h
2 #define DQModule_h
3 
4 /*
5  * file: DQModule.h
6  * Author: Viktor Khristenko
7  * date: 13.10.2015
8  */
9 
12 
13 #include <iostream>
14 #include <string>
15 #include <vector>
16 
17 namespace hcaldqm {
18  // Module Types:
19  // 1) Tasks - process every event
20  // 2) Clients - get loaded into the Harvester and processed sequentially
21  // used only for Online/Offline World Harvesting. Prefer standalone
22  // Harvesters
23  // 3) Harvester - Client Manager - per lumi processing
24  enum ModuleType { fTask = 0, fHarvester = 1, fClient = 2, nModuleType = 3 };
25 
26  enum ProcessingType { fOnline = 0, fOffline = 1, fLocal = 2, nProcessingType = 3 };
27 
28  std::string const pTypeNames[nProcessingType] = {"Online", "Offline", "Local"};
29 
30  class DQModule {
31  public:
33  virtual ~DQModule() noexcept(false) {}
35 
36  protected:
37  // Member variables
38  // @name - module's name
39  // @ptype - Processing Type
40  // @mtype - Module Type
41  // @ctype - Calibration Type of the Module. All we want is 0 or 1
45  int _debug;
46 
50 
51  int _evsTotal;
52  int _evsPerLS;
54  int _maxLS;
56  };
57 } // namespace hcaldqm
58 
59 #endif
hcaldqm::fHarvester
Definition: DQModule.h:24
hcaldqm::fTask
Definition: DQModule.h:24
hcaldqm::DQModule
Definition: DQModule.h:30
funct::false
false
Definition: Factorize.h:29
hcaldqm
Definition: Constants.h:8
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
hcaldqm::DQModule::_evsTotal
int _evsTotal
Definition: DQModule.h:51
hcaldqm::fLocal
Definition: DQModule.h:26
hcaldqm::DQModule::_runkeyVal
int _runkeyVal
Definition: DQModule.h:47
hcaldqm::DQModule::_ptype
ProcessingType _ptype
Definition: DQModule.h:44
hcaldqm::ProcessingType
ProcessingType
Definition: DQModule.h:26
hcaldqm::DQModule::_mtype
ModuleType _mtype
Definition: DQModule.h:43
HcalCommonHeaders.h
hcaldqm::nModuleType
Definition: DQModule.h:24
hcaldqm::DQModule::_currentLS
int _currentLS
Definition: DQModule.h:53
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::pTypeNames
const std::string pTypeNames[nProcessingType]
Definition: DQModule.h:28
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
hcaldqm::nProcessingType
Definition: DQModule.h:26
hcaldqm::ModuleType
ModuleType
Definition: DQModule.h:24
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
hcaldqm::DQModule::~DQModule
virtual ~DQModule() noexcept(false)
Definition: DQModule.h:33
Logger
Definition: Logger.h:6
hcaldqm::fOnline
Definition: DQModule.h:26
Logger.h
hcaldqm::fOffline
Definition: DQModule.h:26
hcaldqm::DQModule::_evsPerLS
int _evsPerLS
Definition: DQModule.h:52