#include <Doxymodules_runAndEvent.h>
Definition at line 38 of file Doxymodules_runAndEvent.h.
◆ RE01Trajectory()
RE01Trajectory::RE01Trajectory |
( |
const G4Track * |
aTrack | ) |
|
Definition at line 52 of file RE01Trajectory.cc.
55{
61 {
63 if(pp)
64 {
65 if(pp->GetCharge()<DBL_MAX)
fPDGCharge = pp->GetCharge();
67 if(pp->GetG4code()!=0)
68 {
71 }
72 }
73 }
82 else
89}
std::vector< G4VTrajectoryPoint * > RE01TrajectoryPointContainer
G4ThreeVector fVertexPosition
RE01TrajectoryPointContainer * fPositionRecord
G4ParticleDefinition * fParticleDefinition
◆ ~RE01Trajectory()
RE01Trajectory::~RE01Trajectory |
( |
| ) |
|
|
virtual |
Definition at line 92 of file RE01Trajectory.cc.
93{
94 size_t i;
96 delete (*fPositionRecord)[i];
97 }
99
101}
◆ ShowTrajectory()
void RE01Trajectory::ShowTrajectory |
( |
std::ostream & |
os = G4cout | ) |
const |
|
virtual |
Definition at line 104 of file RE01Trajectory.cc.
105{
106 os << G4endl <<
"TrackID =" <<
fTrackID
110 os << "Original momentum : " <<
115 << " points." << G4endl;
116
120 os << "Point[" << i << "]"
121 << " Position= " << aTrajectoryPoint->GetPosition() << G4endl;
122 }
123}
◆ DrawTrajectory()
void RE01Trajectory::DrawTrajectory |
( |
| ) |
const |
|
virtual |
Definition at line 126 of file RE01Trajectory.cc.
127{
128
129 G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
130 G4ThreeVector pos;
131
136 pos = aTrajectoryPoint->GetPosition();
137 pPolyline.push_back( pos );
138 }
139
150 {
153 else
155 }
157 {
160 else
162 }
163
165 pPolyline.SetVisAttributes(attribs);
166 if(pVVisManager) pVVisManager->Draw(pPolyline);
167}
◆ GetAttDefs()
Definition at line 170 of file RE01Trajectory.cc.
171{
172 G4bool isNew;
173 std::map<G4String,G4AttDef>* store
174 = G4AttDefStore::GetInstance("RE01Trajectory",isNew);
175 if (isNew) {
176
178 (*store)[id] =
G4AttDef(
id,
"Track ID",
"Bookkeeping",
"",
"G4int");
179
181 (*store)[pid] =
G4AttDef(pid,
"Parent ID",
"Bookkeeping",
"",
"G4int");
182
184 (*store)[status] =
G4AttDef(status,
"Track Status",
"Bookkeeping",
"",
"G4int");
185
187 (*store)[pn] =
G4AttDef(pn,
"Particle Name",
"Bookkeeping",
"",
"G4String");
188
190 (*store)[ch] =
G4AttDef(ch,
"Charge",
"Physics",
"e+",
"G4double");
191
193 (*store)[pdg] =
G4AttDef(pdg,
"PDG Encoding",
"Bookkeeping",
"",
"G4int");
194
196 (*store)[imom] =
G4AttDef(imom,
"Momentum of track at start of trajectory",
197 "Physics","G4BestUnit","G4ThreeVector");
198
200 (*store)[imag] =
201 G4AttDef(imag,
"Magnitude of momentum of track at start of trajectory",
202 "Physics","G4BestUnit","G4double");
203
205 (*store)[vtxPos] =
G4AttDef(vtxPos,
"Vertex position",
206 "Physics","G4BestUnit","G4ThreeVector");
207
209 (*store)[ntp] =
G4AttDef(ntp,
"No. of points",
"Bookkeeping",
"",
"G4int");
210
211 }
212 return store;
213}
◆ CreateAttValues()
std::vector< G4AttValue > * RE01Trajectory::CreateAttValues |
( |
| ) |
const |
|
virtual |
Definition at line 216 of file RE01Trajectory.cc.
217{
218 std::vector<G4AttValue>* values = new std::vector<G4AttValue>;
219
220 values->push_back
222
223 values->push_back
225
226 values->push_back
228
230
231 values->push_back
233
234 values->push_back
236
237 values->push_back
239
240 values->push_back
242
243 values->push_back
245
246 values->push_back
248
249 return values;
250}
virtual int GetPointEntries() const
◆ AppendStep()
void RE01Trajectory::AppendStep |
( |
const G4Step * |
aStep | ) |
|
|
virtual |
◆ MergeTrajectory()
void RE01Trajectory::MergeTrajectory |
( |
G4VTrajectory * |
secondTrajectory | ) |
|
|
virtual |
Definition at line 260 of file RE01Trajectory.cc.
261{
262 if(!secondTrajectory) return;
263
266
267
268 for(int i=1;i<ent;i++)
269 {
271 }
274
275}
◆ operator new()
void * RE01Trajectory::operator new |
( |
size_t |
| ) |
|
|
inline |
Definition at line 98 of file RE01Trajectory.hh.
99{
103}
G4ThreadLocal G4Allocator< RE01Trajectory > * myTrajectoryAllocator
◆ operator delete()
void RE01Trajectory::operator delete |
( |
void * |
aTrajectory | ) |
|
|
inline |
◆ operator==()
◆ GetTrackID()
virtual G4int RE01Trajectory::GetTrackID |
( |
| ) |
const |
|
inlinevirtual |
◆ GetParentID()
virtual G4int RE01Trajectory::GetParentID |
( |
| ) |
const |
|
inlinevirtual |
◆ GetParticleName()
virtual G4String RE01Trajectory::GetParticleName |
( |
| ) |
const |
|
inlinevirtual |
◆ GetCharge()
virtual G4double RE01Trajectory::GetCharge |
( |
| ) |
const |
|
inlinevirtual |
◆ GetPDGEncoding()
virtual G4int RE01Trajectory::GetPDGEncoding |
( |
| ) |
const |
|
inlinevirtual |
◆ GetInitialMomentum()
virtual G4ThreeVector RE01Trajectory::GetInitialMomentum |
( |
| ) |
const |
|
inlinevirtual |
◆ GetPointEntries()
virtual int RE01Trajectory::GetPointEntries |
( |
| ) |
const |
|
inlinevirtual |
◆ GetPoint()
◆ fPositionRecord
◆ fTrackID
G4int RE01Trajectory::fTrackID |
|
private |
◆ fParentID
G4int RE01Trajectory::fParentID |
|
private |
◆ fTrackStatus
G4int RE01Trajectory::fTrackStatus |
|
private |
◆ fParticleDefinition
◆ fParticleName
◆ fPDGCharge
G4double RE01Trajectory::fPDGCharge |
|
private |
◆ fPDGEncoding
G4int RE01Trajectory::fPDGEncoding |
|
private |
◆ fMomentum
G4ThreeVector RE01Trajectory::fMomentum |
|
private |
◆ fVertexPosition
G4ThreeVector RE01Trajectory::fVertexPosition |
|
private |
◆ fGlobalTime
G4double RE01Trajectory::fGlobalTime |
|
private |
The documentation for this class was generated from the following files: