#include <Doxymodules_optical.h>
Definition at line 106 of file Doxymodules_optical.h.
◆ WLSTrajectory() [1/3]
WLSTrajectory::WLSTrajectory |
( |
| ) |
|
|
default |
◆ WLSTrajectory() [2/3]
WLSTrajectory::WLSTrajectory |
( |
const G4Track * |
aTrack | ) |
|
Definition at line 53 of file WLSTrajectory.cc.
54{
63
65}
std::vector< G4VTrajectoryPoint * > WLSTrajectoryPointContainer
G4ThreeVector fInitialMomentum
WLSTrajectoryPointContainer * fpPointsContainer
G4ParticleDefinition * fParticleDefinition
◆ WLSTrajectory() [3/3]
Definition at line 69 of file WLSTrajectory.cc.
71{
80
81 for(
size_t i = 0; i <
right.fpPointsContainer->size(); ++i)
82 {
85 }
86}
◆ ~WLSTrajectory()
WLSTrajectory::~WLSTrajectory |
( |
| ) |
|
|
override |
Definition at line 90 of file WLSTrajectory.cc.
91{
93 {
94 delete(*fpPointsContainer)[i];
95 }
98}
◆ operator new()
void * WLSTrajectory::operator new |
( |
size_t |
| ) |
|
|
inline |
Definition at line 104 of file WLSTrajectory.hh.
105{
109}
G4ThreadLocal G4Allocator< WLSTrajectory > * WLSTrajectoryAllocator
◆ operator delete()
void WLSTrajectory::operator delete |
( |
void * |
aTrajectory | ) |
|
|
inline |
◆ operator==()
int WLSTrajectory::operator== |
( |
const WLSTrajectory & |
right | ) |
const |
|
inline |
◆ GetTrackID()
G4int WLSTrajectory::GetTrackID |
( |
| ) |
const |
|
inlineoverride |
◆ GetParentID()
G4int WLSTrajectory::GetParentID |
( |
| ) |
const |
|
inlineoverride |
◆ GetParticleName()
G4String WLSTrajectory::GetParticleName |
( |
| ) |
const |
|
inlineoverride |
◆ GetCharge()
G4double WLSTrajectory::GetCharge |
( |
| ) |
const |
|
inlineoverride |
◆ GetPDGEncoding()
G4int WLSTrajectory::GetPDGEncoding |
( |
| ) |
const |
|
inlineoverride |
◆ GetInitialMomentum()
G4ThreeVector WLSTrajectory::GetInitialMomentum |
( |
| ) |
const |
|
inlineoverride |
◆ ShowTrajectory()
void WLSTrajectory::ShowTrajectory |
( |
std::ostream & |
os = G4cout | ) |
const |
|
override |
Definition at line 102 of file WLSTrajectory.cc.
103{
104
105 G4VTrajectory::ShowTrajectory(os);
106
107}
◆ AppendStep()
void WLSTrajectory::AppendStep |
( |
const G4Step * |
aStep | ) |
|
|
override |
◆ MergeTrajectory()
void WLSTrajectory::MergeTrajectory |
( |
G4VTrajectory * |
secondTrajectory | ) |
|
|
override |
Definition at line 125 of file WLSTrajectory.cc.
126{
127 if(!secondTrajectory)
128 return;
129
131 G4int ent = second->GetPointEntries();
132
133 for(G4int i = 1; i < ent; ++i)
134 {
136 }
137 delete(*second->fpPointsContainer)[0];
138 second->fpPointsContainer->clear();
139}
◆ GetParticleDefinition()
◆ GetPointEntries()
int WLSTrajectory::GetPointEntries |
( |
| ) |
const |
|
inlineoverride |
◆ GetPoint()
◆ GetAttDefs()
Definition at line 143 of file WLSTrajectory.cc.
144{
145 G4bool isNew;
146 std::map<G4String, G4AttDef>* store =
147 G4AttDefStore::GetInstance("Trajectory", isNew);
148
149 if(isNew)
150 {
152 (*store)[ID] =
G4AttDef(ID,
"Track ID",
"Bookkeeping",
"",
"G4int");
153
155 (*store)[PID] =
G4AttDef(PID,
"Parent ID",
"Bookkeeping",
"",
"G4int");
156
158 (*store)[PN] =
G4AttDef(PN,
"Particle Name",
"Physics",
"",
"G4String");
159
161 (*store)[Ch] =
G4AttDef(Ch,
"Charge",
"Physics",
"e+",
"G4double");
162
164 (*store)[PDG] =
G4AttDef(PDG,
"PDG Encoding",
"Physics",
"",
"G4int");
165
167 (*store)[IMom] =
G4AttDef(IMom,
"Momentum of track at start of trajectory",
168 "Physics", "G4BestUnit", "G4ThreeVector");
169
171 (*store)[IMag] =
172 G4AttDef(IMag,
"Magnitude of momentum of track at start of trajectory",
173 "Physics", "G4BestUnit", "G4double");
174
176 (*store)[NTP] =
G4AttDef(NTP,
"No. of points",
"Bookkeeping",
"",
"G4int");
177 }
178 return store;
179}
◆ CreateAttValues()
std::vector< G4AttValue > * WLSTrajectory::CreateAttValues |
( |
| ) |
const |
|
override |
Definition at line 183 of file WLSTrajectory.cc.
184{
185 auto values = new std::vector<G4AttValue>;
186
187 values->push_back(
189
190 values->push_back(
192
194
195 values->push_back(
197
198 values->push_back(
200
201 values->push_back(
203
204 values->push_back(
206
207 values->push_back(
209
210 return values;
211}
int GetPointEntries() const override
◆ fpPointsContainer
◆ fTrackID
G4int WLSTrajectory::fTrackID = 0 |
|
private |
◆ fParentID
G4int WLSTrajectory::fParentID = 0 |
|
private |
◆ fPDGCharge
G4double WLSTrajectory::fPDGCharge = 0. |
|
private |
◆ fPDGEncoding
G4int WLSTrajectory::fPDGEncoding = 0 |
|
private |
◆ fParticleName
◆ fInitialMomentum
G4ThreeVector WLSTrajectory::fInitialMomentum |
|
private |
◆ fParticleDefinition
The documentation for this class was generated from the following files: