BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes
BDSStep Class Reference

A simple class to represent the positions of a step. More...

#include <BDSStep.hh>

Collaboration diagram for BDSStep:
Collaboration graph

Public Member Functions

 BDSStep (G4ThreeVector preStepPointIn, G4ThreeVector postStepPointIn, G4VPhysicalVolume *volumeForTransformIn=nullptr)
 
BDSStep rotateZ (const G4double &angle)
 Mirror function to G4ThreeVector::rotateZ(). Returns copy that's rotated.
 
G4ThreeVector PreStepPoint () const
 Accessor.
 
G4ThreeVector PostStepPoint () const
 Accessor.
 
G4VPhysicalVolume * VolumeForTransform () const
 Accessor.
 
void SetPreStepPoint (G4ThreeVector preIn)
 Setter.
 
void SetPostStepPoint (G4ThreeVector postIn)
 Setter.
 
void SetVolumeForTransform (G4VPhysicalVolume *volIn)
 Setter.
 

Private Attributes

G4ThreeVector preStepPoint
 
G4ThreeVector postStepPoint
 
G4VPhysicalVolume * volumeForTransform
 The volume that was used for the transform.
 

Detailed Description

A simple class to represent the positions of a step.

Author
Laurie Nevay

Definition at line 32 of file BDSStep.hh.

Constructor & Destructor Documentation

◆ BDSStep() [1/2]

BDSStep::BDSStep ( )

Definition at line 22 of file BDSStep.cc.

◆ BDSStep() [2/2]

BDSStep::BDSStep ( G4ThreeVector  preStepPointIn,
G4ThreeVector  postStepPointIn,
G4VPhysicalVolume *  volumeForTransformIn = nullptr 
)

Definition at line 28 of file BDSStep.cc.

◆ ~BDSStep()

BDSStep::~BDSStep ( )

Definition at line 36 of file BDSStep.cc.

Member Function Documentation

◆ PostStepPoint()

G4ThreeVector BDSStep::PostStepPoint ( ) const
inline

◆ PreStepPoint()

G4ThreeVector BDSStep::PreStepPoint ( ) const
inline

◆ rotateZ()

BDSStep BDSStep::rotateZ ( const G4double &  angle)

Mirror function to G4ThreeVector::rotateZ(). Returns copy that's rotated.

Definition at line 39 of file BDSStep.cc.

References volumeForTransform.

Referenced by BDSIntegratorDipoleFringe::BaseStepper(), and BDSAuxiliaryNavigator::GlobalToCurvilinear().

Here is the caller graph for this function:

◆ SetPostStepPoint()

void BDSStep::SetPostStepPoint ( G4ThreeVector  postIn)
inline

Setter.

Definition at line 49 of file BDSStep.hh.

◆ SetPreStepPoint()

void BDSStep::SetPreStepPoint ( G4ThreeVector  preIn)
inline

Setter.

Definition at line 48 of file BDSStep.hh.

◆ SetVolumeForTransform()

void BDSStep::SetVolumeForTransform ( G4VPhysicalVolume *  volIn)
inline

Setter.

Definition at line 50 of file BDSStep.hh.

References volumeForTransform.

◆ VolumeForTransform()

G4VPhysicalVolume * BDSStep::VolumeForTransform ( ) const
inline

Field Documentation

◆ postStepPoint

G4ThreeVector BDSStep::postStepPoint
private

Definition at line 58 of file BDSStep.hh.

◆ preStepPoint

G4ThreeVector BDSStep::preStepPoint
private

Definition at line 57 of file BDSStep.hh.

◆ volumeForTransform

G4VPhysicalVolume* BDSStep::volumeForTransform
private

The volume that was used for the transform.

Definition at line 59 of file BDSStep.hh.

Referenced by rotateZ(), SetVolumeForTransform(), and VolumeForTransform().


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