Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
F04TrajectoryPoint Class Reference

#include <Doxymodules_field.h>

Inheritance diagram for F04TrajectoryPoint:
G4TrajectoryPoint G4VTrajectoryPoint

Public Member Functions

 F04TrajectoryPoint ()
 
 F04TrajectoryPoint (const G4Track *aTrack)
 
 F04TrajectoryPoint (const G4Step *aStep)
 
 F04TrajectoryPoint (const F04TrajectoryPoint &right)
 
 ~F04TrajectoryPoint () override=default
 
void * operator new (size_t)
 
void operator delete (void *aTrajectoryPoint)
 
G4bool operator== (const F04TrajectoryPoint &right) const
 
G4double GetTime () const
 
const G4ThreeVector GetMomentum () const
 
G4StepStatus GetStepStatus () const
 
G4String GetVolumeName () const
 
const std::map< G4String, G4AttDef > * GetAttDefs () const override
 
std::vector< G4AttValue > * CreateAttValues () const override
 

Private Attributes

G4double fTime = 0
 
G4ThreeVector fMomentum
 
G4StepStatus fStepStatus = fUndefined
 
G4String fVolumeName
 

Detailed Description

Definition at line 124 of file Doxymodules_field.h.

Constructor & Destructor Documentation

◆ F04TrajectoryPoint() [1/4]

F04TrajectoryPoint::F04TrajectoryPoint ( )

Definition at line 55 of file F04TrajectoryPoint.cc.

56{}

◆ F04TrajectoryPoint() [2/4]

F04TrajectoryPoint::F04TrajectoryPoint ( const G4Track aTrack)

Definition at line 77 of file F04TrajectoryPoint.cc.

78 : G4TrajectoryPoint(aTrack->GetPosition())
79{
80 fTime = aTrack->GetGlobalTime();
81 fMomentum = aTrack->GetMomentum();
82 fStepStatus = fUndefined;
83 fVolumeName = aTrack->GetVolume()->GetName();
84}

◆ F04TrajectoryPoint() [3/4]

F04TrajectoryPoint::F04TrajectoryPoint ( const G4Step aStep)

Definition at line 60 of file F04TrajectoryPoint.cc.

61 : G4TrajectoryPoint(aStep->GetPostStepPoint()->GetPosition())
62{
63 fTime = aStep->GetPostStepPoint()->GetGlobalTime();
64 fMomentum = aStep->GetPostStepPoint()->GetMomentum();
65 fStepStatus = aStep->GetPostStepPoint()->GetStepStatus();
66 if (aStep->GetPostStepPoint()->GetPhysicalVolume())
67 {
68 fVolumeName = aStep->GetPostStepPoint()->
69 GetPhysicalVolume()->GetName();
70 } else {
71 fVolumeName = G4String(" ");
72 }
73}

◆ F04TrajectoryPoint() [4/4]

F04TrajectoryPoint::F04TrajectoryPoint ( const F04TrajectoryPoint right)

Definition at line 88 of file F04TrajectoryPoint.cc.

90{
91 fTime = right.fTime;
92 fMomentum = right.fMomentum;
93 fStepStatus = right.fStepStatus;
94 fVolumeName = right.fVolumeName;
95}

◆ ~F04TrajectoryPoint()

F04TrajectoryPoint::~F04TrajectoryPoint ( )
overridedefault

Member Function Documentation

◆ operator new()

void * F04TrajectoryPoint::operator new ( size_t  )
inline

Definition at line 94 of file F04TrajectoryPoint.hh.

95{
98 return (void *) F04TrajPointAllocator->MallocSingle();
99}
G4ThreadLocal G4Allocator< F04TrajectoryPoint > * F04TrajPointAllocator

◆ operator delete()

void F04TrajectoryPoint::operator delete ( void *  aTrajectoryPoint)
inline

Definition at line 101 of file F04TrajectoryPoint.hh.

102{
103 F04TrajPointAllocator->FreeSingle(
104 (F04TrajectoryPoint *) aTrajectoryPoint);
105}

◆ operator==()

G4bool F04TrajectoryPoint::operator== ( const F04TrajectoryPoint right) const
inline

Definition at line 64 of file F04TrajectoryPoint.hh.

65 { return (this==&right); };

◆ GetTime()

G4double F04TrajectoryPoint::GetTime ( ) const
inline

Definition at line 69 of file F04TrajectoryPoint.hh.

69{ return fTime; };

◆ GetMomentum()

const G4ThreeVector F04TrajectoryPoint::GetMomentum ( ) const
inline

Definition at line 70 of file F04TrajectoryPoint.hh.

70{ return fMomentum; };

◆ GetStepStatus()

G4StepStatus F04TrajectoryPoint::GetStepStatus ( ) const
inline

Definition at line 71 of file F04TrajectoryPoint.hh.

71{ return fStepStatus; };

◆ GetVolumeName()

G4String F04TrajectoryPoint::GetVolumeName ( ) const
inline

Definition at line 72 of file F04TrajectoryPoint.hh.

72{ return fVolumeName; };

◆ GetAttDefs()

const std::map< G4String, G4AttDef > * F04TrajectoryPoint::GetAttDefs ( ) const
override

Definition at line 99 of file F04TrajectoryPoint.cc.

100{
101 G4bool isNew;
102 std::map<G4String,G4AttDef>* store
103 = G4AttDefStore::GetInstance("TrajectoryPoint",isNew);
104 if (isNew) {
105 G4String Pos("Pos");
106 (*store)[Pos] =
107 G4AttDef(Pos, "Position", "Physics","G4BestUnit","G4ThreeVector");
108
109 G4String Time("Time");
110 (*store)[Time] =
111 G4AttDef(Time, "Time", "Physics","G4BestUnit","G4double");
112
113 G4String Momentum("Momentum");
114 (*store)[Momentum] =
115 G4AttDef(Momentum, "Momentum", "Physics","G4BestUnit","G4ThreeVector");
116
117 G4String StepStatus("StepStatus");
118 (*store)[StepStatus] =
119 G4AttDef(StepStatus, "StepStatus", "Physics", "", "G4StepStatus");
120
121 G4String VolumeName("VolumeName");
122 (*store)[VolumeName] =
123 G4AttDef(VolumeName, "VolumeName", "Physics", "", "G4String");
124
125 }
126 return store;
127}

◆ CreateAttValues()

std::vector< G4AttValue > * F04TrajectoryPoint::CreateAttValues ( ) const
override

Definition at line 131 of file F04TrajectoryPoint.cc.

132{
133 auto values = new std::vector<G4AttValue>;
134
135 values->push_back(G4AttValue("Time",G4BestUnit(fTime,"Time"),""));
136
137 values->push_back(G4AttValue("Momentum",G4BestUnit(fMomentum,"Momentum"),""));
138
139 values->push_back(G4AttValue("StepStatus",G4UIcommand::ConvertToString(fStepStatus),""));
140
141 values->push_back(G4AttValue("VolumeName",fVolumeName,""));
142
143#ifdef G4ATTDEBUG
144 G4cout << G4AttCheck(values,GetAttDefs());
145#endif
146
147 return values;
148}
const std::map< G4String, G4AttDef > * GetAttDefs() const override

Member Data Documentation

◆ fTime

G4double F04TrajectoryPoint::fTime = 0
private

Definition at line 85 of file F04TrajectoryPoint.hh.

◆ fMomentum

G4ThreeVector F04TrajectoryPoint::fMomentum
private

Definition at line 86 of file F04TrajectoryPoint.hh.

◆ fStepStatus

G4StepStatus F04TrajectoryPoint::fStepStatus = fUndefined
private

Definition at line 87 of file F04TrajectoryPoint.hh.

◆ fVolumeName

G4String F04TrajectoryPoint::fVolumeName
private

Definition at line 88 of file F04TrajectoryPoint.hh.


The documentation for this class was generated from the following files:

Applications | User Support | Publications | Collaboration