3 #include <Geant4/G4Track.hh>
4 #include <boost/lexical_cast.hpp>
10 if ( G4VUserTrackInformation* p = track->GetUserInformation() ) {
13 pp->SetUserTrackId(usertrackid);
15 std::cout <<
"Unknown UserTrackInformation stored in track number "
16 << boost::lexical_cast<std::string>(track->GetTrackID())
23 track->SetUserInformation(pp);
29 if ( G4VUserTrackInformation* p = track->GetUserInformation() ) {
32 pp->SetUserParentId(userparentid);
34 std::cout <<
"Unknown UserTrackInformation stored in track number "
35 << boost::lexical_cast<std::string>(track->GetTrackID())
42 track->SetUserInformation(pp);
48 if ( G4VUserTrackInformation* p = track->GetUserInformation() ) {
51 pp->SetUserPrimaryId(userprimaryid);
53 std::cout <<
"Unknown UserTrackInformation stored in track number "
54 << boost::lexical_cast<std::string>(track->GetTrackID())
61 track->SetUserInformation(pp);
67 if ( G4VUserTrackInformation* p = track->GetUserInformation() )
76 std::cout <<
"Unknown UserTrackInformation stored in track number "
77 << boost::lexical_cast<std::string>(track->GetTrackID())
86 track->SetUserInformation(pp);
91 void SetKeep(G4Track* track,
const int trkid)
93 if ( G4VUserTrackInformation* p = track->GetUserInformation() )
102 std::cout <<
"Unknown UserTrackInformation stored in track number "
103 << boost::lexical_cast<std::string>(track->GetTrackID())
112 track->SetUserInformation(pp);
119 if ( G4VUserTrackInformation* p = track->GetUserInformation() )
124 pp->SetShower(shower);
128 std::cout <<
"Unknown UserTrackInformation stored in track number "
129 << boost::lexical_cast<std::string>(track->GetTrackID())
138 track->SetUserInformation(pp);
void SetUserTrackId(const int val)
void SetShower(PHG4Shower *ptr)
void SetUserParentId(const int val)
void SetUserPrimaryId(const int val)
void SetKeep(const int val)
void SetWanted(const int val)
void SetUserPrimaryId(G4Track *track, const int userprimaryid)
void SetWanted(G4Track *track, const int trkid)
void SetShower(G4Track *track, PHG4Shower *shower)
void SetUserTrackId(G4Track *track, const int usertrackid)
void SetKeep(G4Track *track, const int trkid)
void SetUserParentId(G4Track *track, const int userparentid)