Back to home page

EIC code displayed by LXR

 
 

    


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

0001 #include "OPTICKS_LOG.hh"
0002 #include "spath.h"
0003 #include "NPFold.h"
0004 
0005 int main(int argc, char** argv)
0006 {
0007     OPTICKS_LOG(argc, argv); 
0008 
0009     const char* base = "$TMP/U4Material_MakePropertyFold" ; 
0010     const char* name = "U4Material" ; 
0011     const char* fold = spath::Resolve(base, name) ; 
0012 
0013     NPFold* mats = NPFold::LoadIfExists(fold) ; 
0014 
0015     LOG_IF(error, mats==nullptr) << " NO NPFold AT " << fold ; 
0016     if( mats == nullptr ) return 0 ; 
0017 
0018     LOG(info) << std::endl << mats->desc_subfold(name) << std::endl ; 
0019     LOG(info) << " fold [" << fold << "]" ; 
0020 
0021     const char* s = "Water" ; 
0022     const NPFold* f = mats->find_subfold(s) ; 
0023     if(!f) return 0 ; 
0024     LOG(info) << " f->desc_subfold(" << s << ")" << std::endl << f->desc() << std::endl ;   
0025 
0026     return 0 ; 
0027 }