// This code implementation is the intellectual property of // the RD44 GEANT4 collaboration. // // By copying, distributing or modifying the Program (or any work // based on the Program) you indicate your acceptance of this statement, // and all its terms. // // $Id: G4Track.cc,v 1.1 1999/01/07 16:14:27 gunter Exp $ // GEANT4 tag $Name: geant4-00-01 $ // // //--------------------------------------------------------------- // // G4Track.cc // // Contact: // Questions and comments to this code should be sent to // Katsuya Amako (e-mail: Katsuya.Amako@kek.jp) // Takashi Sasaki (e-mail: Takashi.Sasaki@kek.jp) // //--------------------------------------------------------------- #include "G4Track.hh" G4Allocator aTrackAllocator; /////////////////////////////////////////////////////////// G4Track::G4Track(G4DynamicParticle* apValueDynamicParticle, G4double aValueTime, const G4ThreeVector& aValuePosition) /////////////////////////////////////////////////////////// { fpDynamicParticle = apValueDynamicParticle; fCurrentStepNumber = 0; fGlobalTime = aValueTime; fLocalTime = 0.; fTrackLength = 0.; fPosition = aValuePosition; fpTouchable = 0; fpNextTouchable = 0; fpLVAtVertex = 0; fpCreatorProcess = 0; fTrackStatus = fAlive; fBelowThreshold = false; fGoodForTracking = false; fWeight = 1.0; } ////////////////// G4Track::G4Track() ////////////////// { fCurrentStepNumber = 0; fGlobalTime = 0.; fLocalTime = 0.; fTrackLength = 0.; fParentID = 0; fTrackID = 0; fpTouchable = 0; fpNextTouchable = 0; fpDynamicParticle = 0; fpLVAtVertex = 0; fpCreatorProcess = 0; fTrackStatus = fAlive; fBelowThreshold = false; fGoodForTracking = false; fWeight = 1.0; } /////////////////// G4Track::~G4Track() /////////////////// { delete fpDynamicParticle; }