Pluto v6.3.0
Loading...
Searching...
No Matches
PF3.h
Go to the documentation of this file.
1// Author: I. Froehlich
2// Written: 14.9.2012
3// Revised:
4
5#ifndef _PF3_H_
6#define _PF3_H_
7
8#include "TF3.h"
9#include "PProjector.h"
10
11
12class PF3: public TF3 {
13
14 public:
15
16
17 //Standard ROOT ctors
18 PF3();
19 PF3(const char *name, const char *formula, Double_t xmin=0, Double_t xmax=1, Double_t ymin=0, Double_t ymax=1, Double_t zmin=0, Double_t zmax=1);
20 //PF3(const char *name, void *fcn, Double_t xmin=0, Double_t xmax=1, Double_t ymin=0, Double_t ymax=1, Double_t zmin=0, Double_t zmax=1, Int_t npar=0);
21
22 PF3(const char *name, Double_t (*fcn)(Double_t *, Double_t *), Double_t xmin=0, Double_t xmax=1,
23 Double_t ymin=0, Double_t ymax=1, Double_t zmin=0, Double_t zmax=1, Int_t npar=0);
24 PF3(const char *name, Double_t (*fcn)(const Double_t *, const Double_t *), Double_t xmin=0, Double_t xmax=1,
25 Double_t ymin=0, Double_t ymax=1, Double_t zmin=0, Double_t zmax=1, Int_t npar=0);
26 PF3(const char *name, ROOT::Math::ParamFunctor f, Double_t xmin = 0, Double_t xmax = 1,
27 Double_t ymin=0, Double_t ymax=1, Double_t zmin=0, Double_t zmax=1, Int_t npar = 0);
28 PF3(const PF3 &f3);
29
30 //Pluto ctor
31 PF3(const char *name, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax, Double_t zmin, Double_t zmax);
32
33 virtual Double_t EvalPar(const Double_t *x, const Double_t *params);
34 //TF wrapper
35
36
37 Bool_t Add(char *command);
38 Bool_t Add(TH1 *histo, const char *command = "");
39 Bool_t Add(TH2 *histo, const char *command = "");
40 Bool_t Add(TH3 *histo, const char *command = "");
41 Bool_t Add(TGraph *graph, const char *command = "");
42 Bool_t Add(TGraph2D *graph, const char *command = "");
43
44
45 protected:
46
48 Double_t *vf, *vx, *vy, *vz;
49
50
51 ClassDef(PF3, 0) // Pluto TF3 extension
52
53};
54
55#endif
TFile * f
Definition analyze_g12C.C:8
Double_t * vz
Definition PF3.h:48
Double_t * vf
Definition PF3.h:48
Bool_t Add(TH3 *histo, const char *command="")
Bool_t Add(char *command)
virtual Double_t EvalPar(const Double_t *x, const Double_t *params)
Bool_t Add(TGraph *graph, const char *command="")
Bool_t Add(TGraph2D *graph, const char *command="")
PProjector * projector
Definition PF3.h:47
PF3(const char *name, ROOT::Math::ParamFunctor f, Double_t xmin=0, Double_t xmax=1, Double_t ymin=0, Double_t ymax=1, Double_t zmin=0, Double_t zmax=1, Int_t npar=0)
PF3(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, Double_t zmin=0, Double_t zmax=1, Int_t npar=0)
Bool_t Add(TH2 *histo, const char *command="")
PF3(const char *name, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax, Double_t zmin, Double_t zmax)
Double_t * vy
Definition PF3.h:48
PF3(const PF3 &f3)
Double_t * vx
Definition PF3.h:48
PF3(const char *name, const char *formula, Double_t xmin=0, Double_t xmax=1, Double_t ymin=0, Double_t ymax=1, Double_t zmin=0, Double_t zmax=1)
PF3(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, Double_t zmin=0, Double_t zmax=1, Int_t npar=0)
Bool_t Add(TH1 *histo, const char *command="")
TH1F * histo