Geant4-11
Public Member Functions | Private Attributes
G4SmoothTrajectoryPoint Class Reference

#include <G4SmoothTrajectoryPoint.hh>

Inheritance diagram for G4SmoothTrajectoryPoint:
G4VTrajectoryPoint

Public Member Functions

virtual std::vector< G4AttValue > * CreateAttValues () const
 
 G4SmoothTrajectoryPoint ()
 
 G4SmoothTrajectoryPoint (const G4SmoothTrajectoryPoint &right)
 
 G4SmoothTrajectoryPoint (G4ThreeVector pos)
 
 G4SmoothTrajectoryPoint (G4ThreeVector pos, std::vector< G4ThreeVector > *auxiliaryPoints)
 
virtual const std::map< G4String, G4AttDef > * GetAttDefs () const
 
const std::vector< G4ThreeVector > * GetAuxiliaryPoints () const
 
const G4ThreeVector GetPosition () const
 
void operator delete (void *aTrajectoryPoint)
 
void * operator new (size_t)
 
G4SmoothTrajectoryPointoperator= (const G4SmoothTrajectoryPoint &)=delete
 
G4bool operator== (const G4SmoothTrajectoryPoint &right) const
 
G4bool operator== (const G4VTrajectoryPoint &right) const
 
virtual ~G4SmoothTrajectoryPoint ()
 

Private Attributes

std::vector< G4ThreeVector > * fAuxiliaryPointVector = nullptr
 
G4ThreeVector fPosition
 

Detailed Description

Definition at line 47 of file G4SmoothTrajectoryPoint.hh.

Constructor & Destructor Documentation

◆ G4SmoothTrajectoryPoint() [1/4]

G4SmoothTrajectoryPoint::G4SmoothTrajectoryPoint ( )

Definition at line 53 of file G4SmoothTrajectoryPoint.cc.

54{
55 fPosition = G4ThreeVector(0.,0.,0.);
56}
CLHEP::Hep3Vector G4ThreeVector

References fPosition.

◆ G4SmoothTrajectoryPoint() [2/4]

G4SmoothTrajectoryPoint::G4SmoothTrajectoryPoint ( G4ThreeVector  pos,
std::vector< G4ThreeVector > *  auxiliaryPoints 
)

Definition at line 63 of file G4SmoothTrajectoryPoint.cc.

66 : fPosition(pos), fAuxiliaryPointVector(auxiliaryPoints)
67{
68}
static const G4double pos
std::vector< G4ThreeVector > * fAuxiliaryPointVector

◆ G4SmoothTrajectoryPoint() [3/4]

G4SmoothTrajectoryPoint::G4SmoothTrajectoryPoint ( G4ThreeVector  pos)

Definition at line 58 of file G4SmoothTrajectoryPoint.cc.

59{
60 fPosition = pos;
61}

References fPosition, and pos.

◆ G4SmoothTrajectoryPoint() [4/4]

G4SmoothTrajectoryPoint::G4SmoothTrajectoryPoint ( const G4SmoothTrajectoryPoint right)

◆ ~G4SmoothTrajectoryPoint()

G4SmoothTrajectoryPoint::~G4SmoothTrajectoryPoint ( )
virtual

Definition at line 78 of file G4SmoothTrajectoryPoint.cc.

79{
81}

References fAuxiliaryPointVector.

Member Function Documentation

◆ CreateAttValues()

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

Reimplemented from G4VTrajectoryPoint.

Definition at line 102 of file G4SmoothTrajectoryPoint.cc.

103{
104 std::vector<G4AttValue>* values = new std::vector<G4AttValue>;
105
106 if (fAuxiliaryPointVector != nullptr)
107 {
108 for (auto iAux = fAuxiliaryPointVector->cbegin();
109 iAux != fAuxiliaryPointVector->cend(); ++iAux)
110 {
111 values->push_back(G4AttValue("Aux",G4BestUnit(*iAux,"Length"),""));
112 }
113 }
114
115 values->push_back(G4AttValue("Pos", G4BestUnit(fPosition,"Length"),""));
116
117#ifdef G4ATTDEBUG
118 G4cout << G4AttCheck(values,GetAttDefs());
119#endif
120
121 return values;
122}
#define G4BestUnit(a, b)
G4GLOB_DLL std::ostream G4cout
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const

References fAuxiliaryPointVector, fPosition, G4BestUnit, G4cout, and GetAttDefs().

◆ GetAttDefs()

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

Reimplemented from G4VTrajectoryPoint.

Definition at line 85 of file G4SmoothTrajectoryPoint.cc.

86{
87 G4bool isNew;
88 std::map<G4String,G4AttDef>* store
89 = G4AttDefStore::GetInstance("G4SmoothTrajectoryPoint",isNew);
90 if (isNew)
91 {
92 G4String Pos("Pos");
93 (*store)[Pos] = G4AttDef(Pos, "Step Position",
94 "Physics","G4BestUnit","G4ThreeVector");
95 G4String Aux("Aux");
96 (*store)[Aux] = G4AttDef(Aux, "Auxiliary Point Position",
97 "Physics","G4BestUnit","G4ThreeVector");
98 }
99 return store;
100}
bool G4bool
Definition: G4Types.hh:86
ush Pos
Definition: deflate.h:91
std::map< G4String, G4AttDef > * GetInstance(const G4String &storeKey, G4bool &isNew)

References G4AttDefStore::GetInstance().

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

◆ GetAuxiliaryPoints()

const std::vector< G4ThreeVector > * G4SmoothTrajectoryPoint::GetAuxiliaryPoints ( ) const
inlinevirtual

Reimplemented from G4VTrajectoryPoint.

Definition at line 74 of file G4SmoothTrajectoryPoint.hh.

75 { return fAuxiliaryPointVector; }

References fAuxiliaryPointVector.

◆ GetPosition()

const G4ThreeVector G4SmoothTrajectoryPoint::GetPosition ( void  ) const
inlinevirtual

Implements G4VTrajectoryPoint.

Definition at line 72 of file G4SmoothTrajectoryPoint.hh.

73 { return fPosition; }

References fPosition.

◆ operator delete()

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

Definition at line 102 of file G4SmoothTrajectoryPoint.hh.

103{
105 ->FreeSingle((G4SmoothTrajectoryPoint*) aTrajectoryPoint);
106}
G4TRACKING_DLL G4Allocator< G4SmoothTrajectoryPoint > *& aSmoothTrajectoryPointAllocator()

References aSmoothTrajectoryPointAllocator().

◆ operator new()

void * G4SmoothTrajectoryPoint::operator new ( size_t  )
inline

Definition at line 92 of file G4SmoothTrajectoryPoint.hh.

93{
94 if (aSmoothTrajectoryPointAllocator() == nullptr)
95 {
97 }
98 return (void *) aSmoothTrajectoryPointAllocator()->MallocSingle();
99}

References aSmoothTrajectoryPointAllocator().

◆ operator=()

G4SmoothTrajectoryPoint & G4SmoothTrajectoryPoint::operator= ( const G4SmoothTrajectoryPoint )
delete

◆ operator==() [1/2]

G4bool G4SmoothTrajectoryPoint::operator== ( const G4SmoothTrajectoryPoint right) const
inline

Definition at line 109 of file G4SmoothTrajectoryPoint.hh.

110{
111 return (this==&r);
112}

◆ operator==() [2/2]

G4bool G4VTrajectoryPoint::operator== ( const G4VTrajectoryPoint right) const
inherited

Definition at line 44 of file G4VTrajectoryPoint.cc.

45{
46 return (this==&right);
47}

Field Documentation

◆ fAuxiliaryPointVector

std::vector<G4ThreeVector>* G4SmoothTrajectoryPoint::fAuxiliaryPointVector = nullptr
private

◆ fPosition

G4ThreeVector G4SmoothTrajectoryPoint::fPosition
private

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