#include <G4SmoothTrajectory.hh>
Definition at line 67 of file G4SmoothTrajectory.hh.
| 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() )
CLHEP::Hep3Vector G4ThreeVector
| G4SmoothTrajectory::G4SmoothTrajectory |
( |
const G4Track * |
aTrack | ) |
|
Definition at line 64 of file G4SmoothTrajectory.cc.
G4ParticleDefinition * GetDefinition() const
G4int GetParentID() const
std::vector< G4VTrajectoryPoint * > TrajectoryPointContainer
const G4ThreeVector & GetPosition() const
G4int GetPDGEncoding() const
const G4String & GetParticleName() const
G4double GetKineticEnergy() const
G4ThreeVector GetMomentum() const
G4double GetPDGCharge() const
Definition at line 83 of file G4SmoothTrajectory.cc.
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;
94 for(
size_t i=0;i<right.positionRecord->size();i++)
std::vector< G4VTrajectoryPoint * > TrajectoryPointContainer
| G4SmoothTrajectory::~G4SmoothTrajectory |
( |
| ) |
|
|
virtual |
Definition at line 101 of file G4SmoothTrajectory.cc.
106 for(i=0;i<positionRecord->size();i++)
108 delete (*positionRecord)[i];
110 positionRecord->clear();
111 delete positionRecord;
| void G4SmoothTrajectory::AppendStep |
( |
const G4Step * |
aStep | ) |
|
|
virtual |
Implements G4VTrajectory.
Definition at line 210 of file G4SmoothTrajectory.cc.
212 positionRecord->push_back(
const G4ThreeVector & GetPosition() const
G4StepPoint * GetPostStepPoint() const
std::vector< G4ThreeVector > * GetPointerToVectorOfAuxiliaryPoints() const
| std::vector< G4AttValue > * G4SmoothTrajectory::CreateAttValues |
( |
| ) |
const |
|
virtual |
Reimplemented from G4VTrajectory.
Definition at line 173 of file G4SmoothTrajectory.cc.
175 std::vector<G4AttValue>* values =
new std::vector<G4AttValue>;
183 values->push_back(
G4AttValue(
"PN",ParticleName,
""));
static G4String ConvertToString(G4bool boolVal)
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
G4GLOB_DLL std::ostream G4cout
virtual int GetPointEntries() const
| void G4SmoothTrajectory::DrawTrajectory |
( |
| ) |
const |
|
virtual |
Reimplemented from G4VTrajectory.
Definition at line 129 of file G4SmoothTrajectory.cc.
132 std::map<G4String,G4AttDef>* store
137 (*store)[ID] =
G4AttDef(ID,
"Track ID",
"Physics",
"",
"G4int");
140 (*store)[PID] =
G4AttDef(PID,
"Parent ID",
"Physics",
"",
"G4int");
143 (*store)[PN] =
G4AttDef(PN,
"Particle Name",
"Physics",
"",
"G4String");
146 (*store)[Ch] =
G4AttDef(Ch,
"Charge",
"Physics",
"e+",
"G4double");
149 (*store)[PDG] =
G4AttDef(PDG,
"PDG Encoding",
"Physics",
"",
"G4int");
153 G4AttDef(IKE,
"Initial kinetic energy",
154 "Physics",
"G4BestUnit",
"G4double");
157 (*store)[IMom] =
G4AttDef(IMom,
"Initial momentum",
158 "Physics",
"G4BestUnit",
"G4ThreeVector");
162 (IMag,
"Initial momentum magnitude",
163 "Physics",
"G4BestUnit",
"G4double");
166 (*store)[NTP] =
G4AttDef(NTP,
"No. of points",
"Physics",
"",
"G4int");
std::map< G4String, G4AttDef > * GetInstance(const G4String &storeKey, G4bool &isNew)
| G4double G4SmoothTrajectory::GetCharge |
( |
| ) |
const |
|
inlinevirtual |
| G4double G4SmoothTrajectory::GetInitialKineticEnergy |
( |
| ) |
const |
|
inline |
| G4int G4SmoothTrajectory::GetParentID |
( |
| ) |
const |
|
inlinevirtual |
| G4String G4SmoothTrajectory::GetParticleName |
( |
| ) |
const |
|
inlinevirtual |
| G4int G4SmoothTrajectory::GetPDGEncoding |
( |
| ) |
const |
|
inlinevirtual |
| virtual int G4SmoothTrajectory::GetPointEntries |
( |
| ) |
const |
|
inlinevirtual |
| G4int G4SmoothTrajectory::GetTrackID |
( |
| ) |
const |
|
inlinevirtual |
Implements G4VTrajectory.
Definition at line 222 of file G4SmoothTrajectory.cc.
224 if(!secondTrajectory)
return;
228 for(
G4int i=1;i<ent;i++)
230 positionRecord->push_back((*(seco->positionRecord))[i]);
232 delete (*seco->positionRecord)[0];
233 seco->positionRecord->clear();
virtual int GetPointEntries() const
| void G4SmoothTrajectory::operator delete |
( |
void * |
aTrajectory | ) |
|
|
inline |
Definition at line 148 of file G4SmoothTrajectory.hh.
G4TRACKING_DLL G4ThreadLocal G4Allocator< G4SmoothTrajectory > * aSmoothTrajectoryAllocator
| void * G4SmoothTrajectory::operator new |
( |
size_t |
| ) |
|
|
inline |
Definition at line 141 of file G4SmoothTrajectory.hh.
G4TRACKING_DLL G4ThreadLocal G4Allocator< G4SmoothTrajectory > * aSmoothTrajectoryAllocator
| void G4SmoothTrajectory::ShowTrajectory |
( |
std::ostream & |
os = G4cout | ) |
const |
|
virtual |
The documentation for this class was generated from the following files: