Pluto v6.3.0
Loading...
Searching...
No Matches
PF2.h
Go to the documentation of this file.
1// Author: I. Froehlich
2// Written: 18.8.2010
3// Revised:
4
5#ifndef _PF2_H_
6#define _PF2_H_
7
8#include "TF2.h"
9#include "PProjector.h"
10
11
12class PF2: public TF2 {
13
14 public:
15
16
17 //Standard ROOT ctors
18 PF2();
19 PF2(const char *name, const char *formula, Double_t xmin=0, Double_t xmax=1, Double_t ymin=0, Double_t ymax=1);
20 //PF2(const char *name, void *fcn, Double_t xmin=0, Double_t xmax=1, Double_t ymin=0, Double_t ymax=1, Int_t npar=0);
21
22 PF2(const char *name, Double_t (*fcn)(Double_t *, Double_t *), Double_t xmin=0, Double_t xmax=1, Double_t ymin=0, Double_t ymax=1, Int_t npar=0);
23 PF2(const char *name, Double_t (*fcn)(const Double_t *, const Double_t *), Double_t xmin=0, Double_t xmax=1, Double_t ymin=0, Double_t ymax=1, Int_t npar=0);
24 PF2(const char *name, ROOT::Math::ParamFunctor f, Double_t xmin = 0, Double_t xmax = 1, Double_t ymin = 0, Double_t ymax = 1, Int_t npar = 0);
25 PF2(const PF2 &f2);
26
27 //Pluto ctor
28 PF2(const char *name, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax);
29
30 virtual Double_t EvalPar(const Double_t *x, const Double_t *params);
31 //TF wrapper
32
33
34 Bool_t Add(const char *command);
35 Bool_t Add(TH1 *histo, const char *command = "");
36 Bool_t Add(TH2 *histo, const char *command = "");
37 Bool_t Add(TH3 *histo, const char *command = "");
38 Bool_t Add(TGraph *graph, const char *command = "");
39 Bool_t Add(TGraph2D *graph, const char *command = "");
40
41 void SetEpsilon(Double_t e) {
42 epsilon = e;
43 };
44
45 Bool_t MakeIntegral(void);
46 void GetRandom2(Double_t &xrandom, Double_t &yrandom);
47
48
49 protected:
50
51 using TF2::Integral;
52 Double_t Integral(Double_t ax, Double_t bx, Double_t ay, Double_t by, Double_t epsilon);
53
54 Double_t epsilon;
55
57 Double_t *vf, *vx, *vy;
58
59
60 ClassDef(PF2, 0) // Pluto TF2 extension
61
62};
63
64#endif
TFile * f2
TFile * f
Definition analyze_g12C.C:8
Bool_t Add(TH3 *histo, const char *command="")
Bool_t Add(const char *command)
PF2(const char *name, ROOT::Math::ParamFunctor f, Double_t xmin=0, Double_t xmax=1, Double_t ymin=0, Double_t ymax=1, Int_t npar=0)
Double_t * vy
Definition PF2.h:57
void GetRandom2(Double_t &xrandom, Double_t &yrandom)
Bool_t Add(TH1 *histo, const char *command="")
PF2(const PF2 &f2)
PF2(const char *name, Double_t(*fcn)(Double_t *, Double_t *), Double_t xmin=0, Double_t xmax=1, Double_t ymin=0, Double_t ymax=1, Int_t npar=0)
Double_t epsilon
Definition PF2.h:54
PF2(const char *name, Double_t(*fcn)(const Double_t *, const Double_t *), Double_t xmin=0, Double_t xmax=1, Double_t ymin=0, Double_t ymax=1, Int_t npar=0)
PF2(const char *name, const char *formula, Double_t xmin=0, Double_t xmax=1, Double_t ymin=0, Double_t ymax=1)
Double_t * vx
Definition PF2.h:57
virtual Double_t EvalPar(const Double_t *x, const Double_t *params)
Bool_t Add(TGraph2D *graph, const char *command="")
PProjector * projector
Definition PF2.h:56
PF2(const char *name, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax)
Bool_t Add(TGraph *graph, const char *command="")
Bool_t Add(TH2 *histo, const char *command="")
Double_t Integral(Double_t ax, Double_t bx, Double_t ay, Double_t by, Double_t epsilon)
Bool_t MakeIntegral(void)
Double_t * vf
Definition PF2.h:57
void SetEpsilon(Double_t e)
Definition PF2.h:41
TH1F * histo