ROOT
6.06/09
Reference Guide
ROOT Home Page
Main Page
Related Pages
User's Classes
Namespaces
All Classes
Files
Release Notes
File List
File Members
hist
hist
v7
inc
ROOT
THistDrawOptions.h
Go to the documentation of this file.
1
/// \file ROOT/THistDrawOptions.h
2
/// \ingroup Hist ROOT7
3
/// \author Axel Naumann <axel@cern.ch>
4
/// \date 2015-09-04
5
/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
6
7
/*************************************************************************
8
* Copyright (C) 1995-2015, Rene Brun and Fons Rademakers. *
9
* All rights reserved. *
10
* *
11
* For the licensing terms see $ROOTSYS/LICENSE. *
12
* For the list of contributors see $ROOTSYS/README/CREDITS. *
13
*************************************************************************/
14
15
#ifndef ROOT7_THistDrawOptions
16
#define ROOT7_THistDrawOptions
17
18
namespace
ROOT
{
19
20
namespace
Internal {
21
template
<
int
DIMENSION>
22
struct
THistDrawOptionsEnum
;
23
24
/// Specialization containing 1D hist drawing options.
25
template
<>
26
struct
THistDrawOptionsEnum
<1> {
27
enum
EOpts
{
28
kErrors
,
29
kBar
,
30
kText
31
};
32
};
33
34
35
/// Specialization containing 2D hist drawing options.
36
template
<>
37
struct
THistDrawOptionsEnum
<2> {
38
enum
EOpts
{
39
kBox
,
40
kText
,
41
kLego
42
};
43
};
44
45
/// Specialization containing 3D hist drawing options.
46
template
<>
47
struct
THistDrawOptionsEnum
<3> {
48
enum
EOpts
{
49
kLego
,
50
kIso
51
};
52
};
53
54
}
55
56
/** \class THistDrawOptions
57
Drawing options for a histogram with DIMENSIONS
58
*/
59
template
<
int
DIMENSION>
60
class
THistDrawOptions
{
61
int
fOpts
;
62
public
:
63
THistDrawOptions
() =
default
;
64
constexpr
THistDrawOptions
(
typename
Internal::THistDrawOptionsEnum<DIMENSION>::EOpts
opt): fOpts(2 >> opt) {}
65
};
66
67
namespace
Hist {
68
static
constexpr
const
THistDrawOptions<2>
box
(
Internal::THistDrawOptionsEnum<2>::kBox
);
69
static
constexpr
const
THistDrawOptions<2>
text
(
Internal::THistDrawOptionsEnum<2>::kText
);
70
}
71
}
72
73
74
#endif
ROOT::Internal::THistDrawOptionsEnum< 3 >::kLego
Definition:
THistDrawOptions.h:49
ROOT::THistDrawOptions::THistDrawOptions
constexpr THistDrawOptions(typename Internal::THistDrawOptionsEnum< DIMENSION >::EOpts opt)
Definition:
THistDrawOptions.h:64
ROOT::THistDrawOptions::fOpts
int fOpts
Definition:
THistDrawOptions.h:61
ROOT
Namespace for new ROOT classes and functions.
Definition:
ROOT.py:1
ROOT::Internal::THistDrawOptionsEnum< 2 >::kText
Definition:
THistDrawOptions.h:40
ROOT::Internal::THistDrawOptionsEnum
Definition:
THistDrawOptions.h:22
kText
Definition:
Buttons.h:30
ROOT::Internal::THistDrawOptionsEnum< 3 >::EOpts
EOpts
Definition:
THistDrawOptions.h:48
ROOT::Internal::THistDrawOptionsEnum< 1 >::kErrors
Definition:
THistDrawOptions.h:28
ROOT::THistDrawOptions::THistDrawOptions
THistDrawOptions()=default
ROOT::Hist::text
static constexpr const THistDrawOptions< 2 > text(Internal::THistDrawOptionsEnum< 2 >::kText)
ROOT::Hist::box
static constexpr const THistDrawOptions< 2 > box(Internal::THistDrawOptionsEnum< 2 >::kBox)
ROOT::Internal::THistDrawOptionsEnum< 2 >::EOpts
EOpts
Definition:
THistDrawOptions.h:38
ROOT::THistDrawOptions
Drawing options for a histogram with DIMENSIONS.
Definition:
THistDrawOptions.h:60
ROOT::Internal::THistDrawOptionsEnum< 1 >::EOpts
EOpts
Definition:
THistDrawOptions.h:27
ROOT::Internal::THistDrawOptionsEnum< 1 >::kBar
Definition:
THistDrawOptions.h:29
ROOT::Internal::THistDrawOptionsEnum< 2 >::kBox
Definition:
THistDrawOptions.h:39