Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4TrajectoryPoint Class Reference

#include <G4TrajectoryPoint.hh>

Inheritance diagram for G4TrajectoryPoint:
Collaboration diagram for G4TrajectoryPoint:

Public Member Functions

 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
 
virtual const std::map
< G4String, G4AttDef > * 
GetAttDefs () const
 
virtual std::vector< G4AttValue > * CreateAttValues () 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 60 of file G4TrajectoryPoint.hh.

Constructor & Destructor Documentation

G4TrajectoryPoint::G4TrajectoryPoint ( )

Definition at line 49 of file G4TrajectoryPoint.cc.

50 {
51  fPosition = G4ThreeVector(0.,0.,0.);
52 }
CLHEP::Hep3Vector G4ThreeVector
G4TrajectoryPoint::G4TrajectoryPoint ( G4ThreeVector  pos)

Definition at line 54 of file G4TrajectoryPoint.cc.

55 {
56  fPosition = pos;
57 }
static const G4double pos
G4TrajectoryPoint::G4TrajectoryPoint ( const G4TrajectoryPoint right)

Definition at line 59 of file G4TrajectoryPoint.cc.

60  : G4VTrajectoryPoint(),fPosition(right.fPosition)
61 {
62 }
G4TrajectoryPoint::~G4TrajectoryPoint ( )
virtual

Definition at line 64 of file G4TrajectoryPoint.cc.

65 {
66 }

Member Function Documentation

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

Reimplemented from G4VTrajectoryPoint.

Reimplemented in G4RichTrajectoryPoint.

Definition at line 81 of file G4TrajectoryPoint.cc.

82 {
83  std::vector<G4AttValue>* values = new std::vector<G4AttValue>;
84 
85  values->push_back(G4AttValue("Pos",G4BestUnit(fPosition,"Length"),""));
86 
87 #ifdef G4ATTDEBUG
88  G4cout << G4AttCheck(values,GetAttDefs());
89 #endif
90 
91  return values;
92 }
#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:

Here is the caller graph for this function:

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

Reimplemented from G4VTrajectoryPoint.

Reimplemented in G4RichTrajectoryPoint.

Definition at line 68 of file G4TrajectoryPoint.cc.

69 {
70  G4bool isNew;
71  std::map<G4String,G4AttDef>* store
72  = G4AttDefStore::GetInstance("G4TrajectoryPoint",isNew);
73  if (isNew) {
74  G4String Pos("Pos");
75  (*store)[Pos] =
76  G4AttDef(Pos, "Position", "Physics","G4BestUnit","G4ThreeVector");
77  }
78  return store;
79 }
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 G4TrajectoryPoint::GetPosition ( void  ) const
inlinevirtual

Implements G4VTrajectoryPoint.

Definition at line 81 of file G4TrajectoryPoint.hh.

82  { return fPosition; };
void G4TrajectoryPoint::operator delete ( void aTrajectoryPoint)
inline

Definition at line 107 of file G4TrajectoryPoint.hh.

108 {
109  aTrajectoryPointAllocator->FreeSingle((G4TrajectoryPoint *) aTrajectoryPoint);
110 }
G4TRACKING_DLL G4ThreadLocal G4Allocator< G4TrajectoryPoint > * aTrajectoryPointAllocator
void * G4TrajectoryPoint::operator new ( size_t  )
inline

Definition at line 100 of file G4TrajectoryPoint.hh.

101 {
104  return (void *) aTrajectoryPointAllocator->MallocSingle();
105 }
G4TRACKING_DLL G4ThreadLocal G4Allocator< G4TrajectoryPoint > * aTrajectoryPointAllocator
int G4TrajectoryPoint::operator== ( const G4TrajectoryPoint right) const
inline

Definition at line 77 of file G4TrajectoryPoint.hh.

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

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