Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4TrajectoryPoint Class Reference

#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
 
- Public Member Functions inherited from G4VTrajectoryPoint
 G4VTrajectoryPoint ()
 
virtual ~G4VTrajectoryPoint ()
 
G4bool operator== (const G4VTrajectoryPoint &right) const
 
virtual const G4ThreeVector GetPosition () const =0
 
virtual const std::vector< G4ThreeVector > * GetAuxiliaryPoints () 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() [1/3]

G4TrajectoryPoint::G4TrajectoryPoint ( )

Definition at line 49 of file G4TrajectoryPoint.cc.

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

◆ G4TrajectoryPoint() [2/3]

G4TrajectoryPoint::G4TrajectoryPoint ( G4ThreeVector  pos)

Definition at line 54 of file G4TrajectoryPoint.cc.

55{
56 fPosition = pos;
57}

◆ G4TrajectoryPoint() [3/3]

G4TrajectoryPoint::G4TrajectoryPoint ( const G4TrajectoryPoint right)

Definition at line 59 of file G4TrajectoryPoint.cc.

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

◆ ~G4TrajectoryPoint()

G4TrajectoryPoint::~G4TrajectoryPoint ( )
virtual

Definition at line 64 of file G4TrajectoryPoint.cc.

65{
66}

Member Function Documentation

◆ CreateAttValues()

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
G4DLLIMPORT std::ostream G4cout
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const

Referenced by G4RichTrajectoryPoint::CreateAttValues().

◆ GetAttDefs()

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}
bool G4bool
Definition: G4Types.hh:67
ush Pos
Definition: deflate.h:82
std::map< G4String, G4AttDef > * GetInstance(G4String storeKey, G4bool &isNew)

Referenced by CreateAttValues(), G4RichTrajectoryPoint::GetAttDefs(), G4VisCommandList::SetNewValue(), and G4VisCommandSceneAddTrajectories::SetNewValue().

◆ GetPosition()

const G4ThreeVector G4TrajectoryPoint::GetPosition ( ) const
inlinevirtual

Implements G4VTrajectoryPoint.

Definition at line 80 of file G4TrajectoryPoint.hh.

81 { return fPosition; };

◆ operator delete()

void G4TrajectoryPoint::operator delete ( void *  aTrajectoryPoint)
inline

Definition at line 109 of file G4TrajectoryPoint.hh.

110{
111 aTrajectoryPointAllocator.FreeSingle((G4TrajectoryPoint *) aTrajectoryPoint);
112}
G4DLLIMPORT G4Allocator< G4TrajectoryPoint > aTrajectoryPointAllocator

◆ operator new()

void * G4TrajectoryPoint::operator new ( size_t  )
inline

Definition at line 102 of file G4TrajectoryPoint.hh.

103{
104 void *aTrajectoryPoint;
105 aTrajectoryPoint = (void *) aTrajectoryPointAllocator.MallocSingle();
106 return aTrajectoryPoint;
107}

◆ operator==()

int G4TrajectoryPoint::operator== ( const G4TrajectoryPoint right) const
inline

Definition at line 76 of file G4TrajectoryPoint.hh.

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

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