Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-10 07:50:28

0001 
0002 #include "spho.h"
0003 #include "STrackInfo.h"
0004 
0005 #include "U4Track.h"
0006 
0007 int main(int argc, char** argv)
0008 {
0009     G4Track* track = U4Track::MakePhoton();
0010     spho p0 = {1, 2, 3, {0,0,0,0}} ;
0011 
0012     STrackInfo::Set(track, p0 );
0013 
0014     const G4Track* ctrack = track ;
0015     std::cout << U4Track::Desc(ctrack) << std::endl ;
0016 
0017 
0018     spho* p2 = STrackInfo::GetRef(ctrack);
0019     assert( p2->isIdentical(p0) );
0020     std::cout << U4Track::Desc(ctrack) << std::endl ;
0021 
0022 
0023     p2->uc4.w = 'Z' ;
0024     std::cout << U4Track::Desc(ctrack) << std::endl ;
0025 
0026 
0027     return 0 ;
0028 }