File indexing completed on 2026-04-10 07:49:32
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #include "OPTICKS_LOG.hh"
0018 #include "SEvt.hh"
0019 #include "CSGOptiXService.h"
0020
0021 int main(int argc, char** argv)
0022 {
0023 OPTICKS_LOG(argc, argv);
0024
0025 CSGOptiXService cxs ;
0026
0027
0028 NP* gs = nullptr ;
0029 int eventID = 0 ;
0030
0031
0032
0033 {
0034 SEvt* sev = SEvt::Get_EGPU();
0035 sev->setIndex(eventID);
0036
0037
0038 gs = sev->createInputGenstep_configured();
0039 }
0040
0041 assert( gs );
0042 gs->set_meta<int>("eventID", eventID );
0043
0044
0045 std::cout << "gs: " << ( gs ? gs->sstr() : "-" ) << "\n" ;
0046
0047 NP* ht = cxs.simulate(gs, eventID );
0048
0049 std::cout << "ht: " << ( ht ? ht->sstr() : "-" ) << "\n" ;
0050
0051 return 0 ;
0052 }