Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
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#include "TF2.h"
24
25class TF12 : public TF1 {
26
27protected:
28 Double_t fXY; ///< Value along Y (if projection X) or X (if projection Y)
29 Int_t fCase; ///< Projection along X(0), or Y(1)
30 TF2 *fF2; ///< Pointer to the mother TF2
31
32public:
34 TF12(const char *name, TF2 *f2, Double_t xy, Option_t *option="x", EAddToList addToGlobList = EAddToList::kDefault);
35 TF12(const TF12 &f12);
36 ~TF12() override;
37 void Copy(TObject &f12) const override;
38 TF1 *DrawCopy(Option_t *option="") const override;
39 Double_t Eval(Double_t x, Double_t y=0, Double_t z=0, Double_t t=0) const override;
40 Double_t EvalPar(const Double_t *x, const Double_t *params=nullptr) override;
41
42#ifdef R__HAS_STD_EXPERIMENTAL_SIMD
43 using TF1::Eval; // to not hide the vectorized version
44 using TF1::EvalPar; // to not hide the vectorized version
45#endif
46
47 virtual Double_t GetXY() const {return fXY;}
48 void SavePrimitive(std::ostream &out, Option_t *option = "") override;
49 virtual void SetXY(Double_t xy); // *MENU*
50
51 ClassDefOverride(TF12,1) //Projection of a TF2 along x or y
52};
53
54#endif
int Int_t
Signed integer 4 bytes (int).
Definition RtypesCore.h:59
double Double_t
Double 8 bytes.
Definition RtypesCore.h:73
const char Option_t
Option string (const char).
Definition RtypesCore.h:80
#define ClassDefOverride(name, id)
Definition Rtypes.h:348
char name[80]
Definition TGX11.cxx:148
Int_t fCase
Projection along X(0), or Y(1).
Definition TF12.h:29
Double_t fXY
Value along Y (if projection X) or X (if projection Y).
Definition TF12.h:28
Double_t EvalPar(const Double_t *x, const Double_t *params=nullptr) override
virtual void SetXY(Double_t xy)
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a primitive as a C++ statement(s) on output stream "out".
void Copy(TObject &f12) const override
Copy this to obj.
~TF12() override
TF12(const TF12 &f12)
virtual Double_t GetXY() const
Definition TF12.h:47
TF1 * DrawCopy(Option_t *option="") const override
TF2 * fF2
Pointer to the mother TF2.
Definition TF12.h:30
TF12(const char *name, TF2 *f2, Double_t xy, Option_t *option="x", EAddToList addToGlobList=EAddToList::kDefault)
Double_t Eval(Double_t x, Double_t y=0, Double_t z=0, Double_t t=0) const override
EAddToList
Add to list behavior.
Definition TF1.h:189
virtual Double_t Eval(Double_t x, Double_t y=0, Double_t z=0, Double_t t=0) const
TF1(EFType functionType, const char *name, Double_t xmin, Double_t xmax, Int_t npar, Int_t ndim, EAddToList addToGlobList, TF1Parameters *params=nullptr, TF1FunctorPointer *functor=nullptr)
General constructor for TF1. Most of the other constructors delegate on it.
Definition TF1.h:242
virtual Double_t EvalPar(const Double_t *x, const Double_t *params=nullptr)
Definition TF2.h:29
TObject()
TObject constructor.
Definition TObject.h:259
Double_t y[n]
Definition legend1.C:17
Double_t x[n]
Definition legend1.C:17