70 positionRecord =
new G4TrajectoryPointContainer();
87 ParticleName = right.ParticleName;
88 PDGCharge = right.PDGCharge;
89 PDGEncoding = right.PDGEncoding;
90 fTrackID = right.fTrackID;
91 fParentID = right.fParentID;
92 initialKineticEnergy = right.initialKineticEnergy;
93 initialMomentum = right.initialMomentum;
94 positionRecord =
new G4TrajectoryPointContainer();
96 for(std::size_t i=0; i<right.positionRecord->size(); ++i)
108 for(std::size_t i=0; i<positionRecord->size(); ++i)
110 delete (*positionRecord)[i];
112 positionRecord->clear();
113 delete positionRecord;
138 std::map<G4String,G4AttDef>* store
143 (*store)[ID] =
G4AttDef(ID,
"Track ID",
"Physics",
"",
"G4int");
146 (*store)[PID] =
G4AttDef(PID,
"Parent ID",
"Physics",
"",
"G4int");
149 (*store)[PN] =
G4AttDef(PN,
"Particle Name",
"Physics",
"",
"G4String");
152 (*store)[Ch] =
G4AttDef(Ch,
"Charge",
"Physics",
"e+",
"G4double");
155 (*store)[PDG] =
G4AttDef(PDG,
"PDG Encoding",
"Physics",
"",
"G4int");
158 (*store)[IKE] =
G4AttDef(IKE,
"Initial kinetic energy",
159 "Physics",
"G4BestUnit",
"G4double");
162 (*store)[IMom] =
G4AttDef(IMom,
"Initial momentum",
163 "Physics",
"G4BestUnit",
"G4ThreeVector");
166 (*store)[IMag] =
G4AttDef(IMag,
"Initial momentum magnitude",
167 "Physics",
"G4BestUnit",
"G4double");
170 (*store)[NTP] =
G4AttDef(NTP,
"No. of points",
"Physics",
"",
"G4int");
178 std::vector<G4AttValue>* values =
new std::vector<G4AttValue>;
186 values->push_back(
G4AttValue(
"PN",ParticleName,
""));
215 positionRecord->push_back(
227 if(secondTrajectory ==
nullptr)
return;
234 for(
G4int i=1; i<ent; ++i)
236 positionRecord->push_back((*(seco->positionRecord))[i]);
238 delete (*seco->positionRecord)[0];
239 seco->positionRecord->clear();
G4Allocator< G4SmoothTrajectory > *& aSmoothTrajectoryAllocator()
G4GLOB_DLL std::ostream G4cout
G4int GetPDGEncoding() const
G4double GetPDGCharge() const
const G4String & GetParticleName() const
static G4ParticleTable * GetParticleTable()
virtual void DrawTrajectory() const
virtual G4int GetPointEntries() const
virtual ~G4SmoothTrajectory()
virtual void AppendStep(const G4Step *aStep)
G4ParticleDefinition * GetParticleDefinition()
virtual void MergeTrajectory(G4VTrajectory *secondTrajectory)
virtual std::vector< G4AttValue > * CreateAttValues() const
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
virtual void ShowTrajectory(std::ostream &os=G4cout) const
const G4ThreeVector & GetPosition() const
std::vector< G4ThreeVector > * GetPointerToVectorOfAuxiliaryPoints() const
G4StepPoint * GetPostStepPoint() const
const G4ThreeVector & GetPosition() const
G4ThreeVector GetMomentum() const
G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
G4int GetParentID() 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