Geant4-11
Public Member Functions | Protected Attributes
G4IdentityTrajectoryFilter Class Reference

#include <G4IdentityTrajectoryFilter.hh>

Inheritance diagram for G4IdentityTrajectoryFilter:
G4VCurvedTrajectoryFilter

Public Member Functions

void CreateNewTrajectorySegment ()
 
 G4IdentityTrajectoryFilter ()=default
 
 G4IdentityTrajectoryFilter (const G4IdentityTrajectoryFilter &)=delete
 
std::vector< G4ThreeVector > * GimmeThePointsAndForgetThem ()
 
G4IdentityTrajectoryFilteroperator= (const G4IdentityTrajectoryFilter &)=delete
 
void TakeIntermediatePoint (G4ThreeVector newPoint)
 
virtual ~G4IdentityTrajectoryFilter ()=default
 

Protected Attributes

std::vector< G4ThreeVector > * fpFilteredPoints = nullptr
 

Detailed Description

Definition at line 46 of file G4IdentityTrajectoryFilter.hh.

Constructor & Destructor Documentation

◆ G4IdentityTrajectoryFilter() [1/2]

G4IdentityTrajectoryFilter::G4IdentityTrajectoryFilter ( )
default

◆ ~G4IdentityTrajectoryFilter()

virtual G4IdentityTrajectoryFilter::~G4IdentityTrajectoryFilter ( )
virtualdefault

◆ G4IdentityTrajectoryFilter() [2/2]

G4IdentityTrajectoryFilter::G4IdentityTrajectoryFilter ( const G4IdentityTrajectoryFilter )
delete

Member Function Documentation

◆ CreateNewTrajectorySegment()

void G4VCurvedTrajectoryFilter::CreateNewTrajectorySegment ( )
inherited

Definition at line 50 of file G4VCurvedTrajectoryFilter.cc.

51{
52 if (fpFilteredPoints != nullptr)
53 {
54 // GimmePoints has not been called (it would have set the
55 // pointer to nullptr), therefore nobody has taken charge of the
56 // points and they will never be deleted!
57 G4cout << "!!!!!!!! Filter: auxiliary points are being memory leaked !!!!!"
58 << G4endl;
59 }
60 fpFilteredPoints = new std::vector<G4ThreeVector>;
61}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
std::vector< G4ThreeVector > * fpFilteredPoints

References G4VCurvedTrajectoryFilter::fpFilteredPoints, G4cout, and G4endl.

Referenced by G4PropagatorInField::ComputeStep().

◆ GimmeThePointsAndForgetThem()

std::vector< G4ThreeVector > * G4VCurvedTrajectoryFilter::GimmeThePointsAndForgetThem ( )
inherited

Definition at line 34 of file G4VCurvedTrajectoryFilter.cc.

35{
36 std::vector<G4ThreeVector>* tmp = fpFilteredPoints;
37 // ParticleChangeForTransport invokes this method (via
38 // PropagatorInField) at every Step, even if the step did not
39 // involve PropagatorInField. Must, therefore, ensure that points
40 // submitted by previous invocations of PIF are not
41 // copied. Therefore the points must be cleared. (Note that the
42 // responsibility for deleting the vector lies with the
43 // SmoothTrajctoryPoint, which is the vector's final destination.)
44 // (jacek 08/11/2002)
45 fpFilteredPoints = nullptr;
46 return tmp;
47}

References G4VCurvedTrajectoryFilter::fpFilteredPoints.

Referenced by G4PropagatorInField::GimmeTrajectoryVectorAndForgetIt().

◆ operator=()

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

◆ TakeIntermediatePoint()

void G4IdentityTrajectoryFilter::TakeIntermediatePoint ( G4ThreeVector  newPoint)
virtual

Implements G4VCurvedTrajectoryFilter.

Definition at line 34 of file G4IdentityTrajectoryFilter.cc.

35{
36 // Just store every single point, initially. (jacek 30/10/2002)
37 // Implement more sophisticated filters later. Copy by value into
38 // the vector; the vector will never be copied by value itself. In
39 // the final version, will probably want to create the intermediate
40 // points at this stage.
41 //
42 fpFilteredPoints->push_back( newPoint );
43}

References G4VCurvedTrajectoryFilter::fpFilteredPoints.

Field Documentation

◆ fpFilteredPoints

std::vector<G4ThreeVector>* G4VCurvedTrajectoryFilter::fpFilteredPoints = nullptr
protectedinherited

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