Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RE04TrajectoryPoint Class Reference

#include <RE04TrajectoryPoint.hh>

Inheritance diagram for RE04TrajectoryPoint:
Collaboration diagram for RE04TrajectoryPoint:

Public Member Functions

 RE04TrajectoryPoint ()
 
 RE04TrajectoryPoint (G4ThreeVector pos, const G4Material *mat)
 
 RE04TrajectoryPoint (const RE04TrajectoryPoint &right)
 
virtual ~RE04TrajectoryPoint ()
 
voidoperator new (size_t)
 
void operator delete (void *aTrajectoryPoint)
 
int operator== (const RE04TrajectoryPoint &right) const
 
virtual const G4ThreeVector GetPosition () const
 
const G4MaterialGetMaterial () 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

Trajectory point class

Definition at line 58 of file RE04TrajectoryPoint.hh.

Constructor & Destructor Documentation

RE04TrajectoryPoint::RE04TrajectoryPoint ( )

Definition at line 48 of file RE04TrajectoryPoint.cc.

50  fPosition(G4ThreeVector(0.,0.,0.)),
51  fpMaterial(0)
52 {
53 }
CLHEP::Hep3Vector G4ThreeVector
RE04TrajectoryPoint::RE04TrajectoryPoint ( G4ThreeVector  pos,
const G4Material mat 
)

Definition at line 56 of file RE04TrajectoryPoint.cc.

59  fPosition(pos),
60  fpMaterial(mat)
61 {
62 }
RE04TrajectoryPoint::RE04TrajectoryPoint ( const RE04TrajectoryPoint right)

Definition at line 65 of file RE04TrajectoryPoint.cc.

67  fPosition(right.fPosition),
68  fpMaterial(right.fpMaterial)
69 {
70 }
RE04TrajectoryPoint::~RE04TrajectoryPoint ( )
virtual

Definition at line 73 of file RE04TrajectoryPoint.cc.

74 {
75 }

Member Function Documentation

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

Reimplemented from G4VTrajectoryPoint.

Definition at line 95 of file RE04TrajectoryPoint.cc.

96 {
97  std::vector<G4AttValue>* values = new std::vector<G4AttValue>;
98 
99  values->push_back(G4AttValue("Pos",G4BestUnit(fPosition,"Length"),""));
100  values->push_back(G4AttValue("Mat",fpMaterial->GetName(),""));
101 
102 #ifdef G4ATTDEBUG
103  G4cout << G4AttCheck(values,GetAttDefs());
104 #endif
105 
106  return values;
107 }
const G4String & GetName() const
Definition: G4Material.hh:178
#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:

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

Reimplemented from G4VTrajectoryPoint.

Definition at line 78 of file RE04TrajectoryPoint.cc.

79 {
80  G4bool isNew;
81  std::map<G4String,G4AttDef>* store
82  = G4AttDefStore::GetInstance("RE04TrajectoryPoint",isNew);
83  if (isNew) {
84  G4String pos("Pos");
85  (*store)[pos] =
86  G4AttDef(pos, "Position", "Physics","G4BestUnit","G4ThreeVector");
87  G4String mat("Mat");
88  (*store)[mat] =
89  G4AttDef(mat, "Mat", "Physics","Name","G4String");
90  }
91  return store;
92 }
bool G4bool
Definition: G4Types.hh:79
std::map< G4String, G4AttDef > * GetInstance(const G4String &storeKey, G4bool &isNew)
static const G4double pos

Here is the call graph for this function:

Here is the caller graph for this function:

const G4Material* RE04TrajectoryPoint::GetMaterial ( ) const
inline

Definition at line 81 of file RE04TrajectoryPoint.hh.

82  { return fpMaterial; };
virtual const G4ThreeVector RE04TrajectoryPoint::GetPosition ( ) const
inlinevirtual

Implements G4VTrajectoryPoint.

Definition at line 79 of file RE04TrajectoryPoint.hh.

80  { return fPosition; };
void RE04TrajectoryPoint::operator delete ( void aTrajectoryPoint)
inline

Definition at line 107 of file RE04TrajectoryPoint.hh.

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

Definition at line 100 of file RE04TrajectoryPoint.hh.

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

Definition at line 75 of file RE04TrajectoryPoint.hh.

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

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