Geant4  10.00.p02
MedicalBeam Class Reference

#include <MedicalBeam.hh>

+ Inheritance diagram for MedicalBeam:
+ Collaboration diagram for MedicalBeam:

Public Types

enum  FieldShape { SQUARE =0, CIRCLE, kSQUARE =0, kCIRCLE }
 
enum  FieldShape { SQUARE =0, CIRCLE, kSQUARE =0, kCIRCLE }
 

Public Member Functions

 MedicalBeam ()
 
 ~MedicalBeam ()
 
void SetParticleDefinition (G4ParticleDefinition *pd)
 
const G4ParticleDefinitionGetParticleDefinition () const
 
void SetKineticE (G4double e)
 
G4double GetKineticE () const
 
void SetSourcePosition (const G4ThreeVector &pos)
 
G4ThreeVector GetSourcePosition () const
 
void SetFieldShape (FieldShape shape)
 
FieldShape GetFieldShape () const
 
void SetSSD (G4double ssd)
 
G4double GetSSD () const
 
void SetFieldXY (G4double fx, G4double fy)
 
G4double GetFieldX () const
 
G4double GetFieldY () const
 
void SetFieldR (G4double r)
 
G4double GetFieldR () const
 
virtual void GeneratePrimaries (G4Event *anEvent)
 
 MedicalBeam ()
 
 ~MedicalBeam ()
 
void SetParticleDefinition (G4ParticleDefinition *pd)
 
const G4ParticleDefinitionGetParticleDefinition () const
 
void SetKineticE (G4double e)
 
G4double GetKineticE () const
 
void SetSourcePosition (const G4ThreeVector &pos)
 
G4ThreeVector GetSourcePosition () const
 
void SetFieldShape (FieldShape shape)
 
FieldShape GetFieldShape () const
 
void SetSSD (G4double ssd)
 
G4double GetSSD () const
 
void SetFieldXY (G4double fx, G4double fy)
 
G4double GetFieldX () const
 
G4double GetFieldY () const
 
void SetFieldR (G4double r)
 
G4double GetFieldR () const
 
virtual void GeneratePrimaries (G4Event *anEvent)
 
- Public Member Functions inherited from G4VUserPrimaryGeneratorAction
 G4VUserPrimaryGeneratorAction ()
 
virtual ~G4VUserPrimaryGeneratorAction ()
 

Protected Member Functions

G4ThreeVector GenerateBeamDirection () const
 

Protected Attributes

G4ParticleDefinitionparticle
 
G4double kineticE
 
G4ThreeVector sourcePosition
 
G4double SSD
 
FieldShape fieldShape
 
G4double fieldXY [2]
 
G4double fieldR
 

Private Member Functions

G4ThreeVector GenerateBeamDirection () const
 

Private Attributes

G4ParticleDefinitionfparticle
 
G4double fkineticE
 
G4ThreeVector fsourcePosition
 
G4double fSSD
 
FieldShape ffieldShape
 
G4double ffieldXY [2]
 
G4double ffieldR
 

Detailed Description

Definition at line 46 of file MedicalBeam.hh.

Member Enumeration Documentation

Enumerator
SQUARE 
CIRCLE 
kSQUARE 
kCIRCLE 

Definition at line 42 of file MedicalBeam.hh.

Enumerator
SQUARE 
CIRCLE 
kSQUARE 
kCIRCLE 

Definition at line 48 of file MedicalBeam.hh.

Constructor & Destructor Documentation

MedicalBeam::MedicalBeam ( )

Definition at line 49 of file MedicalBeam.cc.

References cm, and fieldXY.

MedicalBeam::~MedicalBeam ( )

Definition at line 63 of file MedicalBeam.cc.

MedicalBeam::MedicalBeam ( )
MedicalBeam::~MedicalBeam ( )

Member Function Documentation

G4ThreeVector MedicalBeam::GenerateBeamDirection ( ) const
protected

Definition at line 70 of file MedicalBeam.cc.

References DBL_MAX, fieldR, fieldShape, fieldXY, G4INCL::DeJongSpin::shoot(), sqr(), SQUARE, SSD, and z.

Referenced by GeneratePrimaries().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4ThreeVector MedicalBeam::GenerateBeamDirection ( ) const
private
virtual void MedicalBeam::GeneratePrimaries ( G4Event anEvent)
virtual
void MedicalBeam::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 112 of file MedicalBeam.cc.

References GenerateBeamDirection(), kineticE, ns, particle, sourcePosition, and sqr().

+ Here is the call graph for this function:

G4double MedicalBeam::GetFieldR ( ) const
G4double MedicalBeam::GetFieldR ( ) const
inline

Definition at line 140 of file MedicalBeam.hh.

References fieldR.

Referenced by BOOST_PYTHON_MODULE().

+ Here is the caller graph for this function:

FieldShape MedicalBeam::GetFieldShape ( ) const
MedicalBeam::FieldShape MedicalBeam::GetFieldShape ( ) const
inline

Definition at line 119 of file MedicalBeam.hh.

References fieldShape.

Referenced by BOOST_PYTHON_MODULE().

+ Here is the caller graph for this function:

G4double MedicalBeam::GetFieldX ( ) const
G4double MedicalBeam::GetFieldX ( ) const
inline

Definition at line 131 of file MedicalBeam.hh.

References fieldXY.

Referenced by BOOST_PYTHON_MODULE().

+ Here is the caller graph for this function:

G4double MedicalBeam::GetFieldY ( ) const
G4double MedicalBeam::GetFieldY ( ) const
inline

Definition at line 134 of file MedicalBeam.hh.

References fieldXY.

Referenced by BOOST_PYTHON_MODULE().

+ Here is the caller graph for this function:

G4double MedicalBeam::GetKineticE ( ) const
G4double MedicalBeam::GetKineticE ( ) const
inline

Definition at line 107 of file MedicalBeam.hh.

References kineticE.

Referenced by BOOST_PYTHON_MODULE().

+ Here is the caller graph for this function:

const G4ParticleDefinition* MedicalBeam::GetParticleDefinition ( ) const
const G4ParticleDefinition * MedicalBeam::GetParticleDefinition ( ) const
inline

Definition at line 101 of file MedicalBeam.hh.

References particle.

G4ThreeVector MedicalBeam::GetSourcePosition ( ) const
G4ThreeVector MedicalBeam::GetSourcePosition ( ) const
inline

Definition at line 113 of file MedicalBeam.hh.

References sourcePosition.

Referenced by BOOST_PYTHON_MODULE().

+ Here is the caller graph for this function:

G4double MedicalBeam::GetSSD ( ) const
G4double MedicalBeam::GetSSD ( ) const
inline

Definition at line 125 of file MedicalBeam.hh.

References SSD.

Referenced by BOOST_PYTHON_MODULE().

+ Here is the caller graph for this function:

void MedicalBeam::SetFieldR ( G4double  r)
void MedicalBeam::SetFieldR ( G4double  r)
inline

Definition at line 137 of file MedicalBeam.hh.

References fieldR.

Referenced by BOOST_PYTHON_MODULE().

+ Here is the caller graph for this function:

void MedicalBeam::SetFieldShape ( FieldShape  shape)
void MedicalBeam::SetFieldShape ( MedicalBeam::FieldShape  shape)
inline

Definition at line 116 of file MedicalBeam.hh.

References fieldShape.

Referenced by BOOST_PYTHON_MODULE().

+ Here is the caller graph for this function:

void MedicalBeam::SetFieldXY ( G4double  fx,
G4double  fy 
)
void MedicalBeam::SetFieldXY ( G4double  fx,
G4double  fy 
)
inline

Definition at line 128 of file MedicalBeam.hh.

References fieldXY.

void MedicalBeam::SetKineticE ( G4double  e)
void MedicalBeam::SetKineticE ( G4double  e)
inline

Definition at line 104 of file MedicalBeam.hh.

References kineticE.

Referenced by BOOST_PYTHON_MODULE().

+ Here is the caller graph for this function:

void MedicalBeam::SetParticleDefinition ( G4ParticleDefinition pd)
void MedicalBeam::SetParticleDefinition ( G4ParticleDefinition pd)
inline

Definition at line 98 of file MedicalBeam.hh.

References particle.

void MedicalBeam::SetSourcePosition ( const G4ThreeVector pos)
void MedicalBeam::SetSourcePosition ( const G4ThreeVector pos)
inline

Definition at line 110 of file MedicalBeam.hh.

References pos, and sourcePosition.

Referenced by BOOST_PYTHON_MODULE().

+ Here is the caller graph for this function:

void MedicalBeam::SetSSD ( G4double  ssd)
void MedicalBeam::SetSSD ( G4double  ssd)
inline

Definition at line 122 of file MedicalBeam.hh.

References SSD.

Referenced by BOOST_PYTHON_MODULE().

+ Here is the caller graph for this function:

Member Data Documentation

G4double MedicalBeam::ffieldR
private

Definition at line 84 of file MedicalBeam.hh.

FieldShape MedicalBeam::ffieldShape
private

Definition at line 82 of file MedicalBeam.hh.

G4double MedicalBeam::ffieldXY[2]
private

Definition at line 83 of file MedicalBeam.hh.

G4double MedicalBeam::fieldR
protected

Definition at line 58 of file MedicalBeam.hh.

Referenced by GenerateBeamDirection(), GetFieldR(), and SetFieldR().

FieldShape MedicalBeam::fieldShape
protected

Definition at line 56 of file MedicalBeam.hh.

Referenced by GenerateBeamDirection(), GetFieldShape(), and SetFieldShape().

G4double MedicalBeam::fieldXY[2]
protected

Definition at line 57 of file MedicalBeam.hh.

Referenced by GenerateBeamDirection(), GetFieldX(), GetFieldY(), MedicalBeam(), and SetFieldXY().

G4double MedicalBeam::fkineticE
private

Definition at line 78 of file MedicalBeam.hh.

G4ParticleDefinition* MedicalBeam::fparticle
private

Definition at line 77 of file MedicalBeam.hh.

G4ThreeVector MedicalBeam::fsourcePosition
private

Definition at line 79 of file MedicalBeam.hh.

G4double MedicalBeam::fSSD
private

Definition at line 81 of file MedicalBeam.hh.

G4double MedicalBeam::kineticE
protected

Definition at line 52 of file MedicalBeam.hh.

Referenced by GeneratePrimaries(), GetKineticE(), and SetKineticE().

G4ParticleDefinition* MedicalBeam::particle
protected

Definition at line 51 of file MedicalBeam.hh.

Referenced by GeneratePrimaries(), GetParticleDefinition(), and SetParticleDefinition().

G4ThreeVector MedicalBeam::sourcePosition
protected

Definition at line 53 of file MedicalBeam.hh.

Referenced by GeneratePrimaries(), GetSourcePosition(), and SetSourcePosition().

G4double MedicalBeam::SSD
protected

Definition at line 55 of file MedicalBeam.hh.

Referenced by GenerateBeamDirection(), GetSSD(), and SetSSD().


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