CbmRoot
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 "TF1.h"
11 #include "TObject.h"
12 
13 class PMesh : public TF1 {
14 
15 private:
16  Double_t* td;
17  Double_t max, min;
18  Int_t size;
19 
20 public:
21  //constructor
22  PMesh(Int_t size, const Char_t* name);
23  ~PMesh();
24 
25  Int_t GetSize(void) { return size; }; //meshsize
26  void SetMax(Double_t pmax) {
27  max = pmax;
28  fXmax = pmax;
29  };
30  void SetMin(Double_t pmin) {
31  min = pmin;
32  fXmin = pmin;
33  };
34  Double_t GetMax(void) { return max; };
35  Double_t GetMin(void) { return min; };
36 
37  void SetNode(Int_t node, Double_t v);
38  Double_t GetNode(Int_t node);
39 
40  Double_t GetLinearIP(Double_t m) const;
41  void Print(const Option_t*) const;
42 
43  Double_t
44  Eval(Double_t x, Double_t y = 0, Double_t z = 0, Double_t t = 0) const;
45  Double_t EvalPar(const Double_t* x, const Double_t* params);
46  //TF1 wrapper
47 
48  ClassDef(PMesh, 0) //The linear mesh array
49 };
50 
51 #endif
PMesh::SetMin
void SetMin(Double_t pmin)
Definition: PMesh.h:30
PMesh::SetNode
void SetNode(Int_t node, Double_t v)
Definition: PMesh.cxx:64
PMesh::max
Double_t max
Definition: PMesh.h:17
PMesh::SetMax
void SetMax(Double_t pmax)
Definition: PMesh.h:26
PMesh::min
Double_t min
Definition: PMesh.h:17
PMesh::GetSize
Int_t GetSize(void)
Definition: PMesh.h:25
PMesh
Definition: PMesh.h:13
PMesh::td
Double_t * td
Definition: PMesh.h:16
PMesh::Print
void Print(const Option_t *) const
Definition: PMesh.cxx:74
PMesh::EvalPar
Double_t EvalPar(const Double_t *x, const Double_t *params)
Definition: PMesh.cxx:55
PMesh::GetNode
Double_t GetNode(Int_t node)
Definition: PMesh.cxx:69
PMesh::Eval
Double_t Eval(Double_t x, Double_t y=0, Double_t z=0, Double_t t=0) const
Definition: PMesh.cxx:60
PMesh::GetMax
Double_t GetMax(void)
Definition: PMesh.h:34
PMesh::GetLinearIP
Double_t GetLinearIP(Double_t m) const
Definition: PMesh.cxx:81
v
__m128 v
Definition: L1/vectors/P4_F32vec4.h:1
PMesh::PMesh
PMesh(Int_t size, const Char_t *name)
Definition: PMesh.cxx:22
x
Double_t x
Definition: CbmMvdSensorDigiToHitTask.cxx:68
m
__m128 m
Definition: L1/vectors/P4_F32vec4.h:26
y
Double_t y
Definition: CbmMvdSensorDigiToHitTask.cxx:68
PMesh::GetMin
Double_t GetMin(void)
Definition: PMesh.h:35
PMesh::~PMesh
~PMesh()
Definition: PMesh.cxx:51
PMesh::size
Int_t size
Definition: PMesh.h:18