#include <G4SmoothTrajectory.hh>
Definition at line 63 of file G4SmoothTrajectory.hh.
◆ G4SmoothTrajectory() [1/3]
G4SmoothTrajectory::G4SmoothTrajectory |
( |
| ) |
|
◆ G4SmoothTrajectory() [2/3]
G4SmoothTrajectory::G4SmoothTrajectory |
( |
const G4Track * |
aTrack | ) |
|
Definition at line 60 of file G4SmoothTrajectory.cc.
61{
70 positionRecord = new G4TrajectoryPointContainer();
71
72
73
74 positionRecord
76
77
78
79
80 positionRecord
82}
G4int GetPDGEncoding() const
G4double GetPDGCharge() const
const G4String & GetParticleName() const
const G4ThreeVector & GetPosition() const
G4ThreeVector GetMomentum() const
G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
G4int GetParentID() const
◆ G4SmoothTrajectory() [3/3]
Definition at line 84 of file G4SmoothTrajectory.cc.
86{
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();
95
96 for(std::size_t i=0; i<right.positionRecord->size(); ++i)
97 {
101 }
102}
◆ ~G4SmoothTrajectory()
G4SmoothTrajectory::~G4SmoothTrajectory |
( |
| ) |
|
|
virtual |
Definition at line 104 of file G4SmoothTrajectory.cc.
105{
106 if (positionRecord)
107 {
108 for(std::size_t i=0; i<positionRecord->size(); ++i)
109 {
110 delete (*positionRecord)[i];
111 }
112 positionRecord->clear();
113 delete positionRecord;
114 }
115}
◆ AppendStep()
void G4SmoothTrajectory::AppendStep |
( |
const G4Step * |
aStep | ) |
|
|
virtual |
Implements G4VTrajectory.
Definition at line 213 of file G4SmoothTrajectory.cc.
214{
215 positionRecord->push_back(
218}
const G4ThreeVector & GetPosition() const
std::vector< G4ThreeVector > * GetPointerToVectorOfAuxiliaryPoints() const
G4StepPoint * GetPostStepPoint() const
◆ CreateAttValues()
std::vector< G4AttValue > * G4SmoothTrajectory::CreateAttValues |
( |
| ) |
const |
|
virtual |
Reimplemented from G4VTrajectory.
Definition at line 176 of file G4SmoothTrajectory.cc.
177{
178 std::vector<G4AttValue>* values = new std::vector<G4AttValue>;
179
180 values->push_back
182
183 values->push_back
185
186 values->push_back(
G4AttValue(
"PN",ParticleName,
""));
187
188 values->push_back
190
191 values->push_back
193
194 values->push_back
196
197 values->push_back
199
200 values->push_back
202
203 values->push_back
205
206#ifdef G4ATTDEBUG
208#endif
209
210 return values;
211}
G4GLOB_DLL std::ostream G4cout
virtual G4int GetPointEntries() const
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
static G4String ConvertToString(G4bool boolVal)
◆ DrawTrajectory()
void G4SmoothTrajectory::DrawTrajectory |
( |
| ) |
const |
|
virtual |
◆ GetAttDefs()
Reimplemented from G4VTrajectory.
Definition at line 135 of file G4SmoothTrajectory.cc.
136{
138 std::map<G4String,G4AttDef>* store
140 if (isNew)
141 {
143 (*store)[ID] =
G4AttDef(ID,
"Track ID",
"Physics",
"",
"G4int");
144
146 (*store)[PID] =
G4AttDef(PID,
"Parent ID",
"Physics",
"",
"G4int");
147
149 (*store)[PN] =
G4AttDef(PN,
"Particle Name",
"Physics",
"",
"G4String");
150
152 (*store)[Ch] =
G4AttDef(Ch,
"Charge",
"Physics",
"e+",
"G4double");
153
155 (*store)[PDG] =
G4AttDef(PDG,
"PDG Encoding",
"Physics",
"",
"G4int");
156
158 (*store)[IKE] =
G4AttDef(IKE,
"Initial kinetic energy",
159 "Physics","G4BestUnit","G4double");
160
162 (*store)[IMom] =
G4AttDef(IMom,
"Initial momentum",
163 "Physics","G4BestUnit","G4ThreeVector");
164
166 (*store)[IMag] =
G4AttDef(IMag,
"Initial momentum magnitude",
167 "Physics","G4BestUnit","G4double");
168
170 (*store)[NTP] =
G4AttDef(NTP,
"No. of points",
"Physics",
"",
"G4int");
171 }
172 return store;
173}
std::map< G4String, G4AttDef > * GetInstance(const G4String &storeKey, G4bool &isNew)
Referenced by CreateAttValues(), G4VisCommandList::SetNewValue(), and G4VisCommandSceneAddTrajectories::SetNewValue().
◆ GetCharge()
G4double G4SmoothTrajectory::GetCharge |
( |
| ) |
const |
|
inlinevirtual |
◆ GetInitialKineticEnergy()
G4double G4SmoothTrajectory::GetInitialKineticEnergy |
( |
| ) |
const |
|
inline |
◆ GetInitialMomentum()
◆ GetParentID()
G4int G4SmoothTrajectory::GetParentID |
( |
| ) |
const |
|
inlinevirtual |
◆ GetParticleDefinition()
◆ GetParticleName()
G4String G4SmoothTrajectory::GetParticleName |
( |
| ) |
const |
|
inlinevirtual |
◆ GetPDGEncoding()
G4int G4SmoothTrajectory::GetPDGEncoding |
( |
| ) |
const |
|
inlinevirtual |
◆ GetPoint()
◆ GetPointEntries()
virtual G4int G4SmoothTrajectory::GetPointEntries |
( |
| ) |
const |
|
inlinevirtual |
◆ GetTrackID()
G4int G4SmoothTrajectory::GetTrackID |
( |
| ) |
const |
|
inlinevirtual |
◆ MergeTrajectory()
void G4SmoothTrajectory::MergeTrajectory |
( |
G4VTrajectory * |
secondTrajectory | ) |
|
|
virtual |
Implements G4VTrajectory.
Definition at line 225 of file G4SmoothTrajectory.cc.
226{
227 if(secondTrajectory == nullptr) return;
228
231
232
233
234 for(
G4int i=1; i<ent; ++i)
235 {
236 positionRecord->push_back((*(seco->positionRecord))[i]);
237 }
238 delete (*seco->positionRecord)[0];
239 seco->positionRecord->clear();
240}
◆ operator delete()
void G4SmoothTrajectory::operator delete |
( |
void * |
aTrajectory | ) |
|
|
inline |
Definition at line 142 of file G4SmoothTrajectory.hh.
143{
145}
G4TRACKING_DLL G4Allocator< G4SmoothTrajectory > *& aSmoothTrajectoryAllocator()
◆ operator new()
void * G4SmoothTrajectory::operator new |
( |
size_t |
| ) |
|
|
inline |
◆ operator=()
◆ operator==()
◆ ShowTrajectory()
void G4SmoothTrajectory::ShowTrajectory |
( |
std::ostream & |
os = G4cout | ) |
const |
|
virtual |
The documentation for this class was generated from the following files: