70 positionRecord =
new G4TrajectoryPointContainer();
79 ParticleName = right.ParticleName;
80 PDGCharge = right.PDGCharge;
81 PDGEncoding = right.PDGEncoding;
82 fTrackID = right.fTrackID;
83 fParentID = right.fParentID;
84 initialKineticEnergy = right.initialKineticEnergy;
85 initialMomentum = right.initialMomentum;
86 positionRecord =
new G4TrajectoryPointContainer();
88 for(std::size_t i=0; i<right.positionRecord->size(); ++i)
98 if (positionRecord !=
nullptr)
100 for(std::size_t i=0; i<positionRecord->size(); ++i)
102 delete (*positionRecord)[i];
104 positionRecord->clear();
105 delete positionRecord;
128 std::map<G4String,G4AttDef>* store
133 (*store)[ID] =
G4AttDef(ID,
"Track ID",
"Physics",
"",
"G4int");
136 (*store)[PID] =
G4AttDef(PID,
"Parent ID",
"Physics",
"",
"G4int");
139 (*store)[PN] =
G4AttDef(PN,
"Particle Name",
"Physics",
"",
"G4String");
142 (*store)[Ch] =
G4AttDef(Ch,
"Charge",
"Physics",
"e+",
"G4double");
145 (*store)[PDG] =
G4AttDef(PDG,
"PDG Encoding",
"Physics",
"",
"G4int");
149 G4AttDef(IKE,
"Initial kinetic energy",
150 "Physics",
"G4BestUnit",
"G4double");
153 (*store)[IMom] =
G4AttDef(IMom,
"Initial momentum",
154 "Physics",
"G4BestUnit",
"G4ThreeVector");
158 G4AttDef(IMag,
"Initial momentum magnitude",
159 "Physics",
"G4BestUnit",
"G4double");
162 (*store)[NTP] =
G4AttDef(NTP,
"No. of points",
"Physics",
"",
"G4int");
170 std::vector<G4AttValue>* values =
new std::vector<G4AttValue>;
178 values->push_back(
G4AttValue(
"PN",ParticleName,
""));
218 if(secondTrajectory ==
nullptr)
return;
222 for(
G4int i=1; i<ent; ++i)
224 positionRecord->push_back((*(seco->positionRecord))[i]);
226 delete (*seco->positionRecord)[0];
227 seco->positionRecord->clear();
G4Allocator< G4Trajectory > *& aTrajectoryAllocator()
G4GLOB_DLL 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 G4int GetPointEntries() const
virtual void ShowTrajectory(std::ostream &os=G4cout) const
virtual void AppendStep(const G4Step *aStep)
virtual void DrawTrajectory() const
virtual void MergeTrajectory(G4VTrajectory *secondTrajectory)
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
virtual std::vector< G4AttValue > * CreateAttValues() const
static G4String ConvertToString(G4bool boolVal)
virtual void ShowTrajectory(std::ostream &os=G4cout) const
virtual void DrawTrajectory() const
std::map< G4String, G4AttDef > * GetInstance(const G4String &storeKey, G4bool &isNew)
#define G4ThreadLocalStatic