Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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 
22 class RooEllipse : public TGraph, public RooPlotable {
23 public:
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
36  printStream(defaultPrintStream(),defaultPrintContents(options),defaultPrintStyle(options));
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