Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
DQM
HcalCommon
interface
FlagAxis.h
Go to the documentation of this file.
1
#ifndef FlagAxis_h
2
#define FlagAxis_h
3
4
/*
5
* file: FlagAxis.h
6
* Author: Viktor Khristenko
7
*
8
* Description:
9
* Flag Axis plots only flag variables on the axis.
10
* Have to provide the number of flags only (int)
11
*
12
* The mapping between the actual flags and bins is straghtforward:
13
* flags(0 -> n-1) - axis range
14
* bins (1 -> n)
15
* bin = value+1
16
*
17
* Important to note that there are no predefine flags. All the flags
18
* are defined in specific tasks and all the labels are loaded at the
19
* construction of the Task
20
*/
21
22
#include "
DQM/HcalCommon/interface/Axis.h
"
23
24
namespace
hcaldqm
25
{
26
namespace
axis
27
{
28
using namespace
hcaldqm::constants;
29
class
FlagAxis
:
public
Axis
30
{
31
public
:
32
friend
class
hcaldqm::Container
;
33
friend
class
hcaldqm::Container1D
;
34
friend
class
hcaldqm::Container2D
;
35
friend
class
hcaldqm::ContainerProf1D
;
36
friend
class
hcaldqm::ContainerProf2D
;
37
friend
class
hcaldqm::ContainerSingle1D
;
38
friend
class
hcaldqm::ContainerSingle2D
;
39
friend
class
hcaldqm::ContainerSingleProf1D
;
40
41
public
:
42
FlagAxis
();
43
FlagAxis
(
AxisType
,
std::string
,
int
);
44
virtual
~FlagAxis
() {}
45
virtual
FlagAxis
*
makeCopy
()
46
{
return
new
FlagAxis
(_type, _title, _nbins);}
47
48
virtual
inline
int
getBin
(
int
v
) {
return
v+1;}
49
50
virtual
void
loadLabels(std::vector<std::string>
const
&);
51
virtual
void
setBinAxisFlag
(TObject *
o
)
52
{
53
o->SetBit(BIT(
BIT_OFFSET
+
BIT_AXIS_FLAG
));
54
}
55
56
protected
:
57
virtual
void
_setup();
58
};
59
}
60
}
61
62
#endif
hcaldqm::axis::FlagAxis::setBinAxisFlag
virtual void setBinAxisFlag(TObject *o)
Definition:
FlagAxis.h:51
hcaldqm::axis::FlagAxis::getBin
virtual int getBin(int v)
Definition:
FlagAxis.h:48
hcaldqm::axis::AxisType
AxisType
Definition:
Axis.h:32
hcaldqm::axis::FlagAxis
Definition:
FlagAxis.h:29
hcaldqm::ContainerSingleProf1D
Definition:
ContainerSingleProf1D.h:19
connectstrParser.o
string o
Definition:
connectstrParser.py:70
findQualityFiles.v
v
Definition:
findQualityFiles.py:177
hcaldqm::Container1D
Definition:
Container1D.h:27
hcaldqm::ContainerProf2D
Definition:
ContainerProf2D.h:21
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
hcaldqm::axis::Axis
Definition:
Axis.h:50
hcaldqm::ContainerSingle1D
Definition:
ContainerSingle1D.h:21
hcaldqm::axis::FlagAxis::makeCopy
virtual FlagAxis * makeCopy()
Definition:
FlagAxis.h:45
hcaldqm::axis::FlagAxis::~FlagAxis
virtual ~FlagAxis()
Definition:
FlagAxis.h:44
hcaldqm::constants::BIT_AXIS_FLAG
int const BIT_AXIS_FLAG
Definition:
Constants.h:185
hcaldqm::Container
Definition:
Container.h:22
hcaldqm::ContainerSingle2D
Definition:
ContainerSingle2D.h:21
hcaldqm::Container2D
Definition:
Container2D.h:20
hcaldqm::ContainerProf1D
Definition:
ContainerProf1D.h:21
hcaldqm::constants::BIT_OFFSET
int const BIT_OFFSET
Definition:
Constants.h:180
Axis.h
Generated for CMSSW Reference Manual by
1.8.5