File indexing completed on 2026-04-09 07:49:20
0001
0002 #include "NP.hh"
0003 #include "SPrd.h"
0004
0005 int main(int argc, char** argv)
0006 {
0007 const char* base = "$HOME/.opticks/GEOM/$GEOM/CSGFoundry/SSim/stree/standard" ;
0008 const NP* bnd = NP::Load(base,"bnd.npy");
0009 SPrd* sprd = new SPrd(bnd) ;
0010 std::cout << sprd->desc() ;
0011
0012 unsigned num_photon = 8 ;
0013 unsigned num_bounce = 6 ;
0014 NP* prd = sprd->mock_prd(num_photon, num_bounce);
0015
0016 prd->dump();
0017 prd->save("$FOLD/prd.npy");
0018
0019 return 0 ;
0020 }