Back to home page

EIC code displayed by LXR

 
 

    


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

0001 /**
0002 U4NistManagerTest.cc
0003 =====================
0004 
0005 ::
0006 
0007     G4_WATER
0008     G4_AIR
0009     G4_CONCRETE
0010     G4_Pb
0011 
0012 ::
0013 
0014     cd /usr/local/opticks_externals/g4_1042.build/geant4.10.04.p02/examples
0015     find . -type f -exec grep -H FindOrBuildMaterial {} \;
0016 
0017 
0018 **/
0019 
0020 #include "U4NistManager.h"
0021 
0022 int main(int argc, char** argv)
0023 {
0024     const char* name = argc > 1 ? argv[1] : "G4_WATER" ; 
0025     std::cout << ( name ? name : "-" ) << std::endl ; 
0026 
0027     G4Material* mat  = U4NistManager::GetMaterial(name) ; 
0028     if(!mat) return 1 ;
0029 
0030     G4cout << *mat ; 
0031 
0032     G4MaterialPropertiesTable* mpt = mat->GetMaterialPropertiesTable() ; 
0033  
0034     std::cout << " mpt " << ( mpt ? "YES" : "NO " ) << std::endl ; 
0035 
0036 
0037     return 0 ;
0038 }