#include <G4Trajectory.hh>
Definition at line 69 of file G4Trajectory.hh.
◆ G4Trajectory() [1/3]
G4Trajectory::G4Trajectory |
( |
| ) |
|
Definition at line 57 of file G4Trajectory.cc.
58: positionRecord(0), fTrackID(0), fParentID(0),
59 PDGEncoding( 0 ), PDGCharge(0.0), ParticleName(""),
60 initialKineticEnergy( 0. ), initialMomentum(
G4ThreeVector() )
61{;}
CLHEP::Hep3Vector G4ThreeVector
◆ G4Trajectory() [2/3]
Definition at line 63 of file G4Trajectory.cc.
64{
74
76}
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
◆ G4Trajectory() [3/3]
Definition at line 78 of file G4Trajectory.cc.
79{
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;
88
89 for(size_t i=0;i<right.positionRecord->size();i++)
90 {
93 }
94}
◆ ~G4Trajectory()
G4Trajectory::~G4Trajectory |
( |
| ) |
|
|
virtual |
Definition at line 96 of file G4Trajectory.cc.
97{
98 if (positionRecord) {
99
100 size_t i;
101 for(i=0;i<positionRecord->size();i++){
102 delete (*positionRecord)[i];
103 }
104 positionRecord->clear();
105 delete positionRecord;
106 }
107}
◆ AppendStep()
◆ CreateAttValues()
std::vector< G4AttValue > * G4Trajectory::CreateAttValues |
( |
| ) |
const |
|
virtual |
Reimplemented from G4VTrajectory.
Reimplemented in G4RichTrajectory.
Definition at line 175 of file G4Trajectory.cc.
176{
177 std::vector<G4AttValue>* values = new std::vector<G4AttValue>;
178
179 values->push_back
181
182 values->push_back
184
185 values->push_back(
G4AttValue(
"PN",ParticleName,
""));
186
187 values->push_back
189
190 values->push_back
192
193 values->push_back
195
196 values->push_back
198
199 values->push_back
201
202 values->push_back
204
205#ifdef G4ATTDEBUG
207#endif
208
209 return values;
210}
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
G4DLLIMPORT std::ostream G4cout
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
virtual int GetPointEntries() const
static G4String ConvertToString(G4bool boolVal)
Referenced by G4RichTrajectory::CreateAttValues().
◆ DrawTrajectory()
void G4Trajectory::DrawTrajectory |
( |
G4int |
i_mode = 0 | ) |
const |
|
virtual |
◆ GetAttDefs()
Reimplemented from G4VTrajectory.
Reimplemented in G4RichTrajectory.
Definition at line 132 of file G4Trajectory.cc.
133{
135 std::map<G4String,G4AttDef>* store
137 if (isNew) {
138
140 (*store)[ID] =
G4AttDef(ID,
"Track ID",
"Physics",
"",
"G4int");
141
143 (*store)[PID] =
G4AttDef(PID,
"Parent ID",
"Physics",
"",
"G4int");
144
146 (*store)[PN] =
G4AttDef(PN,
"Particle Name",
"Physics",
"",
"G4String");
147
149 (*store)[Ch] =
G4AttDef(Ch,
"Charge",
"Physics",
"e+",
"G4double");
150
152 (*store)[PDG] =
G4AttDef(PDG,
"PDG Encoding",
"Physics",
"",
"G4int");
153
155 (*store)[IKE] =
156 G4AttDef(IKE,
"Initial kinetic energy",
157 "Physics","G4BestUnit","G4double");
158
160 (*store)[IMom] =
G4AttDef(IMom,
"Initial momentum",
161 "Physics","G4BestUnit","G4ThreeVector");
162
164 (*store)[IMag] =
165 G4AttDef(IMag,
"Initial momentum magnitude",
166 "Physics","G4BestUnit","G4double");
167
169 (*store)[NTP] =
G4AttDef(NTP,
"No. of points",
"Physics",
"",
"G4int");
170
171 }
172 return store;
173}
std::map< G4String, G4AttDef > * GetInstance(G4String storeKey, G4bool &isNew)
Referenced by CreateAttValues(), G4RichTrajectory::GetAttDefs(), G4VisCommandList::SetNewValue(), and G4VisCommandSceneAddTrajectories::SetNewValue().
◆ GetCharge()
G4double G4Trajectory::GetCharge |
( |
| ) |
const |
|
inlinevirtual |
◆ GetInitialKineticEnergy()
G4double G4Trajectory::GetInitialKineticEnergy |
( |
| ) |
const |
|
inline |
◆ GetInitialMomentum()
◆ GetParentID()
G4int G4Trajectory::GetParentID |
( |
| ) |
const |
|
inlinevirtual |
◆ GetParticleDefinition()
Definition at line 218 of file G4Trajectory.cc.
219{
221}
static G4ParticleTable * GetParticleTable()
◆ GetParticleName()
G4String G4Trajectory::GetParticleName |
( |
| ) |
const |
|
inlinevirtual |
◆ GetPDGEncoding()
G4int G4Trajectory::GetPDGEncoding |
( |
| ) |
const |
|
inlinevirtual |
◆ GetPoint()
◆ GetPointEntries()
virtual int G4Trajectory::GetPointEntries |
( |
| ) |
const |
|
inlinevirtual |
◆ GetTrackID()
G4int G4Trajectory::GetTrackID |
( |
| ) |
const |
|
inlinevirtual |
◆ MergeTrajectory()
void G4Trajectory::MergeTrajectory |
( |
G4VTrajectory * |
secondTrajectory | ) |
|
|
virtual |
Implements G4VTrajectory.
Reimplemented in G4RichTrajectory.
Definition at line 223 of file G4Trajectory.cc.
224{
225 if(!secondTrajectory) return;
226
229 for(
G4int i=1;i<ent;i++)
230 {
231 positionRecord->push_back((*(seco->positionRecord))[i]);
232
233 }
234 delete (*seco->positionRecord)[0];
235 seco->positionRecord->clear();
236}
◆ operator delete()
void G4Trajectory::operator delete |
( |
void * |
aTrajectory | ) |
|
|
inline |
Definition at line 150 of file G4Trajectory.hh.
151{
153}
G4DLLIMPORT G4Allocator< G4Trajectory > aTrajectoryAllocator
◆ operator new()
void * G4Trajectory::operator new |
( |
size_t |
| ) |
|
|
inline |
Definition at line 143 of file G4Trajectory.hh.
144{
145 void* aTrajectory;
147 return aTrajectory;
148}
◆ operator==()
◆ ShowTrajectory()
void G4Trajectory::ShowTrajectory |
( |
std::ostream & |
os = G4cout | ) |
const |
|
virtual |
Reimplemented from G4VTrajectory.
Definition at line 109 of file G4Trajectory.cc.
110{
111
113
114}
virtual void ShowTrajectory(std::ostream &os=G4cout) const
The documentation for this class was generated from the following files: