BLPhysics Class Reference

#include <BLPhysics.hh>

Inheritance diagram for BLPhysics:

BLCMDphysics

List of all members.


Detailed Description

class BLPhysics is the interface class for selecting the physics processes to be used in the simulation.

Note: all functions are either inline or abstract, so no .cc file is needed.

Public Member Functions

 BLPhysics ()
 default constructor.
virtual ~BLPhysics ()
 destructor.
virtual void setDoStochastics (BLSetValue value, G4bool quiet=false)=0
 setNoStochastics() sets whether or not stochastic processes are to be enabled. Note that Decay is a stochastic process. The argument can be FORCE_ON, FORCE_OFF, and NORMAL (which means use the doStochastics parameter of the physics command).
virtual G4VUserPhysicsList * getPhysicsList ()=0
 getPhysicsList() returns the G4PhysicsList.
bool getStochasticsEnabled ()
 getStochasticsEnabled() returns true if stochastics are enabled, false if not.
G4double getRangeCut ()
 getRangeCut() returns the range cut.
bool isStochasticProcess (G4VProcess *process)
 isStochasticProcess() returns true if the process is stochastic.
bool isStochasticProcess (G4String name)
 isStochasticProcess() returns true if the process is stochastic.

Protected Attributes

bool stochasticsEnabled
G4double minRangeCut


Constructor & Destructor Documentation

BLPhysics::BLPhysics (  )  [inline]

default constructor.

00039 { }

virtual BLPhysics::~BLPhysics (  )  [inline, virtual]

destructor.

00042 { }


Member Function Documentation

virtual void BLPhysics::setDoStochastics ( BLSetValue  value,
G4bool  quiet = false 
) [pure virtual]

setNoStochastics() sets whether or not stochastic processes are to be enabled. Note that Decay is a stochastic process. The argument can be FORCE_ON, FORCE_OFF, and NORMAL (which means use the doStochastics parameter of the physics command).

Implemented in BLCMDphysics.

Referenced by BLCMDtrackermode::callback(), BLManager::displayVisual(), BLCMDtracker::fitTrack(), BLManager::trackBeam(), and BLManager::trackTuneAndReferenceParticles().

virtual G4VUserPhysicsList* BLPhysics::getPhysicsList (  )  [pure virtual]

getPhysicsList() returns the G4PhysicsList.

Implemented in BLCMDphysics.

Referenced by BLManager::registerPhysics().

bool BLPhysics::getStochasticsEnabled (  )  [inline]

getStochasticsEnabled() returns true if stochastics are enabled, false if not.

References stochasticsEnabled.

00055 { return stochasticsEnabled; }

G4double BLPhysics::getRangeCut (  )  [inline]

getRangeCut() returns the range cut.

References minRangeCut.

00058 { return minRangeCut; }

bool BLPhysics::isStochasticProcess ( G4VProcess *  process  )  [inline]

isStochasticProcess() returns true if the process is stochastic.

Referenced by BLCMDphysics::setDoStochastics().

00062                 { return isStochasticProcess(process->GetProcessName()); }

bool BLPhysics::isStochasticProcess ( G4String  name  )  [inline]

isStochasticProcess() returns true if the process is stochastic.

00065                                                 {
00066                 if(name.find("Trans") < name.size()) return false;
00067                 if(name.find("Ioni") < name.size()) return false;
00068                 if(name.find("Limiter") < name.size()) return false;
00069                 if(name.find("BLCMD") < name.size()) return false;
00070                 return true;
00071         }


Member Data Documentation

G4double BLPhysics::minRangeCut [protected]


The documentation for this class was generated from the following file:
g4beamline