1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#ifndef Container_h
#define Container_h
/*
* file: Container.h
* Author: Viktor Khristenko
*
* Description:
* Container Base class
*
*
*/
#include "DQM/HcalCommon/interface/HcalCommonHeaders.h"
#include "DQM/HcalCommon/interface/Logger.h"
#include <string>
#include <vector>
namespace hcaldqm {
class Container {
public:
typedef dqm::legacy::DQMStore DQMStore;
typedef dqm::legacy::MonitorElement MonitorElement;
Container() : _folder("HcalInfo"), _qname("SomeQuantity") {}
Container(std::string const &folder, std::string const &qname) : _folder(folder), _qname(qname) {}
virtual ~Container() {}
virtual void initialize(std::string const &folder, std::string const &qname, int debug = 0) {
_folder = folder;
_qname = qname;
_logger.set(_qname, debug);
}
protected:
std::string _folder;
std::string _qname;
Logger _logger;
};
} // namespace hcaldqm
#endif
|