Loading [MathJax]/extensions/tex2jax.js
ROOT
6.14/05
Reference Guide
ROOT Home
Main Page
Tutorials
Functional Parts
+
Namespaces
Namespace List
+
Namespace Members
+
All
<
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
<
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
u
w
x
+
Enumerations
a
e
f
g
m
p
t
v
w
y
+
Enumerator
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
w
+
All Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
+
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
w
y
+
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Properties
f
+
Related Functions
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Files
File List
+
File Members
+
All
1
2
3
4
5
6
7
8
9
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerations
c
e
f
i
l
m
p
r
u
x
+
Enumerator
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
u
v
w
+
Macros
1
2
3
4
5
6
7
8
9
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
roofit
roofitcore
src
RooPlotable.cxx
Go to the documentation of this file.
1
/*****************************************************************************
2
* Project: RooFit *
3
* Package: RooFitCore *
4
* @(#)root/roofitcore:$Id$
5
* Authors: *
6
* WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
7
* DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
8
* *
9
* Copyright (c) 2000-2005, Regents of the University of California *
10
* and Stanford University. All rights reserved. *
11
* *
12
* Redistribution and use in source and binary forms, *
13
* with or without modification, are permitted according to the terms *
14
* listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
15
*****************************************************************************/
16
17
/**
18
\file RooPlotable.cxx
19
\class RooPlotable
20
\ingroup Roofitcore
21
22
Class RooPotable is a base class for objects that can be inserted into RooPlots and take
23
advantage of its internal normalization and axis range adjustment features. The
24
most useful implementation of RooPlotable are RooHist and RooCurve.
25
**/
26
27
#include "
RooFit.h
"
28
29
#include "
RooPlotable.h
"
30
#include "
RooPlotable.h
"
31
#include "
TObject.h
"
32
#include "
Riostream.h
"
33
34
using namespace
std
;
35
36
ClassImp
(
RooPlotable
);
37
;
38
39
40
////////////////////////////////////////////////////////////////////////////////
41
/// Print detailed information
42
43
void
RooPlotable::printMultiline
(ostream& os,
Int_t
/*content*/
,
Bool_t
/*verbose*/
, TString indent)
const
{
44
os << indent <<
"--- RooPlotable ---"
<< endl;
45
os << indent <<
" y-axis min = "
<< getYAxisMin() << endl
46
<< indent <<
" y-axis max = "
<< getYAxisMax() << endl
47
<< indent <<
" y-axis label \""
<< getYAxisLabel() <<
"\""
<< endl;
48
}
49
50
51
////////////////////////////////////////////////////////////////////////////////
52
/// Return cast of RooPlotable as TObject. Note that is this a cross
53
/// cast that will change the pointer value in most cases
54
55
TObject
*
RooPlotable::crossCast
() {
56
return
dynamic_cast<
TObject
*
>
(
this
);
57
}
RooPlotable
Class RooPotable is a base class for objects that can be inserted into RooPlots and take advantage of...
Definition:
RooPlotable.h:26
RooPlotable::printMultiline
virtual void printMultiline(std::ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const
Print detailed information.
Definition:
RooPlotable.cxx:43
Int_t
int Int_t
Definition:
RtypesCore.h:41
Bool_t
bool Bool_t
Definition:
RtypesCore.h:59
std
STL namespace.
RooPlotable::crossCast
TObject * crossCast()
Return cast of RooPlotable as TObject.
Definition:
RooPlotable.cxx:55
Riostream.h
ClassImp
#define ClassImp(name)
Definition:
Rtypes.h:359
TObject
Mother of all ROOT objects.
Definition:
TObject.h:37
TObject.h
RooPlotable.h
RooFit.h