Logo ROOT  
Reference Guide
RooEllipse.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * Package: RooFitCore *
4 * File: $Id: RooEllipse.h,v 1.8 2007/05/11 09:11:30 verkerke Exp $
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#ifndef ROO_ELLIPSE
17#define ROO_ELLIPSE
18
19#include "TGraph.h"
20#include "RooPlotable.h"
21
22class RooEllipse : public TGraph, public RooPlotable {
23public:
24 RooEllipse();
25 RooEllipse(const char *name, Double_t x1, Double_t x2, Double_t s1, Double_t s2, Double_t rho= 0, Int_t points= 100);
26 virtual ~RooEllipse();
27
28
29 virtual void printName(std::ostream& os) const ;
30 virtual void printTitle(std::ostream& os) const ;
31 virtual void printClassName(std::ostream& os) const ;
32 virtual void printMultiline(std::ostream& os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const;
33
34 inline virtual void Print(Option_t *options= 0) const {
35 // Printing interface
37 }
38
39 // These methods return zero to indicate that they do not support
40 // this interface. See RooPlot::updateFitRangeNorm() for details.
41 inline virtual Double_t getFitRangeNEvt() const { return 0; }
42 inline virtual Double_t getFitRangeNEvt(Double_t, Double_t) const { return 0; }
43 inline virtual Double_t getFitRangeBinW() const { return 0; }
44
45 ClassDef(RooEllipse,1) // 2-dimensional contour
46};
47
48#endif
#define s1(x)
Definition: RSha256.hxx:91
static const double x2[5]
static const double x1[5]
const Bool_t kFALSE
Definition: RtypesCore.h:90
double Double_t
Definition: RtypesCore.h:57
const char Option_t
Definition: RtypesCore.h:64
#define ClassDef(name, id)
Definition: Rtypes.h:322
static void indent(ostringstream &buf, int indent_level)
char name[80]
Definition: TGX11.cxx:109
point * points
Definition: X3DBuffer.c:22
A RooEllipse is a two-dimensional ellipse that can be used to represent an error contour.
Definition: RooEllipse.h:22
virtual Double_t getFitRangeBinW() const
Definition: RooEllipse.h:43
virtual Double_t getFitRangeNEvt(Double_t, Double_t) const
Definition: RooEllipse.h:42
virtual void printTitle(std::ostream &os) const
Print title of ellipse on ostream.
Definition: RooEllipse.cxx:135
virtual void printName(std::ostream &os) const
Print name of ellipse on ostream.
Definition: RooEllipse.cxx:126
virtual void printMultiline(std::ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const
Print detailed multi line information on ellipse on ostreamx.
Definition: RooEllipse.cxx:153
virtual ~RooEllipse()
Destructor.
Definition: RooEllipse.cxx:54
virtual Double_t getFitRangeNEvt() const
Definition: RooEllipse.h:41
RooEllipse()
Default constructor.
Definition: RooEllipse.cxx:46
virtual void printClassName(std::ostream &os) const
Print class name of ellipse on ostream.
Definition: RooEllipse.cxx:144
virtual void Print(Option_t *options=0) const
Print graph values.
Definition: RooEllipse.h:34
Class RooPotable is a base class for objects that can be inserted into RooPlots and take advantage of...
Definition: RooPlotable.h:26
virtual StyleOption defaultPrintStyle(Option_t *opt) const
virtual Int_t defaultPrintContents(Option_t *opt) const
Default choice of contents to be printed (name and value)
static std::ostream & defaultPrintStream(std::ostream *os=0)
Return a reference to the current default stream to use in Print().
virtual void printStream(std::ostream &os, Int_t contents, StyleOption style, TString indent="") const
Print description of object on ostream, printing contents set by contents integer,...
A TGraph is an object made of two arrays X and Y with npoints each.
Definition: TGraph.h:41
Basic string class.
Definition: TString.h:131