ROOT
6.08/07
Reference Guide
hist
hist
v7
inc
ROOT
THistDrawOptions.hxx
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
namespace
Experimental {
20
21
namespace
Internal {
22
23
template
<
int
DIMENSION>
24
struct
THistDrawOptionsEnum
;
25
26
/// Specialization containing 1D hist drawing options.
27
template
<>
28
struct
THistDrawOptionsEnum
<1> {
29
enum
EOpts
{
30
kErrors
,
31
kBar
,
32
kText
33
};
34
};
35
36
37
/// Specialization containing 2D hist drawing options.
38
template
<>
39
struct
THistDrawOptionsEnum
<2> {
40
enum
EOpts
{
41
kBox
,
42
kText
,
43
kLego
44
};
45
};
46
47
/// Specialization containing 3D hist drawing options.
48
template
<>
49
struct
THistDrawOptionsEnum
<3> {
50
enum
EOpts
{
51
kLego
,
52
kIso
53
};
54
};
55
56
}
57
58
/** \class THistDrawOptions
59
Drawing options for a histogram with DIMENSIONS
60
*/
61
template
<
int
DIMENSION>
62
class
THistDrawOptions
{
63
int
fOpts
;
64
public
:
65
THistDrawOptions
() =
default
;
66
constexpr
THistDrawOptions
(
typename
Internal::THistDrawOptionsEnum<DIMENSION>::EOpts
opt): fOpts(2 >> opt) {}
67
};
68
69
namespace
Hist {
70
static
constexpr
const
THistDrawOptions<2>
box
(
Internal::THistDrawOptionsEnum<2>::kBox
);
71
static
constexpr
const
THistDrawOptions<2>
text
(
Internal::THistDrawOptionsEnum<2>::kText
);
72
}
73
74
}
// namespace Experimental
75
}
// namespace ROOT
76
77
78
#endif
ROOT::Experimental::Internal::THistDrawOptionsEnum< 2 >::EOpts
EOpts
Definition:
THistDrawOptions.hxx:40
ROOT::Experimental::Internal::THistDrawOptionsEnum
Definition:
THistDrawOptions.hxx:24
ROOT::Experimental::Internal::THistDrawOptionsEnum< 1 >::kBar
Definition:
THistDrawOptions.hxx:31
ROOT
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
Definition:
StringConv.hxx:21
box
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Definition:
fillpatterns.C:1
kText
Definition:
Buttons.h:30
ROOT::Experimental::Hist::text
static constexpr const THistDrawOptions< 2 > text(Internal::THistDrawOptionsEnum< 2 >::kText)
ROOT::Experimental::Internal::THistDrawOptionsEnum< 3 >::EOpts
EOpts
Definition:
THistDrawOptions.hxx:50
ROOT::Experimental::Internal::THistDrawOptionsEnum< 1 >::kErrors
Definition:
THistDrawOptions.hxx:30
ROOT::Experimental::THistDrawOptions::THistDrawOptions
constexpr THistDrawOptions(typename Internal::THistDrawOptionsEnum< DIMENSION >::EOpts opt)
Definition:
THistDrawOptions.hxx:66
ROOT::Experimental::Internal::THistDrawOptionsEnum< 2 >::kBox
Definition:
THistDrawOptions.hxx:41
ROOT::Experimental::THistDrawOptions::fOpts
int fOpts
Definition:
THistDrawOptions.hxx:63
ROOT::Experimental::Internal::THistDrawOptionsEnum< 2 >::kText
Definition:
THistDrawOptions.hxx:42
ROOT::Experimental::Internal::THistDrawOptionsEnum< 3 >::kLego
Definition:
THistDrawOptions.hxx:51
ROOT::Experimental::Internal::THistDrawOptionsEnum< 1 >::EOpts
EOpts
Definition:
THistDrawOptions.hxx:29
ROOT::Experimental::THistDrawOptions
Drawing options for a histogram with DIMENSIONS.
Definition:
THistDrawOptions.hxx:62