58: positionRecord(0), fTrackID(0), fParentID(0),
59 PDGEncoding( 0 ), PDGCharge(0.0), ParticleName(
""),
60 initialKineticEnergy( 0. ), initialMomentum(
G4ThreeVector() )
80 ParticleName = right.ParticleName;
81 PDGCharge = right.PDGCharge;
82 PDGEncoding = right.PDGEncoding;
83 fTrackID = right.fTrackID;
84 fParentID = right.fParentID;
85 initialKineticEnergy = right.initialKineticEnergy;
86 initialMomentum = right.initialMomentum;
89 for(
size_t i=0;i<right.positionRecord->size();i++)
101 for(i=0;i<positionRecord->size();i++){
102 delete (*positionRecord)[i];
104 positionRecord->clear();
105 delete positionRecord;
135 std::map<G4String,G4AttDef>* store
140 (*store)[ID] =
G4AttDef(ID,
"Track ID",
"Physics",
"",
"G4int");
143 (*store)[PID] =
G4AttDef(PID,
"Parent ID",
"Physics",
"",
"G4int");
146 (*store)[PN] =
G4AttDef(PN,
"Particle Name",
"Physics",
"",
"G4String");
149 (*store)[Ch] =
G4AttDef(Ch,
"Charge",
"Physics",
"e+",
"G4double");
152 (*store)[PDG] =
G4AttDef(PDG,
"PDG Encoding",
"Physics",
"",
"G4int");
156 G4AttDef(IKE,
"Initial kinetic energy",
157 "Physics",
"G4BestUnit",
"G4double");
160 (*store)[IMom] =
G4AttDef(IMom,
"Initial momentum",
161 "Physics",
"G4BestUnit",
"G4ThreeVector");
165 G4AttDef(IMag,
"Initial momentum magnitude",
166 "Physics",
"G4BestUnit",
"G4double");
169 (*store)[NTP] =
G4AttDef(NTP,
"No. of points",
"Physics",
"",
"G4int");
177 std::vector<G4AttValue>* values =
new std::vector<G4AttValue>;
185 values->push_back(
G4AttValue(
"PN",ParticleName,
""));
225 if(!secondTrajectory)
return;
229 for(
G4int i=1;i<ent;i++)
231 positionRecord->push_back((*(seco->positionRecord))[i]);
234 delete (*seco->positionRecord)[0];
235 seco->positionRecord->clear();
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
G4Allocator< G4Trajectory > aTrajectoryAllocator
std::vector< G4VTrajectoryPoint * > TrajectoryPointContainer
G4DLLIMPORT std::ostream G4cout
G4int GetPDGEncoding() const
G4double GetPDGCharge() const
const G4String & GetParticleName() const
static G4ParticleTable * GetParticleTable()
G4StepPoint * GetPostStepPoint() const
const G4ThreeVector & GetPosition() const
G4ThreeVector GetMomentum() const
G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
G4int GetParentID() const
G4ParticleDefinition * GetParticleDefinition()
virtual void DrawTrajectory(G4int i_mode=0) const
virtual void ShowTrajectory(std::ostream &os=G4cout) const
virtual void AppendStep(const G4Step *aStep)
virtual void MergeTrajectory(G4VTrajectory *secondTrajectory)
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
virtual std::vector< G4AttValue > * CreateAttValues() const
virtual int GetPointEntries() const
static G4String ConvertToString(G4bool boolVal)
virtual void ShowTrajectory(std::ostream &os=G4cout) const
virtual void DrawTrajectory(G4int i_mode=0) const
std::map< G4String, G4AttDef > * GetInstance(G4String storeKey, G4bool &isNew)