Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 x1, double x2, double s1, double s2, double rho= 0, Int_t points= 100);
26 ~RooEllipse() override;
27
28
29 void printName(std::ostream& os) const override ;
30 void printTitle(std::ostream& os) const override ;
31 void printClassName(std::ostream& os) const override ;
32 void printMultiline(std::ostream& os, Int_t contents, bool verbose=false, TString indent="") const override;
33
34 /// Printing interface
35 inline void Print(Option_t *options= nullptr) const override {
37 }
38
39 // These methods return zero to indicate that they do not support
40 // this interface. See RooPlot::updateFitRangeNorm() for details.
41 inline double getFitRangeNEvt() const override { return 0; }
42 inline double getFitRangeNEvt(double, double) const override { return 0; }
43 inline double getFitRangeBinW() const override { return 0; }
44
45 ClassDefOverride(RooEllipse,1) // 2-dimensional contour
46};
47
48#endif
#define s1(x)
Definition RSha256.hxx:91
const char Option_t
Definition RtypesCore.h:66
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
static void indent(ostringstream &buf, int indent_level)
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t points
char name[80]
Definition TGX11.cxx:110
A RooEllipse is a two-dimensional ellipse that can be used to represent an error contour.
Definition RooEllipse.h:22
void printTitle(std::ostream &os) const override
Print title of ellipse on ostream.
double getFitRangeNEvt() const override
Definition RooEllipse.h:41
void Print(Option_t *options=nullptr) const override
Printing interface.
Definition RooEllipse.h:35
double getFitRangeBinW() const override
Definition RooEllipse.h:43
void printClassName(std::ostream &os) const override
Print class name of ellipse on ostream.
void printName(std::ostream &os) const override
Print name of ellipse on ostream.
RooEllipse()
Default constructor.
void printMultiline(std::ostream &os, Int_t contents, bool verbose=false, TString indent="") const override
Print detailed multi line information on ellipse on ostreamx.
double getFitRangeNEvt(double, double) const override
Definition RooEllipse.h:42
~RooEllipse() override
Destructor.
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=nullptr)
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:139