File indexing completed on 2025-01-18 10:18:20
0001
0002 #include <G4Material.hh>
0003
0004 #ifndef _G4_RADIATOR_MATERIAL_
0005 #define _G4_RADIATOR_MATERIAL_
0006
0007 #include <g4dRIChOptics.hh>
0008
0009 class G4RadiatorMaterial: public G4Material {
0010 public:
0011 G4RadiatorMaterial(const char *name, double density, unsigned ncomp, double n = 0.0):
0012 G4Material(name, density, ncomp), m_ConstantRefractiveIndex(n), m_RIChOptics(0) {};
0013 ~G4RadiatorMaterial() {};
0014
0015 void SetRIChOptics(g4dRIChOptics *optics) { m_RIChOptics = optics; };
0016 g4dRIChOptics *GetRIChOptics( void ) const { return m_RIChOptics; };
0017
0018 double RefractiveIndex(double energy) const;
0019 double AttenuationLength(double energy) const;
0020
0021 private:
0022
0023 double m_ConstantRefractiveIndex;
0024 g4dRIChOptics *m_RIChOptics;
0025 };
0026
0027 #endif