3 #include <Geant4/G4Track.hh>
4 #include <Geant4/G4VUserTrackInformation.hh>
6 #include <boost/lexical_cast.hpp>
11 namespace PHG4TrackUserInfo
15 if (G4VUserTrackInformation*
p = track->GetUserInformation())
20 pp->SetUserTrackId(usertrackid);
24 std::cout <<
"Unknown UserTrackInformation stored in track number "
25 << boost::lexical_cast<std::string>(track->GetTrackID())
34 track->SetUserInformation(pp);
40 if (G4VUserTrackInformation*
p = track->GetUserInformation())
45 pp->SetUserParentId(userparentid);
49 std::cout <<
"Unknown UserTrackInformation stored in track number "
50 << boost::lexical_cast<std::string>(track->GetTrackID())
59 track->SetUserInformation(pp);
65 if (G4VUserTrackInformation*
p = track->GetUserInformation())
70 pp->SetUserPrimaryId(userprimaryid);
74 std::cout <<
"Unknown UserTrackInformation stored in track number "
75 << boost::lexical_cast<std::string>(track->GetTrackID())
84 track->SetUserInformation(pp);
90 if (G4VUserTrackInformation*
p = track->GetUserInformation())
99 std::cout <<
"Unknown UserTrackInformation stored in track number "
100 << boost::lexical_cast<std::string>(track->GetTrackID())
109 track->SetUserInformation(pp);
115 if (G4VUserTrackInformation*
p = track->GetUserInformation())
124 std::cout <<
"Unknown UserTrackInformation stored in track number "
125 << boost::lexical_cast<std::string>(track->GetTrackID())
134 track->SetUserInformation(pp);
140 if (G4VUserTrackInformation*
p = track->GetUserInformation())
145 pp->SetShower(shower);
149 std::cout <<
"Unknown UserTrackInformation stored in track number "
150 << boost::lexical_cast<std::string>(track->GetTrackID())
159 track->SetUserInformation(pp);