Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:49:06

0001 
0002 #include "OPTICKS_LOG.hh"
0003 #include "ssys.h"
0004 #include "spath.h"
0005 #include "scuda.h"
0006 #include "NP.hh"
0007 #include "QScint.hh"
0008 
0009 void test_check(QScint& sc)
0010 {
0011     sc.check(); 
0012 }
0013 
0014 void test_lookup(QScint& sc)
0015 {
0016     NP* dst = sc.lookup(); 
0017     dst->save("$TMP/QScintTest/dst.npy"); 
0018     sc.src->save("$TMP/QScintTest/src.npy") ; 
0019 }
0020 
0021 int main(int argc, char** argv)
0022 {
0023     OPTICKS_LOG(argc, argv); 
0024 
0025     const char* path = spath::Resolve("$HOME/.opticks/GEOM/$GEOM/CSGFoundry/SSim/stree/standard/icdf.npy" ); 
0026     NP* icdf = NP::LoadIfExists(path); 
0027 
0028     LOG(info) 
0029         << " path " << path 
0030         << " icdf " << ( icdf ? icdf->sstr() : "-" )
0031         ; 
0032 
0033     if(icdf == nullptr) return 0 ; 
0034 
0035     unsigned hd_factor = 0u ; 
0036     QScint sc(icdf, hd_factor);     // uploads reemission texture  
0037 
0038     test_lookup(sc); 
0039     //test_check(sc); 
0040 
0041     return 0 ; 
0042 }
0043