Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-10 07:50:34

0001 #pragma once
0002 /**
0003 U4SurfaceType.h
0004 =================
0005 
0006 g4-cls G4SurfaceProperty
0007 
0008 **/
0009 
0010 struct U4SurfaceType
0011 {
0012     static constexpr const char* dielectric_metal_ = "dielectric_metal"  ; 
0013     static constexpr const char* dielectric_dielectric_ = "dielectric_dielectric" ; 
0014     static constexpr const char* dielectric_LUT_ = "dielectric_LUT" ;            
0015     static constexpr const char* dielectric_LUTDAVIS_ = "dielectric_LUTDAVIS" ;      
0016     static constexpr const char* dielectric_dichroic_ = "dielectric_dichroic" ;     
0017     static constexpr const char* firsov_ = "firsov" ;                 
0018     static constexpr const char* x_ray_ = "x_ray" ;                  
0019 
0020     static const char* Name(unsigned type); 
0021 };
0022 
0023 inline const char* U4SurfaceType::Name(unsigned type)
0024 {
0025     const char* s = nullptr ; 
0026     switch(type)
0027     {
0028         case dielectric_metal:      s = dielectric_metal_      ; break ; 
0029         case dielectric_dielectric: s = dielectric_dielectric_ ; break ; 
0030         case dielectric_LUT:        s = dielectric_LUT_        ; break ; 
0031         case dielectric_LUTDAVIS:   s = dielectric_LUTDAVIS_   ; break ; 
0032         case dielectric_dichroic:   s = dielectric_dichroic_   ; break ; 
0033         case firsov:                s = firsov_                ; break ;  
0034         case x_ray:                 s = x_ray_                 ; break ;  
0035     }
0036     return s ;   
0037 }