Back to home page

EIC code displayed by LXR

 
 

    


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

0001 #include "SEvt.hh"
0002 
0003 int main()
0004 {
0005     SEvt* sev = SEvt::Create_EGPU();
0006 
0007     sev->setIndex(0); // needed for config of num photon in the genstep to work
0008 
0009     NP* gs = sev->createInputGenstep_configured();
0010     std::cout << "gs: " << ( gs ? gs->sstr() : "-" ) << "\n" ;
0011 
0012     std::cout << "gs.repr<int>\n"   << ( gs ? gs->repr<int>()   : "-" ) << "\n" ;
0013     std::cout << "gs.repr<float>\n" << ( gs ? gs->repr<float>() : "-" ) << "\n" ;
0014 
0015     gs->save("$FOLD/gs.npy");
0016 
0017     return 0;
0018 }