ROOT  6.06/09
Reference Guide
TF12.h
Go to the documentation of this file.
1 // @(#)root/hist:$Id$
2 // Author: Rene Brun 05/04/2003
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2003, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TF12
13 #define ROOT_TF12
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TF12 //
18 // //
19 // Projection of a TF2 along x or y //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #ifndef ROOT_TF2
24 #include "TF2.h"
25 #endif
26 #ifndef ROOT_Riosfwd
27 #include "Riosfwd.h"
28 #endif
29 
30 class TF12 : public TF1 {
31 
32 protected:
33  Double_t fXY; //Value along Y (if projection X) or X (if projection Y)
34  Int_t fCase; //projection along X(0), or Y(1)
35  TF2 *fF2; //pointer to the mother TF2
36 
37 public:
38  TF12();
39  TF12(const char *name, TF2 *f2, Double_t xy, Option_t *option="x");
40  TF12(const TF12 &f12);
41  virtual ~TF12();
42  virtual void Copy(TObject &f12) const;
43  virtual TF1 *DrawCopy(Option_t *option="") const;
44  virtual Double_t Eval(Double_t x, Double_t y=0, Double_t z=0, Double_t t=0) const;
45  virtual Double_t EvalPar(const Double_t *x, const Double_t *params=0);
46  virtual Double_t GetXY() const {return fXY;}
47  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
48  virtual void SetXY(Double_t xy); // *MENU*
49 
50  ClassDef(TF12,1) //Projection of a TF2 along x or y
51 };
52 
53 #endif
virtual Double_t Eval(Double_t x, Double_t y=0, Double_t z=0, Double_t t=0) const
Evaluate this formula.
Definition: TF12.cxx:133
A projection of a TF2 along X or Y.
Definition: TF12.h:30
Double_t fXY
Definition: TF12.h:33
const char Option_t
Definition: RtypesCore.h:62
virtual Double_t GetXY() const
Definition: TF12.h:46
int Int_t
Definition: RtypesCore.h:41
virtual void SetXY(Double_t xy)
Set the value of the constant for the TF2.
Definition: TF12.cxx:184
TF2 * fF2
Definition: TF12.h:35
Double_t x[n]
Definition: legend1.C:17
Int_t fCase
Definition: TF12.h:34
ClassDef(TAttLine, 2)
char * out
Definition: TBase64.cxx:29
virtual void Copy(TObject &f12) const
Copy this F2 to a new F2.
Definition: TF12.cxx:92
virtual ~TF12()
F2 default destructor.
Definition: TF12.cxx:75
virtual TF1 * DrawCopy(Option_t *option="") const
Draw a copy of this function with its current attributes.
Definition: TF12.cxx:118
XPoint xy[kMAXMK]
Definition: TGX11.cxx:122
A 2-Dim function with parameters.
Definition: TF2.h:33
double Double_t
Definition: RtypesCore.h:55
Double_t y[n]
Definition: legend1.C:17
#define name(a, b)
Definition: linkTestLib0.cpp:5
Mother of all ROOT objects.
Definition: TObject.h:58
double f2(const double *x)
1-Dim function class
Definition: TF1.h:149
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
Definition: TF12.cxx:170
virtual Double_t EvalPar(const Double_t *x, const Double_t *params=0)
Evaluate this function at point x[0].
Definition: TF12.cxx:151