Geant4  10.02.p03
G4SmoothTrajectoryPoint Class Reference

#include <G4SmoothTrajectoryPoint.hh>

Inheritance diagram for G4SmoothTrajectoryPoint:
Collaboration 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
 
- Public Member Functions inherited from G4VTrajectoryPoint
 G4VTrajectoryPoint ()
 
virtual ~G4VTrajectoryPoint ()
 
G4bool operator== (const G4VTrajectoryPoint &right) const
 

Private Member Functions

G4SmoothTrajectoryPointoperator= (const G4SmoothTrajectoryPoint &)
 

Private Attributes

G4ThreeVector fPosition
 
std::vector< G4ThreeVector > * fAuxiliaryPointVector
 

Detailed Description

Definition at line 48 of file G4SmoothTrajectoryPoint.hh.

Constructor & Destructor Documentation

◆ G4SmoothTrajectoryPoint() [1/4]

G4SmoothTrajectoryPoint::G4SmoothTrajectoryPoint ( )

Definition at line 50 of file G4SmoothTrajectoryPoint.cc.

52 {
53  fPosition = G4ThreeVector(0.,0.,0.);
54 }
CLHEP::Hep3Vector G4ThreeVector
std::vector< G4ThreeVector > * fAuxiliaryPointVector

◆ G4SmoothTrajectoryPoint() [2/4]

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

Definition at line 62 of file G4SmoothTrajectoryPoint.cc.

64 : fPosition(pos),
65  fAuxiliaryPointVector(auxiliaryPoints)
66 {}
std::vector< G4ThreeVector > * fAuxiliaryPointVector

◆ G4SmoothTrajectoryPoint() [3/4]

G4SmoothTrajectoryPoint::G4SmoothTrajectoryPoint ( G4ThreeVector  pos)

Definition at line 56 of file G4SmoothTrajectoryPoint.cc.

58 {
59  fPosition = pos;
60 }
std::vector< G4ThreeVector > * fAuxiliaryPointVector
static const G4double pos

◆ G4SmoothTrajectoryPoint() [4/4]

G4SmoothTrajectoryPoint::G4SmoothTrajectoryPoint ( const G4SmoothTrajectoryPoint right)

Definition at line 68 of file G4SmoothTrajectoryPoint.cc.

◆ ~G4SmoothTrajectoryPoint()

G4SmoothTrajectoryPoint::~G4SmoothTrajectoryPoint ( )
virtual

Definition at line 74 of file G4SmoothTrajectoryPoint.cc.

75 {
77  delete fAuxiliaryPointVector;
78  }
79 }
std::vector< G4ThreeVector > * fAuxiliaryPointVector

Member Function Documentation

◆ CreateAttValues()

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

Reimplemented from G4VTrajectoryPoint.

Definition at line 99 of file G4SmoothTrajectoryPoint.cc.

100 {
101  std::vector<G4AttValue>* values = new std::vector<G4AttValue>;
102 
103  if (fAuxiliaryPointVector) {
104  std::vector<G4ThreeVector>::iterator iAux;
105  for (iAux = fAuxiliaryPointVector->begin();
106  iAux != fAuxiliaryPointVector->end(); ++iAux) {
107  values->push_back(G4AttValue("Aux",G4BestUnit(*iAux,"Length"),""));
108  }
109  }
110 
111  values->push_back(G4AttValue("Pos",G4BestUnit(fPosition,"Length"),""));
112 
113 #ifdef G4ATTDEBUG
114  G4cout << G4AttCheck(values,GetAttDefs());
115 #endif
116 
117  return values;
118 }
std::vector< G4ThreeVector > * fAuxiliaryPointVector
#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:

◆ GetAttDefs()

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

Reimplemented from G4VTrajectoryPoint.

Definition at line 83 of file G4SmoothTrajectoryPoint.cc.

84 {
85  G4bool isNew;
86  std::map<G4String,G4AttDef>* store
87  = G4AttDefStore::GetInstance("G4SmoothTrajectoryPoint",isNew);
88  if (isNew) {
89  G4String Pos("Pos");
90  (*store)[Pos] = G4AttDef(Pos, "Step Position",
91  "Physics","G4BestUnit","G4ThreeVector");
92  G4String Aux("Aux");
93  (*store)[Aux] = G4AttDef(Aux, "Auxiliary Point Position",
94  "Physics","G4BestUnit","G4ThreeVector");
95  }
96  return store;
97 }
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:

◆ GetAuxiliaryPoints()

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

Reimplemented from G4VTrajectoryPoint.

Definition at line 79 of file G4SmoothTrajectoryPoint.hh.

80  { return fAuxiliaryPointVector; }
std::vector< G4ThreeVector > * fAuxiliaryPointVector
Here is the call graph for this function:

◆ GetPosition()

const G4ThreeVector G4SmoothTrajectoryPoint::GetPosition ( void  ) const
inlinevirtual

Implements G4VTrajectoryPoint.

Definition at line 77 of file G4SmoothTrajectoryPoint.hh.

78  { return fPosition; }

◆ operator delete()

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

Definition at line 105 of file G4SmoothTrajectoryPoint.hh.

106 {
107  aSmoothTrajectoryPointAllocator->FreeSingle((G4SmoothTrajectoryPoint *) aTrajectoryPoint);
108 }
G4TRACKING_DLL G4ThreadLocal G4Allocator< G4SmoothTrajectoryPoint > * aSmoothTrajectoryPointAllocator

◆ operator new()

void * G4SmoothTrajectoryPoint::operator new ( size_t  )
inline

Definition at line 98 of file G4SmoothTrajectoryPoint.hh.

99 {
102  return (void *) aSmoothTrajectoryPointAllocator->MallocSingle();
103 }
G4TRACKING_DLL G4ThreadLocal G4Allocator< G4SmoothTrajectoryPoint > * aSmoothTrajectoryPointAllocator

◆ operator=()

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

◆ operator==()

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

Definition at line 73 of file G4SmoothTrajectoryPoint.hh.

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

Member Data Documentation

◆ fAuxiliaryPointVector

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

Definition at line 92 of file G4SmoothTrajectoryPoint.hh.

◆ fPosition

G4ThreeVector G4SmoothTrajectoryPoint::fPosition
private

Definition at line 91 of file G4SmoothTrajectoryPoint.hh.


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