#include <EDepSimTrajectoryPoint.hh>
Definition at line 21 of file EDepSimTrajectoryPoint.hh.
EDepSim::TrajectoryPoint::TrajectoryPoint |
( |
| ) |
|
EDepSim::TrajectoryPoint::TrajectoryPoint |
( |
const G4Track * |
aTrack | ) |
|
Definition at line 55 of file EDepSimTrajectoryPoint.cc.
56 : G4TrajectoryPoint(aTrack->GetPosition()) {
57 fTime = aTrack->GetGlobalTime();
60 if (aTrack->GetVolume()) {
67 const G4VProcess* proc = aTrack->GetCreatorProcess();
G4ThreeVector fPrevPosition
G4ProcessType fProcessType
EDepSim::TrajectoryPoint::TrajectoryPoint |
( |
const G4Step * |
aStep | ) |
|
Definition at line 28 of file EDepSimTrajectoryPoint.cc.
29 : G4TrajectoryPoint(aStep->GetPostStepPoint()->GetPosition()) {
30 fTime = aStep->GetPostStepPoint()->GetGlobalTime();
31 fMomentum = aStep->GetPostStepPoint()->GetMomentum();
32 fStepStatus = aStep->GetPostStepPoint()->GetStepStatus();
33 if (aStep->GetPostStepPoint()->GetPhysicalVolume()) {
35 = aStep->GetPostStepPoint()->GetPhysicalVolume()->GetName();
44 if (aStep->GetPostStepPoint()->GetProcessDefinedStep()) {
46 GetProcessDefinedStep()->GetProcessType();
48 GetProcessDefinedStep()->GetProcessSubType();
50 GetProcessDefinedStep()->GetProcessName();
G4ThreeVector fPrevPosition
G4ProcessType fProcessType
Definition at line 76 of file EDepSimTrajectoryPoint.cc.
77 : G4TrajectoryPoint(right) {
G4ThreeVector fPrevPosition
G4ProcessType fProcessType
EDepSim::TrajectoryPoint::~TrajectoryPoint |
( |
| ) |
|
|
virtual |
std::vector< G4AttValue > * EDepSim::TrajectoryPoint::CreateAttValues |
( |
| ) |
const |
|
virtual |
Definition at line 124 of file EDepSimTrajectoryPoint.cc.
125 std::vector<G4AttValue>*
values =
new std::vector<G4AttValue>;
127 values->push_back(G4AttValue(
"Time",G4BestUnit(
fTime,
"Time"),
""));
129 values->push_back(G4AttValue(
"Momentum",
131 values->push_back(G4AttValue(
"StepStatus",
fStepStatus,
""));
133 values->push_back(G4AttValue(
"PhysVolName",
fPhysVolName,
""));
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
#define EDepSimInfo(outStream)
const std::map< G4String, G4AttDef > * EDepSim::TrajectoryPoint::GetAttDefs |
( |
| ) |
const |
|
virtual |
Definition at line 91 of file EDepSimTrajectoryPoint.cc.
94 std::map<G4String,G4AttDef>* store
95 = G4AttDefStore::GetInstance(
"EDepSim::TrajectoryPoint",isNew);
99 G4String Time(
"Time");
101 G4AttDef(Time,
"Time",
"Physics",
"G4BestUnit",
"G4double");
105 G4AttDef(
Momentum,
"Momentum",
"Physics",
106 "G4BestUnit",
"G4ThreeVector");
108 G4String StepStatus(
"StepStatus");
109 (*store)[StepStatus] =
110 G4AttDef(StepStatus,
"StepStatus",
"Physics",
"",
"G4StepStatus");
112 G4String VolumeName(
"VolumeName");
113 (*store)[VolumeName] =
114 G4AttDef(VolumeName,
"VolumeName",
"Physics",
"",
"G4String");
116 G4String VolumeNode(
"VolumeNode");
117 (*store)[VolumeNode] =
118 G4AttDef(VolumeNode,
"VolumeNode",
"Physics",
"",
"G4int");
const G4ThreeVector EDepSim::TrajectoryPoint::GetMomentum |
( |
| ) |
const |
|
inline |
G4String EDepSim::TrajectoryPoint::GetPhysVolName |
( |
| ) |
const |
|
inline |
The name of the physical volume containing the stopping point of the current step. This may (often) be a different volume than the volume referenced by GetVolumeNode().
Definition at line 66 of file EDepSimTrajectoryPoint.hh.
G4double EDepSim::TrajectoryPoint::GetProcessDeposit |
( |
| ) |
const |
|
inline |
Get the energy deposit by this process for this point. This is NOT enough information to calculate the total energy deposit for the track, but can be used to help decide which trajectory points are interesting to save to the output file.
Definition at line 61 of file EDepSimTrajectoryPoint.hh.
G4String EDepSim::TrajectoryPoint::GetProcessName |
( |
| ) |
const |
|
inline |
G4int EDepSim::TrajectoryPoint::GetProcessSubType |
( |
| ) |
const |
|
inline |
Get the process sub type for this point. The sub-types depend on the specific processes and are defined in a few different include files. For EM and hadronic interacitons, see G4EmProcessSubType.hh, and G4HadronicProcessType.hh.
Definition at line 52 of file EDepSimTrajectoryPoint.hh.
G4ProcessType EDepSim::TrajectoryPoint::GetProcessType |
( |
| ) |
const |
|
inline |
Get the process type for this point (the process types are defined in G4ProcessType.hh).
Definition at line 46 of file EDepSimTrajectoryPoint.hh.
G4ProcessType fProcessType
G4StepStatus EDepSim::TrajectoryPoint::GetStepStatus |
( |
| ) |
const |
|
inline |
Get the G4 stepping status of the interaction that instigated this trajectory point.
Definition at line 42 of file EDepSimTrajectoryPoint.hh.
G4double EDepSim::TrajectoryPoint::GetTime |
( |
| ) |
const |
|
inline |
int EDepSim::TrajectoryPoint::GetVolumeNode |
( |
| ) |
const |
Get the node for the volume containing the stopping point. If the stopping point is on a geometric boundary, this is the volume that the track is just exiting.
Definition at line 142 of file EDepSimTrajectoryPoint.cc.
143 gGeoManager->PushPath();
147 gGeoManager->PopPath();
G4ThreeVector fPrevPosition
int GetNodeId(const G4ThreeVector &pos)
Get a volume ID base on the volume position.
static EDepSim::RootGeometryManager * Get(void)
If a persistency manager has not been created, create one.
void EDepSim::TrajectoryPoint::operator delete |
( |
void * |
aTrajectoryPoint | ) |
|
|
inline |
void * EDepSim::TrajectoryPoint::operator new |
( |
size_t |
| ) |
|
|
inline |
Definition at line 101 of file EDepSimTrajectoryPoint.hh.
103 return aTrajectoryPoint;
G4DLLIMPORT G4Allocator< EDepSim::TrajectoryPoint > aTrajPointAllocator
G4ThreeVector EDepSim::TrajectoryPoint::fMomentum |
|
private |
G4String EDepSim::TrajectoryPoint::fPhysVolName |
|
private |
G4ThreeVector EDepSim::TrajectoryPoint::fPrevPosition |
|
private |
G4double EDepSim::TrajectoryPoint::fProcessDeposit |
|
private |
G4String EDepSim::TrajectoryPoint::fProcessName |
|
private |
G4int EDepSim::TrajectoryPoint::fProcessSubType |
|
private |
G4ProcessType EDepSim::TrajectoryPoint::fProcessType |
|
private |
G4StepStatus EDepSim::TrajectoryPoint::fStepStatus |
|
private |
G4double EDepSim::TrajectoryPoint::fTime |
|
private |
The documentation for this class was generated from the following files: