Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:48:53

0001 /**
0002 CSGPrimTest.cc
0003 =================
0004 
0005 NB to control which geometry is loaded invoke this executable via the CSGPrimTest.sh script::
0006 
0007     epsilon:CSG blyth$ ./CSGPrimTest.sh remote | grep bnd:31
0008       pri:3090     lpr:1   gas:1 msh:120  bnd:31   nno:1 nod:23210 ce (      0.00,      0.00,      4.06,     24.00) meshName PMT_3inch_body_solid_ell_ell_helper bndName   Water///Pyrex
0009       pri:3097     lpr:3   gas:2 msh:116  bnd:31   nno:1 nod:23243 ce (      0.00,      0.00,      5.39,    184.00) meshName NNVTMCPPMT_PMT_20inch_pmt_solid_head bndName   Water///Pyrex
0010       pri:3104     lpr:3   gas:3 msh:109  bnd:31  nno:15 nod:23276 ce (      0.00,      0.00,      8.39,    254.00) meshName HamamatsuR12860_PMT_20inch_pmt_solid_1_4 bndName   Water///Pyrex
0011       pri:3109     lpr:2   gas:4 msh:133  bnd:31   nno:3 nod:23307 ce (      0.00,      0.00,     87.00,    254.00) meshName PMT_20inch_veto_pmt_solid_1_2 bndName   Water///Pyrex
0012     epsilon:CSG blyth$ 
0013     epsilon:CSG blyth$ 
0014 
0015 
0016 
0017 **/
0018 
0019 #include "SSys.hh"
0020 #include "SSim.hh"
0021 #include "scuda.h"
0022 #include "CSGFoundry.h"
0023 
0024 #include "OPTICKS_LOG.hh"
0025 
0026 int main(int argc, char** argv)
0027 {
0028     OPTICKS_LOG(argc, argv); 
0029 
0030     SSim::Create(); 
0031 
0032     CSGFoundry* fd = CSGFoundry::Load(); 
0033 
0034     LOG(info) << "fd.desc" << fd->desc() ; 
0035     LOG(info) << "fd.summary" ; 
0036     fd->summary(); 
0037 
0038     LOG(info) << "fd.detailPrim" << std::endl << fd->detailPrim() ; 
0039 
0040     return 0 ; 
0041 }
0042