PandaRoot
PndRestGas.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndRestGas header file -----
3 // ----- Created 14/12/09 by P.Buehler -----
4 // -------------------------------------------------------------------------
5 
13 #ifndef PND_RESTGAS_H
14 #define PND_RESTGAS_H
15 
16 #include "TF1.h"
17 #include "TGraph.h"
18 
19 class PndRestGas {
20 
21  // ------------------------------------------------------------------------
22  public:
24  PndRestGas();
25 
30  PndRestGas(char DDFname[80]);
31  PndRestGas(char DDFname[80], Double_t zmin, Double_t zmax);
32 
34  virtual ~PndRestGas();
35 
41  void LoadDD(char DDfname[80]);
42  void SetzRange(Double_t zmin, Double_t zmax)
43  {
44  fzmin = zmin;
45  fzmax = zmax;
46  }
47  TF1 *GetDDFun() { return fDensityFun; }
48 
49  // ------------------------------------------------------------------------
50  private:
54  Float_t **ReadDD(char DDFname[80], Int_t *npoints, Double_t *zmin, Double_t *zmax);
55 
61  Double_t fzmin, fzmax;
62  Float_t **fDDvals;
63  TF1 *fDensityFun;
64 
65  // ------------------------------------------------------------------------
66 
67  ClassDef(PndRestGas, 1);
68 };
69 
70 #endif
virtual ~PndRestGas()
void LoadDD(char DDfname[80])
void SetzRange(Double_t zmin, Double_t zmax)
Definition: PndRestGas.h:42
TF1 * GetDDFun()
Definition: PndRestGas.h:47