Pluto v6.3.0
Loading...
Searching...
No Matches
PMesh.h
Go to the documentation of this file.
1// Author: I. Froehlich
2// Written: 7.05.2007
3// Revised:
4// PMesh
5// Linear Mesh
6
7#ifndef _PMESH_H_
8#define _PMESH_H_
9
10#include "TObject.h"
11#include "TF1.h"
12
13class PMesh : public TF1 {
14
15 private:
16
17 Double_t *td;
18 Double_t max, min;
19 Int_t size;
20
21 public:
22
23 //constructor
24 PMesh(Int_t size, const Char_t * name);
26
27 Int_t GetSize(void) {return size;}; //meshsize
28 void SetMax(Double_t pmax) {max=pmax; fXmax=pmax;};
29 void SetMin(Double_t pmin) {min=pmin; fXmin=pmin;};
30 Double_t GetMax(void) {return max;};
31 Double_t GetMin(void) {return min;};
32
33 void SetNode(Int_t node, Double_t v);
34 Double_t GetNode(Int_t node);
35
36 Double_t GetLinearIP(Double_t m) const ;
37 void Print(const Option_t* = NULL) const;
38
39 Double_t Eval(Double_t x, Double_t y = 0, Double_t z = 0, Double_t t = 0) const;
40 Double_t EvalPar(const Double_t *x, const Double_t *params);
41 //TF1 wrapper
42
43 ClassDef(PMesh, 0) //The linear mesh array
44};
45
46#endif
Double_t GetMax(void)
Definition PMesh.h:30
Double_t Eval(Double_t x, Double_t y=0, Double_t z=0, Double_t t=0) const
Int_t GetSize(void)
Definition PMesh.h:27
Double_t GetNode(Int_t node)
void SetMin(Double_t pmin)
Definition PMesh.h:29
void SetNode(Int_t node, Double_t v)
PMesh(Int_t size, const Char_t *name)
Double_t GetLinearIP(Double_t m) const
void Print(const Option_t *=NULL) const
Double_t EvalPar(const Double_t *x, const Double_t *params)
Double_t GetMin(void)
Definition PMesh.h:31
void SetMax(Double_t pmax)
Definition PMesh.h:28