#include <PndRestGas.h>
PndRestGas.h
- Author
- P.Buehler paul..nosp@m.bueh.nosp@m.ler@o.nosp@m.eaw..nosp@m.ac.at
The PndRestGas provides tools to simulate the distribution of the rest gas (DD: Density Distribution) in the beam tube.
Definition at line 19 of file PndRestGas.h.
PndRestGas::PndRestGas |
( |
| ) |
|
Default constructor (should not be used)
Definition at line 12 of file PndRestGas.cxx.
PndRestGas::PndRestGas |
( |
char |
DDFname[80] | ) |
|
Standard constructor DDFname: a file name zmin/zmax: minimum/maximum extension of gas distribution along z-axis
Definition at line 18 of file PndRestGas.cxx.
void LoadDD(char DDfname[80])
Definition at line 27 of file PndRestGas.cxx.
void LoadDD(char DDfname[80])
void SetzRange(Double_t zmin, Double_t zmax)
PndRestGas::~PndRestGas |
( |
| ) |
|
|
virtual |
TF1* PndRestGas::GetDDFun |
( |
| ) |
|
|
inline |
void PndRestGas::LoadDD |
( |
char |
DDfname[80] | ) |
|
methods LoadDD: read data from file and create DD function SetzRange: set range of zvalues GetDDFun: get the DD function
Definition at line 56 of file PndRestGas.cxx.
References Double_t, fDensityGraph, GetDDValue(), and npoints.
Float_t ** ReadDD(char DDFname[80], Int_t *npoints, Double_t *zmin, Double_t *zmax)
void SetzRange(Double_t zmin, Double_t zmax)
Double_t GetDDValue(Double_t *zval, Double_t *)
Float_t ** PndRestGas::ReadDD |
( |
char |
DDFname[80], |
|
|
Int_t * |
npoints, |
|
|
Double_t * |
zmin, |
|
|
Double_t * |
zmax |
|
) |
| |
|
private |
methods ReadDD : read DD values from file
Definition at line 74 of file PndRestGas.cxx.
References a, b, file, i, x, and y.
86 FILE *
file = fopen(DDfname,
"r");
88 while ( (ch = fgetc(file)) != EOF ) {
104 x = (Float_t*) malloc(lines*
sizeof(Float_t));
105 y = (Float_t*) malloc(lines*
sizeof(Float_t));
108 FILE * fp = fopen(DDfname,
"r");
109 for(i=0;i<lines;i++) {
110 fscanf(fp,
"%f %f",&a,&b);
117 values = (Float_t**) malloc(
sizeof(Float_t*) * 2);
Float_t** PndRestGas::fDDvals |
|
private |
TF1* PndRestGas::fDensityFun |
|
private |
variables fzmin, fzmax: fDDvals: fDensityFun: function representing DD
Definition at line 66 of file PndRestGas.h.
Referenced by SetzRange().
The documentation for this class was generated from the following files: