Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
F04TrajectoryPoint Class Reference

#include <F04TrajectoryPoint.hh>

Inheritance diagram for F04TrajectoryPoint:
Collaboration diagram for F04TrajectoryPoint:

Public Member Functions

 F04TrajectoryPoint ()
 
 F04TrajectoryPoint (const G4Track *aTrack)
 
 F04TrajectoryPoint (const G4Step *aStep)
 
 F04TrajectoryPoint (const F04TrajectoryPoint &right)
 
virtual ~F04TrajectoryPoint ()
 
voidoperator new (size_t)
 
void operator delete (void *aTrajectoryPoint)
 
int operator== (const F04TrajectoryPoint &right) const
 
G4double GetTime () const
 
const G4ThreeVector GetMomentum () const
 
G4StepStatus GetStepStatus () const
 
G4String GetVolumeName () const
 
virtual const std::map
< G4String, G4AttDef > * 
GetAttDefs () const
 
virtual std::vector< G4AttValue > * CreateAttValues () const
 
- Public Member Functions inherited from G4TrajectoryPoint
 G4TrajectoryPoint ()
 
 G4TrajectoryPoint (G4ThreeVector pos)
 
 G4TrajectoryPoint (const G4TrajectoryPoint &right)
 
virtual ~G4TrajectoryPoint ()
 
voidoperator new (size_t)
 
void operator delete (void *aTrajectoryPoint)
 
int operator== (const G4TrajectoryPoint &right) const
 
const G4ThreeVector GetPosition () const
 
- Public Member Functions inherited from G4VTrajectoryPoint
 G4VTrajectoryPoint ()
 
virtual ~G4VTrajectoryPoint ()
 
G4bool operator== (const G4VTrajectoryPoint &right) const
 
virtual const std::vector
< G4ThreeVector > * 
GetAuxiliaryPoints () const
 

Detailed Description

Definition at line 47 of file F04TrajectoryPoint.hh.

Constructor & Destructor Documentation

F04TrajectoryPoint::F04TrajectoryPoint ( )

Definition at line 54 of file F04TrajectoryPoint.cc.

55  : fTime(0.), fMomentum(0.,0.,0.),
56  fStepStatus(fUndefined), fVolumeName("") {}
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 }
const G4ThreeVector & GetPosition() const
const G4String & GetName() const
G4double GetGlobalTime() const
G4ThreeVector GetMomentum() const
G4VPhysicalVolume * GetVolume() const

Here is the call graph for this function:

F04TrajectoryPoint::F04TrajectoryPoint ( const G4Step aStep)

Definition at line 60 of file F04TrajectoryPoint.cc.

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 = " ";
72  }
73 }
G4StepStatus GetStepStatus() const
G4ThreeVector GetMomentum() const
G4VPhysicalVolume * GetPhysicalVolume() const
const G4ThreeVector & GetPosition() const
G4StepPoint * GetPostStepPoint() const
G4double GetGlobalTime() const

Here is the call graph for this function:

F04TrajectoryPoint::F04TrajectoryPoint ( const F04TrajectoryPoint right)

Definition at line 88 of file F04TrajectoryPoint.cc.

89  : G4TrajectoryPoint(right)
90 {
91  fTime = right.fTime;
92  fMomentum = right.fMomentum;
93  fStepStatus = right.fStepStatus;
94  fVolumeName = right.fVolumeName;
95 }
F04TrajectoryPoint::~F04TrajectoryPoint ( )
virtual

Definition at line 99 of file F04TrajectoryPoint.cc.

99 {}

Member Function Documentation

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

Reimplemented from G4TrajectoryPoint.

Definition at line 135 of file F04TrajectoryPoint.cc.

136 {
137  std::vector<G4AttValue>* values = new std::vector<G4AttValue>;
138 
139  values->push_back(G4AttValue("Time",G4BestUnit(fTime,"Time"),""));
140 
141  values->push_back(G4AttValue("Momentum",G4BestUnit(fMomentum,"Momentum"),""));
142 
143  values->push_back(G4AttValue("StepStatus",fStepStatus,""));
144 
145  values->push_back(G4AttValue("VolumeName",fVolumeName,""));
146 
147 #ifdef G4ATTDEBUG
148  G4cout << G4AttCheck(values,GetAttDefs());
149 #endif
150 
151  return values;
152 }
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
G4GLOB_DLL std::ostream G4cout
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const

Here is the call graph for this function:

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

Reimplemented from G4TrajectoryPoint.

Definition at line 103 of file F04TrajectoryPoint.cc.

104 {
105  G4bool isNew;
106  std::map<G4String,G4AttDef>* store
107  = G4AttDefStore::GetInstance("TrajectoryPoint",isNew);
108  if (isNew) {
109  G4String Pos("Pos");
110  (*store)[Pos] =
111  G4AttDef(Pos, "Position", "Physics","G4BestUnit","G4ThreeVector");
112 
113  G4String Time("Time");
114  (*store)[Time] =
115  G4AttDef(Time, "Time", "Physics","G4BestUnit","G4double");
116 
117  G4String Momentum("Momentum");
118  (*store)[Momentum] =
119  G4AttDef(Momentum, "Momentum", "Physics","G4BestUnit","G4ThreeVector");
120 
121  G4String StepStatus("StepStatus");
122  (*store)[StepStatus] =
123  G4AttDef(StepStatus, "StepStatus", "Physics", "", "G4StepStatus");
124 
125  G4String VolumeName("VolumeName");
126  (*store)[VolumeName] =
127  G4AttDef(VolumeName, "VolumeName", "Physics", "", "G4String");
128 
129  }
130  return store;
131 }
ush Pos
Definition: deflate.h:89
bool G4bool
Definition: G4Types.hh:79
std::map< G4String, G4AttDef > * GetInstance(const G4String &storeKey, G4bool &isNew)

Here is the call graph for this function:

Here is the caller graph for this function:

const G4ThreeVector F04TrajectoryPoint::GetMomentum ( ) const
inline

Definition at line 71 of file F04TrajectoryPoint.hh.

71 { return fMomentum; };
G4StepStatus F04TrajectoryPoint::GetStepStatus ( ) const
inline

Definition at line 72 of file F04TrajectoryPoint.hh.

72 { return fStepStatus; };
G4double F04TrajectoryPoint::GetTime ( ) const
inline

Definition at line 70 of file F04TrajectoryPoint.hh.

70 { return fTime; };
G4String F04TrajectoryPoint::GetVolumeName ( ) const
inline

Definition at line 73 of file F04TrajectoryPoint.hh.

73 { return fVolumeName; };
void F04TrajectoryPoint::operator delete ( void aTrajectoryPoint)
inline

Definition at line 102 of file F04TrajectoryPoint.hh.

103 {
104  F04TrajPointAllocator->FreeSingle(
105  (F04TrajectoryPoint *) aTrajectoryPoint);
106 }
G4ThreadLocal G4Allocator< F04TrajectoryPoint > * F04TrajPointAllocator
void * F04TrajectoryPoint::operator new ( size_t  )
inline

Definition at line 95 of file F04TrajectoryPoint.hh.

96 {
99  return (void *) F04TrajPointAllocator->MallocSingle();
100 }
G4ThreadLocal G4Allocator< F04TrajectoryPoint > * F04TrajPointAllocator
int F04TrajectoryPoint::operator== ( const F04TrajectoryPoint right) const
inline

Definition at line 65 of file F04TrajectoryPoint.hh.

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

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