test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 <string>
14 #include <vector>
15 #include <iostream>
16 
17 namespace hcaldqm
18 {
19  // Module Types:
20  // 1) Tasks - process every event
21  // 2) Clients - get loaded into the Harvester and processed sequentially
22  // used only for Online/Offline World Harvesting. Prefer standalone
23  // Harvesters
24  // 3) Harvester - Client Manager - per lumi processing
26  {
27  fTask = 0,
29  fClient = 2,
31  };
32 
34  {
35  fOnline = 0,
36  fOffline = 1,
37  fLocal = 2,
39  };
40 
42  "Online", "Offline", "Local"
43  };
44 
45  class DQModule
46  {
47  public:
49  virtual ~DQModule() noexcept(false) {}
50 
51  protected:
52  // Member variables
53  // @name - module's name
54  // @ptype - Processing Type
55  // @mtype - Module Type
56  // @ctype - Calibration Type of the Module. All we want is 0 or 1
60  int _debug;
61 
65 
66  int _evsTotal;
67  int _evsPerLS;
69  int _maxLS;
71  };
72 }
73 
74 #endif
75 
76 
77 
78 
79 
80 
81 
82 
83 
84 
Definition: Logger.h:6
ProcessingType
Definition: DQModule.h:33
ModuleType _mtype
Definition: DQModule.h:58
#define noexcept
ProcessingType _ptype
Definition: DQModule.h:59
virtual ~DQModule()(false)
Definition: DQModule.h:49
ModuleType
Definition: DQModule.h:25
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
volatile std::atomic< bool > shutdown_flag false
std::string const pTypeNames[nProcessingType]
Definition: DQModule.h:41
DQModule(edm::ParameterSet const &)
Definition: DQModule.cc:6