TG4G3PhysicsManager* TG4G3PhysicsManager::fgInstance = 0;
+//_____________________________________________________________________________
TG4G3PhysicsManager::TG4G3PhysicsManager()
: fLock(false),
fCutVector(0),
FillG3ControlNameVector();
}
+//_____________________________________________________________________________
TG4G3PhysicsManager::TG4G3PhysicsManager(const TG4G3PhysicsManager& right) {
//
TG4Globals::Exception(
"Attempt to copy TG4G3PhysicsManager singleton.");
}
+//_____________________________________________________________________________
TG4G3PhysicsManager::~TG4G3PhysicsManager() {
//
delete fIsCutVector;
// operators
+//_____________________________________________________________________________
TG4G3PhysicsManager&
TG4G3PhysicsManager::operator=(const TG4G3PhysicsManager& right)
{
// private methods
+//_____________________________________________________________________________
void TG4G3PhysicsManager::FillG3CutNameVector()
{
// Defines fCutNameVector.
fG3CutNameVector.insert("PPCUTM");
}
+//_____________________________________________________________________________
void TG4G3PhysicsManager::FillG3ControlNameVector()
{
// Defines fControlNameVector.
fG3ControlNameVector.insert("MULS");
}
+//_____________________________________________________________________________
void TG4G3PhysicsManager::SetCut(TG4G3Cut cut, G4double cutValue)
{
// Sets kinetic energy cut (in a G3-like way).
SwitchIsCutVector(cut);
}
+//_____________________________________________________________________________
void TG4G3PhysicsManager::SetProcess(TG4G3Control control, G4int controlValue)
{
// Sets control process control (in a G3-like way).
fControlVector->SetG3Control(control, controlValue);
}
-
+//_____________________________________________________________________________
void TG4G3PhysicsManager::SwitchIsCutVector(TG4G3Cut cut)
{
// Updates the vector of booleans (fIsCutVector) for the specified cut.
}
}
+//_____________________________________________________________________________
void TG4G3PhysicsManager::SwitchIsControlVector(TG4G3Control control)
{
// Updates the vector of booleans (fIsControlVector) for the specified control.
}
}
+//_____________________________________________________________________________
TG4G3Cut TG4G3PhysicsManager::GetG3Cut(G4String cutName)
{
// Retrieves corresponding TG4G3Cut constant from the cutName.
else return kNoG3Cuts;
}
+//_____________________________________________________________________________
TG4G3Control TG4G3PhysicsManager::GetG3Control(G4String controlName)
{
// Retrieves corresponding TG4G3Control constant from the controlName.
// public methods
-
+//_____________________________________________________________________________
void TG4G3PhysicsManager::CheckLock()
{
// Gives exception in case the physics manager is locked.
}
}
-
+//_____________________________________________________________________________
G4VProcess* TG4G3PhysicsManager::FindProcess(G4String processName) const
{
// Finds G4VProcess with specified name.
return firstFoundProcess;
}
-
+//_____________________________________________________________________________
G4bool TG4G3PhysicsManager::CheckCutWithTheVector(G4String name,
G4double value, TG4G3Cut& cut)
{
return false;
}
+//_____________________________________________________________________________
G4bool TG4G3PhysicsManager::CheckControlWithTheVector(G4String name,
G4double value, TG4G3Control& control)
{
return false;
}
+//_____________________________________________________________________________
G4bool TG4G3PhysicsManager::CheckCutWithG3Defaults(G4String name,
G4double value, TG4G3Cut& cut)
{
return false;
}
+//_____________________________________________________________________________
G4bool TG4G3PhysicsManager::CheckControlWithG3Defaults(G4String name,
G4double value, TG4G3Control& control)
{
return false;
}
+//_____________________________________________________________________________
void TG4G3PhysicsManager::SetG3DefaultCuts()
{
// Sets G3 default values of kinetic energy cuts.
fCutVector->SetG3Defaults();
}
+//_____________________________________________________________________________
void TG4G3PhysicsManager::SetG3DefaultControls()
{
// Sets G3 default values of control process controls.
fControlVector->SetG3Defaults();
}
+//_____________________________________________________________________________
G4bool TG4G3PhysicsManager::IsSpecialCuts() const
{
// Returns true if any special cut value is set.
return false;
}
+//_____________________________________________________________________________
G4bool TG4G3PhysicsManager::IsSpecialControls() const
{
// Returns true if any special control value is set.
return false;
}
+//_____________________________________________________________________________
TG4G3ParticleWSP TG4G3PhysicsManager::GetG3ParticleWSP(
G4ParticleDefinition* particle) const
{
}
}
+//_____________________________________________________________________________
void TG4G3PhysicsManager::GetG3ParticleWSPName(G4int particleWSP,
G4String& name) const
{