#include <G4SmoothTrajectoryPoint.hh>
Inheritance diagram for G4SmoothTrajectoryPoint:
Public Member Functions | |
G4SmoothTrajectoryPoint () | |
G4SmoothTrajectoryPoint (G4ThreeVector pos, std::vector< G4ThreeVector > *auxiliaryPoints) | |
G4SmoothTrajectoryPoint (G4ThreeVector pos) | |
G4SmoothTrajectoryPoint (const G4SmoothTrajectoryPoint &right) | |
virtual | ~G4SmoothTrajectoryPoint () |
void * | operator new (size_t) |
void | operator delete (void *aTrajectoryPoint) |
int | operator== (const G4SmoothTrajectoryPoint &right) const |
const G4ThreeVector | GetPosition () const |
const std::vector< G4ThreeVector > * | GetAuxiliaryPoints () const |
virtual const std::map< G4String, G4AttDef > * | GetAttDefs () const |
virtual std::vector< G4AttValue > * | CreateAttValues () const |
Definition at line 47 of file G4SmoothTrajectoryPoint.hh.
G4SmoothTrajectoryPoint::G4SmoothTrajectoryPoint | ( | ) |
Definition at line 50 of file G4SmoothTrajectoryPoint.cc.
00051 : fAuxiliaryPointVector(0) 00052 { 00053 fPosition = G4ThreeVector(0.,0.,0.); 00054 }
G4SmoothTrajectoryPoint::G4SmoothTrajectoryPoint | ( | G4ThreeVector | pos, | |
std::vector< G4ThreeVector > * | auxiliaryPoints | |||
) |
G4SmoothTrajectoryPoint::G4SmoothTrajectoryPoint | ( | G4ThreeVector | pos | ) |
G4SmoothTrajectoryPoint::G4SmoothTrajectoryPoint | ( | const G4SmoothTrajectoryPoint & | right | ) |
Definition at line 68 of file G4SmoothTrajectoryPoint.cc.
00069 : G4VTrajectoryPoint(), 00070 fPosition(right.fPosition),fAuxiliaryPointVector(right.fAuxiliaryPointVector) 00071 { 00072 }
G4SmoothTrajectoryPoint::~G4SmoothTrajectoryPoint | ( | ) | [virtual] |
std::vector< G4AttValue > * G4SmoothTrajectoryPoint::CreateAttValues | ( | ) | const [virtual] |
Reimplemented from G4VTrajectoryPoint.
Definition at line 99 of file G4SmoothTrajectoryPoint.cc.
References G4BestUnit, G4cout, and GetAttDefs().
00100 { 00101 std::vector<G4AttValue>* values = new std::vector<G4AttValue>; 00102 00103 if (fAuxiliaryPointVector) { 00104 std::vector<G4ThreeVector>::iterator iAux; 00105 for (iAux = fAuxiliaryPointVector->begin(); 00106 iAux != fAuxiliaryPointVector->end(); ++iAux) { 00107 values->push_back(G4AttValue("Aux",G4BestUnit(*iAux,"Length"),"")); 00108 } 00109 } 00110 00111 values->push_back(G4AttValue("Pos",G4BestUnit(fPosition,"Length"),"")); 00112 00113 #ifdef G4ATTDEBUG 00114 G4cout << G4AttCheck(values,GetAttDefs()); 00115 #endif 00116 00117 return values; 00118 }
Reimplemented from G4VTrajectoryPoint.
Definition at line 83 of file G4SmoothTrajectoryPoint.cc.
References G4AttDefStore::GetInstance().
Referenced by CreateAttValues().
00084 { 00085 G4bool isNew; 00086 std::map<G4String,G4AttDef>* store 00087 = G4AttDefStore::GetInstance("G4SmoothTrajectoryPoint",isNew); 00088 if (isNew) { 00089 G4String Pos("Pos"); 00090 (*store)[Pos] = G4AttDef(Pos, "Step Position", 00091 "Physics","G4BestUnit","G4ThreeVector"); 00092 G4String Aux("Aux"); 00093 (*store)[Aux] = G4AttDef(Aux, "Auxiliary Point Position", 00094 "Physics","G4BestUnit","G4ThreeVector"); 00095 } 00096 return store; 00097 }
const std::vector<G4ThreeVector>* G4SmoothTrajectoryPoint::GetAuxiliaryPoints | ( | ) | const [inline, virtual] |
const G4ThreeVector G4SmoothTrajectoryPoint::GetPosition | ( | void | ) | const [inline, virtual] |
void G4SmoothTrajectoryPoint::operator delete | ( | void * | aTrajectoryPoint | ) | [inline] |
Definition at line 107 of file G4SmoothTrajectoryPoint.hh.
References aSmoothTrajectoryPointAllocator.
00108 { 00109 aSmoothTrajectoryPointAllocator.FreeSingle((G4SmoothTrajectoryPoint *) aTrajectoryPoint); 00110 }
void * G4SmoothTrajectoryPoint::operator new | ( | size_t | ) | [inline] |
Definition at line 100 of file G4SmoothTrajectoryPoint.hh.
References aSmoothTrajectoryPointAllocator.
00101 { 00102 void *aTrajectoryPoint; 00103 aTrajectoryPoint = (void *) aSmoothTrajectoryPointAllocator.MallocSingle(); 00104 return aTrajectoryPoint; 00105 }
int G4SmoothTrajectoryPoint::operator== | ( | const G4SmoothTrajectoryPoint & | right | ) | const [inline] |