CMS 3D CMS Logo

/data/git/CMSSW_5_3_11_patch5/src/SimG4Core/Notification/interface/NewTrackAction.h

Go to the documentation of this file.
00001 #ifndef SimG4Core_NewTrackAction_H
00002 #define SimG4Core_NewTrackAction_H
00003 
00004 class G4Track;
00005 class TrackInformation;
00006 
00014 class NewTrackAction {
00015 
00016 public:
00017   NewTrackAction();
00018   void primary(const G4Track * aSecondary) const;
00019   void primary(G4Track * aSecondary) const;
00020   void secondary(const G4Track * aSecondary,const G4Track & mother, int) const;
00021   void secondary(G4Track * aSecondary,const G4Track & mother, int) const;
00022 private:
00023   void addUserInfoToPrimary(G4Track * aTrack) const;
00024   void addUserInfoToSecondary(G4Track * aTrack, 
00025                               const TrackInformation & motherInfo, int) const;
00026 };
00027 
00028 #endif