EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MediaLayer.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file MediaLayer.h
1 //
2 // AYK (ayk@bnl.gov), shaped up in Nov'2015;
3 //
4 // Single media layer definition;
5 //
6 
7 #include <TGeoMaterial.h>
8 
9 #ifndef _MEDIA_LAYER_
10 #define _MEDIA_LAYER_
11 
12 class MediaLayer {
13  public:
14  MediaLayer(TGeoMaterial *material, double z0);
16 
18  double GetThickness() const { return mThickness; };
19 
20  TGeoMaterial *GetMaterial() const { return mMaterial; };
21  double GetZ0() const { return mZ0; };
22  double GetMoliereChc() const { return mMoliereChc; };
23 
24  private:
25  TGeoMaterial *mMaterial;
26 
27  // 'chc' parameter of Moliere theory;
28  double mMoliereChc;
29 
30  // Well, layers should in fact be consequitive in Z, so up to numerical
31  // rounding mZ0+mThickness of a given layer should be equal to the mZ0
32  // of the next layer; FIXME one day perhaps?;
33  double mZ0, mThickness;
34 };
35 
36 #endif