Loading [MathJax]/extensions/tex2jax.js
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
•
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
//
19
// BEGIN_HTML
20
// Class RooPotable is a base class for objects that can be inserted into RooPlots and take
21
// advantage of its internal normalization and axis range adjustment features. The
22
// most useful implementation of RooPlotable are RooHist and RooCurve.
23
// END_HTML
24
//
25
26
#include "
RooFit.h
"
27
28
#include "
RooPlotable.h
"
29
#include "
RooPlotable.h
"
30
#include "
TObject.h
"
31
#include "
Riostream.h
"
32
33
using namespace
std
;
34
35
ClassImp
(
RooPlotable
)
36
;
37
38
39
////////////////////////////////////////////////////////////////////////////////
40
/// Print detailed information
41
42
void
RooPlotable::printMultiline
(ostream& os,
Int_t
/*content*/
,
Bool_t
/*verbose*/
,
TString
indent
)
const
{
43
os << indent <<
"--- RooPlotable ---"
<< endl;
44
os << indent <<
" y-axis min = "
<< getYAxisMin() << endl
45
<< indent <<
" y-axis max = "
<< getYAxisMax() << endl
46
<< indent <<
" y-axis label \""
<< getYAxisLabel() <<
"\""
<< endl;
47
}
48
49
50
////////////////////////////////////////////////////////////////////////////////
51
/// Return cast of RooPlotable as TObject. Note that is this a cross
52
/// cast that will change the pointer value in most cases
53
54
TObject
*
RooPlotable::crossCast
() {
55
return
dynamic_cast<
TObject
*
>
(
this
);
56
}
RooPlotable
Definition:
RooPlotable.h:26
TString
Basic string class.
Definition:
TString.h:137
Int_t
int Int_t
Definition:
RtypesCore.h:41
Bool_t
bool Bool_t
Definition:
RtypesCore.h:59
std
STL namespace.
ClassImp
ClassImp(RooPlotable)
RooPlotable::crossCast
TObject * crossCast()
Return cast of RooPlotable as TObject.
Definition:
RooPlotable.cxx:54
RooPlotable::printMultiline
virtual void printMultiline(std::ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const
Print detailed information.
Definition:
RooPlotable.cxx:42
indent
static void indent(ostringstream &buf, int indent_level)
Definition:
TClingCallFunc.cxx:89
Riostream.h
TObject
Mother of all ROOT objects.
Definition:
TObject.h:58
TObject.h
RooPlotable.h
RooFit.h