G4TrajectoryPoint Class Reference

#include <G4TrajectoryPoint.hh>

Inheritance diagram for G4TrajectoryPoint:

G4VTrajectoryPoint G4RichTrajectoryPoint

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

Detailed Description

Definition at line 59 of file G4TrajectoryPoint.hh.


Constructor & Destructor Documentation

G4TrajectoryPoint::G4TrajectoryPoint (  ) 

Definition at line 49 of file G4TrajectoryPoint.cc.

00050 {
00051   fPosition = G4ThreeVector(0.,0.,0.);
00052 }

G4TrajectoryPoint::G4TrajectoryPoint ( G4ThreeVector  pos  ) 

Definition at line 54 of file G4TrajectoryPoint.cc.

00055 {
00056   fPosition = pos;
00057 }

G4TrajectoryPoint::G4TrajectoryPoint ( const G4TrajectoryPoint right  ) 

Definition at line 59 of file G4TrajectoryPoint.cc.

00060  : G4VTrajectoryPoint(),fPosition(right.fPosition)
00061 {
00062 }

G4TrajectoryPoint::~G4TrajectoryPoint (  )  [virtual]

Definition at line 64 of file G4TrajectoryPoint.cc.

00065 {
00066 }


Member Function Documentation

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 }

const std::map< G4String, G4AttDef > * G4TrajectoryPoint::GetAttDefs (  )  const [virtual]

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]

Implements G4VTrajectoryPoint.

Definition at line 80 of file G4TrajectoryPoint.hh.

00081    { return fPosition; };

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]

Definition at line 76 of file G4TrajectoryPoint.hh.

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


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:53:33 2013 for Geant4 by  doxygen 1.4.7