EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EicGeoMedium.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file EicGeoMedium.h
1 
2 //
3 // A renamed exerpt of FairGeoMedium.h;
4 //
5 
6 #include <fstream>
7 
8 #ifndef _EIC_GEO_MEDIUM_
9 #define _EIC_GEO_MEDIUM_
10 
11 #include "TNamed.h"
12 
13 class EicGeoMedium : public TNamed
14 {
15  private:
16  Int_t autoflag;
17  Int_t nComponents;
18  Int_t weightFac;
19  Double_t* ca; //[nComponents] /** Atomic weights for the components*/
20  Double_t* cz; //[nComponents] /** Atomic numbers for the components*/
21  Double_t* cw; //[nComponents] /** Weights of the components in a mixture*/
22  Double_t density;
23  Int_t sensFlag;
24  Int_t fldFlag;
25  Double_t fld;
26  Double_t epsil;
27  Double_t madfld;
28  Double_t maxstep;
29  Double_t maxde;
30  Double_t minstep;
32  public:
33  EicGeoMedium(const char* name="");
34  ~EicGeoMedium();
35 
36  Int_t getAutoFlag() {return autoflag;}
37  void setNComponents(Int_t);
38  Int_t getNComponents() {return nComponents;}
39  Bool_t setComponent(Int_t,Double_t,Double_t,Double_t w=1.);
40  void getComponent(Int_t,Double_t*);
41  Int_t getWeightFac() {return weightFac;}
42  Double_t getDensity() {return density;}
43  void setMediumPar(Int_t,Int_t,Double_t,Double_t,Double_t maxDeviation=-1.,
44  Double_t maxStep=-1.,Double_t maxDE=-1.,
45  Double_t minStepDouble_t=-1.);
46  void getMediumPar(Double_t*);
47  void read(std::fstream&, Int_t autoflag );
48  void print();
49 
50  ClassDef(EicGeoMedium,2)
51 };
52 
53 #endif