PandaRoot
PndRestGas.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 // -------------------------------------------------------------------------
14 // ----- PndRestGas header file -----
15 // ----- Created 14/12/09 by P.Buehler -----
16 // -------------------------------------------------------------------------
17 
25 #ifndef PND_RESTGAS_H
26 #define PND_RESTGAS_H
27 
28 #include "TF1.h"
29 #include "TGraph.h"
30 
31 class PndRestGas {
32 
33  // ------------------------------------------------------------------------
34  public:
36  PndRestGas();
37 
42  PndRestGas(char DDFname[80]);
43  PndRestGas(char DDFname[80], Double_t zmin, Double_t zmax);
44 
46  virtual ~PndRestGas();
47 
53  void LoadDD(char DDfname[80]);
54  void SetzRange(Double_t zmin, Double_t zmax)
55  {
56  fzmin = zmin;
57  fzmax = zmax;
58  }
59  TF1 *GetDDFun() { return fDensityFun; }
60 
61  // ------------------------------------------------------------------------
62  private:
66  Float_t **ReadDD(char DDFname[80], Int_t *npoints, Double_t *zmin, Double_t *zmax);
67 
73  Double_t fzmin, fzmax;
74  Float_t **fDDvals;
75  TF1 *fDensityFun;
76 
77  // ------------------------------------------------------------------------
78 
79  ClassDef(PndRestGas, 1);
80 };
81 
82 #endif
virtual ~PndRestGas()
void LoadDD(char DDfname[80])
void SetzRange(Double_t zmin, Double_t zmax)
Definition: PndRestGas.h:54
TF1 * GetDDFun()
Definition: PndRestGas.h:59