Back to home page

EIC code displayed by LXR

 
 

    


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

0001 /**
0002 G4CXSimtraceTest.cc :  based on cx:tests/CSGOptiXSimtraceTest.cc
0003 ==========================================================================
0004 
0005 Canonically used from g4cx/gxt.sh 
0006 
0007 **/
0008 
0009 #include <cuda_runtime.h>
0010 
0011 #include "OPTICKS_LOG.hh"
0012 #include "SEventConfig.hh"
0013 #include "G4CXOpticks.hh"
0014 
0015 int main(int argc, char** argv)
0016 {
0017     OPTICKS_LOG(argc, argv); 
0018 
0019     //LOG(info) << "[ cu first " ; 
0020     cudaDeviceSynchronize(); 
0021     //LOG(info) << "] cu first " ; 
0022 
0023     SEventConfig::SetRGModeSimtrace();   
0024 
0025     G4CXOpticks* cx = G4CXOpticks::SetGeometry() ;  
0026     cx->simtrace(0); 
0027 
0028  
0029     return 0 ; 
0030 }