66 positionRecord =
new G4TrajectoryPointContainer();
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;
87 positionRecord =
new G4TrajectoryPointContainer();
89 for (
auto& i : *right.positionRecord) {
97 if (positionRecord !=
nullptr) {
98 for (
auto& i : *positionRecord) {
101 positionRecord->clear();
102 delete positionRecord;
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");
145 (*store)[IKE] =
G4AttDef(IKE,
"Initial kinetic energy",
"Physics",
"G4BestUnit",
"G4double");
148 (*store)[IMom] =
G4AttDef(IMom,
"Initial momentum",
"Physics",
"G4BestUnit",
"G4ThreeVector");
152 G4AttDef(IMag,
"Initial momentum magnitude",
"Physics",
"G4BestUnit",
"G4double");
155 (*store)[NTP] =
G4AttDef(NTP,
"No. of points",
"Physics",
"",
"G4int");
162 auto values =
new std::vector<G4AttValue>;
168 values->push_back(
G4AttValue(
"PN", ParticleName,
""));
202 if (secondTrajectory ==
nullptr)
return;
209 for (
G4int i = 1; i < ent; ++i) {
210 positionRecord->push_back((*(seco->positionRecord))[i]);
212 delete (*seco->positionRecord)[0];
213 seco->positionRecord->clear();
G4Allocator< G4SmoothTrajectory > *& aSmoothTrajectoryAllocator()
G4GLOB_DLL std::ostream G4cout
G4int GetPDGEncoding() const
G4double GetPDGCharge() const
const G4String & GetParticleName() const
static G4ParticleTable * GetParticleTable()
void MergeTrajectory(G4VTrajectory *secondTrajectory) override
G4SmoothTrajectory()=default
void AppendStep(const G4Step *aStep) override
G4int GetPointEntries() const override
std::vector< G4AttValue > * CreateAttValues() const override
void DrawTrajectory() const override
~G4SmoothTrajectory() override
G4ParticleDefinition * GetParticleDefinition()
void ShowTrajectory(std::ostream &os=G4cout) const override
const std::map< G4String, G4AttDef > * GetAttDefs() const override
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 G4int GetPointEntries() const =0
virtual void ShowTrajectory(std::ostream &os=G4cout) const
virtual void DrawTrajectory() const
std::map< G4String, G4AttDef > * GetInstance(const G4String &storeKey, G4bool &isNew)
#define G4ThreadLocalStatic