File indexing completed on 2026-04-10 07:50:27
0001 #include "ssys.h"
0002 #include "G4VSolid.hh"
0003 #include "U4Mesh.h"
0004 #include "PMTSim.hh"
0005
0006 int main()
0007 {
0008 const char* GEOM = ssys::getenvvar("GEOM","NoGEOM") ;
0009 G4VSolid* solid = PMTSim::GetSolid(GEOM);
0010 std::string desc = PMTSim::Desc(GEOM);
0011 if(solid == nullptr) return 1 ;
0012 G4cout << *solid << std::endl ;
0013
0014 NPFold* fold = U4Mesh::Serialize(solid) ;
0015 fold->set_meta<std::string>("GEOM",GEOM);
0016 fold->set_meta<std::string>("desc",desc);
0017 fold->save("$FOLD");
0018 return 0 ;
0019 };
0020