#include <G4TrajectoryPoint.hh>
Inheritance diagram for G4TrajectoryPoint:
Public Member Functions | |
G4TrajectoryPoint () | |
G4TrajectoryPoint (G4ThreeVector pos) | |
G4TrajectoryPoint (const G4TrajectoryPoint &right) | |
virtual | ~G4TrajectoryPoint () |
void * | operator new (size_t) |
void | operator delete (void *aTrajectoryPoint) |
int | operator== (const G4TrajectoryPoint &right) const |
const G4ThreeVector | GetPosition () const |
virtual const std::map< G4String, G4AttDef > * | GetAttDefs () const |
virtual std::vector< G4AttValue > * | CreateAttValues () const |
Definition at line 59 of file G4TrajectoryPoint.hh.
G4TrajectoryPoint::G4TrajectoryPoint | ( | ) |
Definition at line 49 of file G4TrajectoryPoint.cc.
00050 { 00051 fPosition = G4ThreeVector(0.,0.,0.); 00052 }
G4TrajectoryPoint::G4TrajectoryPoint | ( | G4ThreeVector | pos | ) |
G4TrajectoryPoint::G4TrajectoryPoint | ( | const G4TrajectoryPoint & | right | ) |
Definition at line 59 of file G4TrajectoryPoint.cc.
00060 : G4VTrajectoryPoint(),fPosition(right.fPosition) 00061 { 00062 }
G4TrajectoryPoint::~G4TrajectoryPoint | ( | ) | [virtual] |
std::vector< G4AttValue > * G4TrajectoryPoint::CreateAttValues | ( | ) | const [virtual] |
Reimplemented from G4VTrajectoryPoint.
Reimplemented in G4RichTrajectoryPoint.
Definition at line 81 of file G4TrajectoryPoint.cc.
References G4BestUnit, G4cout, and GetAttDefs().
Referenced by G4RichTrajectoryPoint::CreateAttValues().
00082 { 00083 std::vector<G4AttValue>* values = new std::vector<G4AttValue>; 00084 00085 values->push_back(G4AttValue("Pos",G4BestUnit(fPosition,"Length"),"")); 00086 00087 #ifdef G4ATTDEBUG 00088 G4cout << G4AttCheck(values,GetAttDefs()); 00089 #endif 00090 00091 return values; 00092 }
Reimplemented from G4VTrajectoryPoint.
Reimplemented in G4RichTrajectoryPoint.
Definition at line 68 of file G4TrajectoryPoint.cc.
References G4AttDefStore::GetInstance().
Referenced by CreateAttValues(), and G4RichTrajectoryPoint::GetAttDefs().
00069 { 00070 G4bool isNew; 00071 std::map<G4String,G4AttDef>* store 00072 = G4AttDefStore::GetInstance("G4TrajectoryPoint",isNew); 00073 if (isNew) { 00074 G4String Pos("Pos"); 00075 (*store)[Pos] = 00076 G4AttDef(Pos, "Position", "Physics","G4BestUnit","G4ThreeVector"); 00077 } 00078 return store; 00079 }
const G4ThreeVector G4TrajectoryPoint::GetPosition | ( | void | ) | const [inline, virtual] |
void G4TrajectoryPoint::operator delete | ( | void * | aTrajectoryPoint | ) | [inline] |
Reimplemented in G4RichTrajectoryPoint.
Definition at line 109 of file G4TrajectoryPoint.hh.
References aTrajectoryPointAllocator.
00110 { 00111 aTrajectoryPointAllocator.FreeSingle((G4TrajectoryPoint *) aTrajectoryPoint); 00112 }
void * G4TrajectoryPoint::operator new | ( | size_t | ) | [inline] |
Reimplemented in G4RichTrajectoryPoint.
Definition at line 102 of file G4TrajectoryPoint.hh.
References aTrajectoryPointAllocator.
00103 { 00104 void *aTrajectoryPoint; 00105 aTrajectoryPoint = (void *) aTrajectoryPointAllocator.MallocSingle(); 00106 return aTrajectoryPoint; 00107 }
int G4TrajectoryPoint::operator== | ( | const G4TrajectoryPoint & | right | ) | const [inline] |