58 : positionRecord(0), fTrackID(0), fParentID(0),
59 PDGEncoding( 0 ), PDGCharge(0.0), ParticleName(
""),
60 initialKineticEnergy( 0. ), initialMomentum(
G4ThreeVector() )
101 delete (*positionRecord)[i];
125 std::map<G4String,G4AttDef>* store
130 (*store)[ID] =
G4AttDef(ID,
"Track ID",
"Physics",
"",
"G4int");
133 (*store)[PID] =
G4AttDef(PID,
"Parent ID",
"Physics",
"",
"G4int");
136 (*store)[PN] =
G4AttDef(PN,
"Particle Name",
"Physics",
"",
"G4String");
139 (*store)[Ch] =
G4AttDef(Ch,
"Charge",
"Physics",
"e+",
"G4double");
142 (*store)[PDG] =
G4AttDef(PDG,
"PDG Encoding",
"Physics",
"",
"G4int");
146 G4AttDef(IKE,
"Initial kinetic energy",
147 "Physics",
"G4BestUnit",
"G4double");
150 (*store)[IMom] =
G4AttDef(IMom,
"Initial momentum",
151 "Physics",
"G4BestUnit",
"G4ThreeVector");
155 G4AttDef(IMag,
"Initial momentum magnitude",
156 "Physics",
"G4BestUnit",
"G4double");
159 (*store)[NTP] =
G4AttDef(NTP,
"No. of points",
"Physics",
"",
"G4int");
167 std::vector<G4AttValue>* values =
new std::vector<G4AttValue>;
215 if(!secondTrajectory)
return;
219 for(
G4int i=1;i<ent;i++)
G4ParticleDefinition * GetDefinition() const
G4int GetParentID() const
TrajectoryPointContainer * positionRecord
CLHEP::Hep3Vector G4ThreeVector
std::vector< G4VTrajectoryPoint * > TrajectoryPointContainer
const G4ThreeVector & GetPosition() const
static G4String ConvertToString(G4bool boolVal)
G4int GetPDGEncoding() const
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
G4double initialKineticEnergy
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
const G4String & GetParticleName() const
virtual void DrawTrajectory() const
virtual int GetPointEntries() const
G4double GetKineticEnergy() const
virtual void ShowTrajectory(std::ostream &os=G4cout) const
G4GLOB_DLL std::ostream G4cout
G4ThreeVector initialMomentum
virtual std::vector< G4AttValue > * CreateAttValues() const
G4ThreeVector GetMomentum() const
static G4ParticleTable * GetParticleTable()
virtual void DrawTrajectory() const
G4ThreadLocal G4Allocator< G4Trajectory > * aTrajectoryAllocator
G4StepPoint * GetPostStepPoint() const
virtual void AppendStep(const G4Step *aStep)
std::map< G4String, G4AttDef > * GetInstance(const G4String &storeKey, G4bool &isNew)
G4ParticleDefinition * GetParticleDefinition()
virtual void ShowTrajectory(std::ostream &os=G4cout) const
G4double GetPDGCharge() const
virtual void MergeTrajectory(G4VTrajectory *secondTrajectory)