CbmRoot
Loading...
Searching...
No Matches
PMesh.h
Go to the documentation of this file.
1/* Copyright (C) 2007-2019 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: I. Froehlich, Florian Uhlig [committer] */
4
5// Linear Mesh
6
7#ifndef _PMESH_H_
8#define _PMESH_H_
9
10#include "TF1.h"
11#include "TObject.h"
12
13class PMesh : public TF1 {
14
15private:
16 Double_t* td;
17 Double_t max, min;
18 Int_t size;
19
20public:
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 {
28 max = pmax;
29 fXmax = pmax;
30 };
31 void SetMin(Double_t pmin)
32 {
33 min = pmin;
34 fXmin = pmin;
35 };
36 Double_t GetMax(void) { return max; };
37 Double_t GetMin(void) { return min; };
38
39 void SetNode(Int_t node, Double_t v);
40 Double_t GetNode(Int_t node);
41
42 Double_t GetLinearIP(Double_t m) const;
43 void Print(const Option_t*) const;
44
45 Double_t Eval(Double_t x, Double_t y = 0, Double_t z = 0, Double_t t = 0) const;
46 Double_t EvalPar(const Double_t* x, const Double_t* params);
47 //TF1 wrapper
48
49 ClassDef(PMesh, 0) //The linear mesh array
50};
51
52#endif
fscal v[fmask::Size]
Definition KfSimdPseudo.h:4
Definition PMesh.h:13
Double_t GetMax(void)
Definition PMesh.h:36
Double_t Eval(Double_t x, Double_t y=0, Double_t z=0, Double_t t=0) const
Definition PMesh.cxx:58
Double_t * td
Definition PMesh.h:16
Int_t size
Definition PMesh.h:18
Int_t GetSize(void)
Definition PMesh.h:25
Double_t GetNode(Int_t node)
Definition PMesh.cxx:66
Double_t max
Definition PMesh.h:17
void SetMin(Double_t pmin)
Definition PMesh.h:31
void SetNode(Int_t node, Double_t v)
Definition PMesh.cxx:60
void Print(const Option_t *) const
Definition PMesh.cxx:72
PMesh(Int_t size, const Char_t *name)
Definition PMesh.cxx:21
~PMesh()
Definition PMesh.cxx:51
Double_t GetLinearIP(Double_t m) const
Definition PMesh.cxx:80
Double_t EvalPar(const Double_t *x, const Double_t *params)
Definition PMesh.cxx:56
Double_t GetMin(void)
Definition PMesh.h:37
Double_t min
Definition PMesh.h:17
void SetMax(Double_t pmax)
Definition PMesh.h:26