#include <G4SmoothTrajectory.hh>
Definition at line 64 of file G4SmoothTrajectory.hh.
◆ G4SmoothTrajectory() [1/3]
G4SmoothTrajectory::G4SmoothTrajectory |
( |
| ) |
|
Definition at line 58 of file G4SmoothTrajectory.cc.
59: positionRecord(0), fTrackID(0), fParentID(0),
60 PDGEncoding( 0 ), PDGCharge(0.0), ParticleName(""),
61 initialKineticEnergy( 0. ), initialMomentum(
G4ThreeVector() )
62{;}
CLHEP::Hep3Vector G4ThreeVector
◆ G4SmoothTrajectory() [2/3]
G4SmoothTrajectory::G4SmoothTrajectory |
( |
const G4Track * |
aTrack | ) |
|
Definition at line 64 of file G4SmoothTrajectory.cc.
65{
75
77
78
79
81}
std::vector< G4VTrajectoryPoint * > TrajectoryPointContainer
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 83 of file G4SmoothTrajectory.cc.
84{
85 ParticleName = right.ParticleName;
86 PDGCharge = right.PDGCharge;
87 PDGEncoding = right.PDGEncoding;
88 fTrackID = right.fTrackID;
89 fParentID = right.fParentID;
90 initialKineticEnergy = right.initialKineticEnergy;
91 initialMomentum = right.initialMomentum;
93
94 for(size_t i=0;i<right.positionRecord->size();i++)
95 {
98 }
99}
◆ ~G4SmoothTrajectory()
G4SmoothTrajectory::~G4SmoothTrajectory |
( |
| ) |
|
|
virtual |
Definition at line 101 of file G4SmoothTrajectory.cc.
102{
103 if (positionRecord) {
104
105 size_t i;
106 for(i=0;i<positionRecord->size();i++){
107 delete (*positionRecord)[i];
108 }
109 positionRecord->clear();
110 delete positionRecord;
111 }
112}
◆ AppendStep()
void G4SmoothTrajectory::AppendStep |
( |
const G4Step * |
aStep | ) |
|
|
virtual |
Implements G4VTrajectory.
Definition at line 218 of file G4SmoothTrajectory.cc.
219{
220
221 positionRecord->push_back(
224}
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 181 of file G4SmoothTrajectory.cc.
182{
183 std::vector<G4AttValue>* values = new std::vector<G4AttValue>;
184
185 values->push_back
187
188 values->push_back
190
191 values->push_back(
G4AttValue(
"PN",ParticleName,
""));
192
193 values->push_back
195
196 values->push_back
198
199 values->push_back
201
202 values->push_back
204
205 values->push_back
207
208 values->push_back
210
211#ifdef G4ATTDEBUG
213#endif
214
215 return values;
216}
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
G4DLLIMPORT std::ostream G4cout
virtual int GetPointEntries() const
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
static G4String ConvertToString(G4bool boolVal)
◆ DrawTrajectory()
void G4SmoothTrajectory::DrawTrajectory |
( |
G4int |
i_mode = 0 | ) |
const |
|
virtual |
◆ GetAttDefs()
Reimplemented from G4VTrajectory.
Definition at line 137 of file G4SmoothTrajectory.cc.
138{
140 std::map<G4String,G4AttDef>* store
142 if (isNew) {
143
145 (*store)[ID] =
G4AttDef(ID,
"Track ID",
"Physics",
"",
"G4int");
146
148 (*store)[PID] =
G4AttDef(PID,
"Parent ID",
"Physics",
"",
"G4int");
149
151 (*store)[PN] =
G4AttDef(PN,
"Particle Name",
"Physics",
"",
"G4String");
152
154 (*store)[Ch] =
G4AttDef(Ch,
"Charge",
"Physics",
"e+",
"G4double");
155
157 (*store)[PDG] =
G4AttDef(PDG,
"PDG Encoding",
"Physics",
"",
"G4int");
158
160 (*store)[IKE] =
161 G4AttDef(IKE,
"Initial kinetic energy",
162 "Physics","G4BestUnit","G4double");
163
165 (*store)[IMom] =
G4AttDef(IMom,
"Initial momentum",
166 "Physics","G4BestUnit","G4ThreeVector");
167
170 (IMag, "Initial momentum magnitude",
171 "Physics","G4BestUnit","G4double");
172
174 (*store)[NTP] =
G4AttDef(NTP,
"No. of points",
"Physics",
"",
"G4int");
175
176 }
177 return store;
178}
std::map< G4String, G4AttDef > * GetInstance(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 int G4SmoothTrajectory::GetPointEntries |
( |
| ) |
const |
|
inlinevirtual |
◆ GetTrackID()
G4int G4SmoothTrajectory::GetTrackID |
( |
| ) |
const |
|
inlinevirtual |
◆ MergeTrajectory()
void G4SmoothTrajectory::MergeTrajectory |
( |
G4VTrajectory * |
secondTrajectory | ) |
|
|
virtual |
Implements G4VTrajectory.
Definition at line 231 of file G4SmoothTrajectory.cc.
232{
233 if(!secondTrajectory) return;
234
237 for(
G4int i=1;i<ent;i++)
238 {
239 positionRecord->push_back((*(seco->positionRecord))[i]);
240
241 }
242 delete (*seco->positionRecord)[0];
243 seco->positionRecord->clear();
244}
◆ operator delete()
void G4SmoothTrajectory::operator delete |
( |
void * |
aTrajectory | ) |
|
|
inline |
Definition at line 149 of file G4SmoothTrajectory.hh.
150{
152}
G4DLLIMPORT G4Allocator< G4SmoothTrajectory > aSmoothTrajectoryAllocator
◆ operator new()
void * G4SmoothTrajectory::operator new |
( |
size_t |
| ) |
|
|
inline |
◆ operator==()
◆ ShowTrajectory()
void G4SmoothTrajectory::ShowTrajectory |
( |
std::ostream & |
os = G4cout | ) |
const |
|
virtual |
The documentation for this class was generated from the following files: