#include <BLPhysics.hh>
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 |
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] |
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 }
bool BLPhysics::stochasticsEnabled [protected] |
Referenced by getStochasticsEnabled(), and BLCMDphysics::setDoStochastics().
G4double BLPhysics::minRangeCut [protected] |