#include <G4RayTrajectory.hh>
Definition at line 57 of file G4RayTrajectory.hh.
◆ G4RayTrajectory() [1/2]
G4RayTrajectory::G4RayTrajectory |
( |
| ) |
|
Definition at line 48 of file G4RayTrajectory.cc.
49{
50 positionRecord = new std::vector<G4RayTrajectoryPoint*>;
51}
◆ G4RayTrajectory() [2/2]
Definition at line 53 of file G4RayTrajectory.cc.
55{
56 positionRecord = new std::vector<G4RayTrajectoryPoint*>;
57 for(size_t i=0;i<right.positionRecord->size();i++)
58 {
60 ((*(right.positionRecord))[i]);
62 }
63}
◆ ~G4RayTrajectory()
G4RayTrajectory::~G4RayTrajectory |
( |
| ) |
|
|
virtual |
Definition at line 65 of file G4RayTrajectory.cc.
66{
67
68 for(size_t i=0;i<positionRecord->size();i++)
69 { delete (*positionRecord)[i]; }
70 positionRecord->clear();
71 delete positionRecord;
72}
◆ AppendStep()
void G4RayTrajectory::AppendStep |
( |
const G4Step * |
aStep | ) |
|
|
virtual |
Implements G4VTrajectory.
Definition at line 74 of file G4RayTrajectory.cc.
75{
77
79
84 if(valid) { theLocalNormal = -theLocalNormal; }
88
92 if(visManager) {
94 if (viewer) {
96 }
97 }
99
102 if(postPhys) {
104 if(visManager) {
106 if (viewer) {
108 }
109 }
110 }
112
113 positionRecord->push_back(trajectoryPoint);
114}
const G4VisAttributes * GetVisAttributes() const
virtual G4ThreeVector GetLocalExitNormal(G4bool *valid)
const G4AffineTransform GetLocalToGlobalTransform() const
void SetSurfaceNormal(G4ThreeVector val)
void SetStepLength(G4double val)
void SetPreStepAtt(const G4VisAttributes *val)
void SetPostStepAtt(const G4VisAttributes *val)
G4VPhysicalVolume * GetPhysicalVolume() const
G4StepPoint * GetPreStepPoint() const
G4double GetStepLength() const
G4StepPoint * GetPostStepPoint() const
static G4TransportationManager * GetTransportationManager()
G4Navigator * GetNavigatorForTracking() const
G4LogicalVolume * GetLogicalVolume() const
const G4VisAttributes * GetApplicableVisAttributes(const G4VisAttributes *) const
G4VViewer * GetCurrentViewer() const
◆ DrawTrajectory() [1/2]
virtual void G4RayTrajectory::DrawTrajectory |
( |
| ) |
const |
|
inlinevirtual |
◆ DrawTrajectory() [2/2]
virtual void G4RayTrajectory::DrawTrajectory |
( |
G4int |
| ) |
const |
|
inlinevirtual |
◆ GetCharge()
G4double G4RayTrajectory::GetCharge |
( |
| ) |
const |
|
inlinevirtual |
◆ GetInitialMomentum()
◆ GetParentID()
G4int G4RayTrajectory::GetParentID |
( |
| ) |
const |
|
inlinevirtual |
◆ GetParticleName()
G4String G4RayTrajectory::GetParticleName |
( |
| ) |
const |
|
inlinevirtual |
◆ GetPDGEncoding()
G4int G4RayTrajectory::GetPDGEncoding |
( |
| ) |
const |
|
inlinevirtual |
◆ GetPoint()
◆ GetPointC()
◆ GetPointEntries()
virtual int G4RayTrajectory::GetPointEntries |
( |
| ) |
const |
|
inlinevirtual |
◆ GetTrackID()
G4int G4RayTrajectory::GetTrackID |
( |
| ) |
const |
|
inlinevirtual |
◆ MergeTrajectory()
void G4RayTrajectory::MergeTrajectory |
( |
G4VTrajectory * |
secondTrajectory | ) |
|
|
virtual |
Implements G4VTrajectory.
Definition at line 119 of file G4RayTrajectory.cc.
120{
121 if(!secondTrajectory) return;
122
125 for(
G4int i=0;i<ent;i++)
127 seco->positionRecord->clear();
128}
virtual G4VTrajectoryPoint * GetPoint(G4int i) const
virtual int GetPointEntries() const
◆ operator delete()
void G4RayTrajectory::operator delete |
( |
void * |
aTrajectory | ) |
|
|
inline |
Definition at line 112 of file G4RayTrajectory.hh.
113{
115}
G4DLLIMPORT G4Allocator< G4RayTrajectory > G4RayTrajectoryAllocator
◆ operator new()
void * G4RayTrajectory::operator new |
( |
size_t |
| ) |
|
|
inline |
Definition at line 105 of file G4RayTrajectory.hh.
106{
107 void* aTrajectory;
109 return aTrajectory;
110}
◆ ShowTrajectory()
void G4RayTrajectory::ShowTrajectory |
( |
std::ostream & |
| ) |
const |
|
virtual |
The documentation for this class was generated from the following files: