Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
DQM
HcalCommon
interface
Axis.h
Go to the documentation of this file.
1
#ifndef Axis_h
2
#define Axis_h
3
4
/*
5
* file: Axis.h
6
* Author Viktor Khristenko
7
*
8
* Description:
9
* Base Axis Class
10
*/
11
12
#include "
DQM/HcalCommon/interface/HcalCommonHeaders.h
"
13
#include "
DQM/HcalCommon/interface/Constants.h
"
14
#include "
DQM/HcalCommon/interface/Utilities.h
"
15
16
#include <string>
17
#include <vector>
18
19
namespace
hcaldqm
20
{
21
using namespace
hcaldqm::constants;
22
class
Container
;
23
class
Container1D
;
24
class
Container2D
;
25
class
ContainerProf1D
;
26
class
ContainerProf2D
;
27
class
ContainerSingle2D
;
28
class
ContainerSingle1D
;
29
class
ContainerSingleProf1D
;
30
namespace
axis
31
{
32
enum
AxisType
33
{
34
fXaxis
= 0,
35
fYaxis
= 1,
36
fZaxis
= 2,
37
nAxisType
= 3
38
};
39
enum
AxisQType
40
{
41
fValue
= 0,
42
fCoordinate
= 1,
43
fFlag
= 2,
44
nAxisQType
= 3
45
};
46
47
/*
48
* Base Class for Axis
49
*/
50
class
Axis
51
{
52
public
:
53
friend
class
hcaldqm::Container
;
54
friend
class
hcaldqm::Container1D
;
55
friend
class
hcaldqm::Container2D
;
56
friend
class
hcaldqm::ContainerProf1D
;
57
friend
class
hcaldqm::ContainerProf2D
;
58
friend
class
hcaldqm::ContainerSingle2D
;
59
friend
class
hcaldqm::ContainerSingle1D
;
60
friend
class
hcaldqm::ContainerSingleProf1D
;
61
62
public
:
63
Axis
();
64
Axis
(
std::string
title
,
AxisType
type
,
AxisQType
qtype,
65
int
n
,
double
min
,
double
max
,
bool
log
=
false
);
66
virtual
~Axis
() {}
67
virtual
Axis
*
makeCopy
()
68
{
return
new
Axis
(_title, _type, _qtype, _nbins,
69
_min, _max, _log);}
70
71
// getters of Value to put
72
virtual
int
get
(
HcalDetId
const
&) {
return
0;}
73
virtual
int
get
(
HcalElectronicsId
const
&) {
return
0;}
74
virtual
int
get
(
HcalTrigTowerDetId
const
&) {
return
0;}
75
virtual
inline
int
get
(
int
x
) {
return
x
;}
76
virtual
inline
double
get
(
double
x
) {
return
x
;}
77
78
// getters of the Bin
79
virtual
int
getBin
(
HcalDetId
const
&) {
return
1;}
80
virtual
int
getBin
(
HcalElectronicsId
const
&) {
return
1;}
81
virtual
int
getBin
(
HcalTrigTowerDetId
const
&) {
return
1;}
82
virtual
int
getBin
(
int
) {
return
1;}
83
84
// load labels
85
virtual
void
loadLabels
(std::vector<std::string>
const
&) {}
86
87
public
:
88
AxisQType
getType
() {
return
_qtype;}
89
void
setLog
(TObject*
o
)
90
{
91
if
(_log)
92
o->SetBit(BIT(
BIT_OFFSET
+_type));
93
}
94
virtual
void
setBitAxisLS
(TObject *
o
)
95
{
96
return
;
97
}
98
virtual
void
setBitAxisFlag
(TObject *
o
)
99
{
100
return
;
101
}
102
protected
:
103
104
// some member variables should be public
105
int
_nbins
;
106
double
_min
;
107
double
_max
;
108
std::string
_title
;
109
std::vector<std::string>
_labels
;
110
111
AxisType
_type
;
112
AxisQType
_qtype
;
113
bool
_log
;
114
};
115
}
116
}
117
118
#endif
indexGen.title
title
Definition:
indexGen.py:48
type
type
Definition:
HCALResponse.h:21
hcaldqm::axis::fXaxis
Definition:
Axis.h:34
hcaldqm::axis::AxisType
AxisType
Definition:
Axis.h:32
hcaldqm::axis::Axis::setBitAxisFlag
virtual void setBitAxisFlag(TObject *o)
Definition:
Axis.h:98
hcaldqm::axis::Axis::_qtype
AxisQType _qtype
Definition:
Axis.h:112
hcaldqm::axis::Axis::getBin
virtual int getBin(HcalTrigTowerDetId const &)
Definition:
Axis.h:81
hcaldqm::ContainerSingleProf1D
Definition:
ContainerSingleProf1D.h:19
hcaldqm::axis::fFlag
Definition:
Axis.h:43
connectstrParser.o
string o
Definition:
connectstrParser.py:70
hcaldqm::Container1D
Definition:
Container1D.h:27
hcaldqm::ContainerProf2D
Definition:
ContainerProf2D.h:21
hcaldqm::axis::Axis::getBin
virtual int getBin(HcalDetId const &)
Definition:
Axis.h:79
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
hcaldqm::axis::Axis::_type
AxisType _type
Definition:
Axis.h:111
hcaldqm::axis::fZaxis
Definition:
Axis.h:36
hcaldqm::axis::Axis
Definition:
Axis.h:50
hcaldqm::ContainerSingle1D
Definition:
ContainerSingle1D.h:21
hcaldqm::axis::fCoordinate
Definition:
Axis.h:42
x
T x() const
Cartesian x coordinate.
Definition:
Basic3DVectorLD.h:127
hcaldqm::axis::Axis::_title
std::string _title
Definition:
Axis.h:108
hcaldqm::axis::Axis::getBin
virtual int getBin(int)
Definition:
Axis.h:82
HcalDetId
Definition:
HcalDetId.h:12
dqm-mbProfile.log
tuple log
Definition:
dqm-mbProfile.py:17
hcaldqm::axis::AxisQType
AxisQType
Definition:
Axis.h:39
hcaldqm::axis::Axis::loadLabels
virtual void loadLabels(std::vector< std::string > const &)
Definition:
Axis.h:85
min
T min(T a, T b)
Definition:
MathUtil.h:58
hcaldqm::axis::fValue
Definition:
Axis.h:41
hcaldqm::axis::Axis::_labels
std::vector< std::string > _labels
Definition:
Axis.h:109
hcaldqm::axis::fYaxis
Definition:
Axis.h:35
hcaldqm::axis::Axis::getType
AxisQType getType()
Definition:
Axis.h:88
hcaldqm::axis::Axis::~Axis
virtual ~Axis()
Definition:
Axis.h:66
hcaldqm::Container
Definition:
Container.h:22
hcaldqm::axis::Axis::_log
bool _log
Definition:
Axis.h:113
hcaldqm::axis::Axis::_nbins
int _nbins
Definition:
Axis.h:105
hcaldqm::axis::nAxisQType
Definition:
Axis.h:44
hcaldqm::ContainerSingle2D
Definition:
ContainerSingle2D.h:21
hcaldqm::axis::Axis::getBin
virtual int getBin(HcalElectronicsId const &)
Definition:
Axis.h:80
hcaldqm::Container2D
Definition:
Container2D.h:20
HcalCommonHeaders.h
hcaldqm::axis::Axis::setLog
void setLog(TObject *o)
Definition:
Axis.h:89
hcaldqm::axis::Axis::setBitAxisLS
virtual void setBitAxisLS(TObject *o)
Definition:
Axis.h:94
gen::n
int n
Definition:
Cascade2Hadronizer.cc:79
bookConverter.max
max
Definition:
bookConverter.py:166
hcaldqm::ContainerProf1D
Definition:
ContainerProf1D.h:21
hcaldqm::constants::BIT_OFFSET
int const BIT_OFFSET
Definition:
Constants.h:180
hcaldqm::axis::Axis::_min
double _min
Definition:
Axis.h:106
HcalTrigTowerDetId
Definition:
HcalTrigTowerDetId.h:14
hcaldqm::axis::Axis::_max
double _max
Definition:
Axis.h:107
hcaldqm::axis::Axis::makeCopy
virtual Axis * makeCopy()
Definition:
Axis.h:67
Utilities.h
HcalElectronicsId
Readout chain identification for Hcal.
Definition:
HcalElectronicsId.h:32
Constants.h
hcaldqm::axis::nAxisType
Definition:
Axis.h:37
Generated for CMSSW Reference Manual by
1.8.5