Import Geant4 5.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 10:15:15 +02:00
parent 37fff30d2e
commit fbd4999cf7
4396 changed files with 56662 additions and 52446 deletions
@@ -26,17 +26,27 @@
// GEANT4 Class header file
//
//
// File name: G4BetheBlochModel
// File name: G4VEnergyLossSTD
//
// Author: Vladimir Ivanchenko on base of Laszlo Urban code
//
//
// Creation date: 03.01.2002
//
// Modifications:
// Modifications:
//
// Class Description:
// 26-12-02 Secondary production moved to derived classes (V.Ivanchenko)
// 20-01-03 Migrade to cut per region (V.Ivanchenko)
// 24-01-03 Make models region aware (V.Ivanchenko)
// 05-02-03 Fix compilation warnings (V.Ivanchenko)
// 13-02-03 SubCutoffProcessors defined for regions (V.Ivanchenko)
// 17-02-03 Fix problem of store/restore tables (V.Ivanchenko)
// 26-02-03 Region dependent step limit (V.Ivanchenko)
// 26-03-03 Add GetDEDXDispersion (V.Ivanchenko)
// 09-04-03 Fix problem of negative range limit for non integral (V.Ivanchenko)
//
// It is the unified energy loss process it calculates the continuous
// Class Description:
//
// It is the unified energy loss process it calculates the continuous
// energy loss for charged particles using a set of Energy Loss
// models valid for different energy regions. There are a possibility
// to create and access to dE/dx and range tables, or to calculate
@@ -51,41 +61,56 @@
#include "G4VContinuousDiscreteProcess.hh"
#include "globals.hh"
#include "G4Material.hh"
#include "G4MaterialCutsCouple.hh"
#include "G4Track.hh"
#include "G4EmModelManager.hh"
class G4Step;
class G4ParticleDefinition;
class G4VEmModel;
class G4VEffectiveChargeModel;
class G4VEmFluctuationModel;
class G4DataVector;
class G4VParticleChange;
class G4PhysicsTable;
class G4PhysicsVector;
class G4VSubCutoffProcessor;
class G4Region;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
class G4VEnergyLossSTD : public G4VContinuousDiscreteProcess
class G4VEnergyLossSTD : public G4VContinuousDiscreteProcess
{
public:
G4VEnergyLossSTD(const G4String& name = "EnergyLoss",
G4VEnergyLossSTD(const G4String& name = "EnergyLoss",
G4ProcessType type = fElectromagnetic);
~G4VEnergyLossSTD();
void Initialise();
virtual G4VParticleChange* AlongStepDoIt(const G4Track&, const G4Step&);
G4VParticleChange* AlongStepDoIt(const G4Track&, const G4Step&);
virtual G4VParticleChange* PostStepDoIt(const G4Track&, const G4Step&);
G4VParticleChange* PostStepDoIt(const G4Track&, const G4Step&);
virtual G4bool IsApplicable(const G4ParticleDefinition& p);
virtual G4std::vector<G4Track*>* SecondariesAlongStep(
const G4Step&,
G4double& tmax,
G4double& eloss,
G4double& kinEnergy) = 0;
virtual void SecondariesPostStep(
G4VEmModel*,
const G4MaterialCutsCouple*,
const G4DynamicParticle*,
G4double& tcut,
G4double& kinEnergy) = 0;
virtual G4bool IsApplicable(const G4ParticleDefinition& p) = 0;
// True for all charged particles
virtual void BuildPhysicsTable(const G4ParticleDefinition&);
virtual
void BuildPhysicsTable(const G4ParticleDefinition&);
// Build physics table during initialisation
virtual void PrintInfoDefinition() const;
@@ -93,13 +118,17 @@ public:
G4PhysicsTable* BuildDEDXTable();
void SetParticles(const G4ParticleDefinition*,
G4PhysicsTable* BuildLambdaTable();
G4PhysicsTable* BuildLambdaSubTable();
void SetParticles(const G4ParticleDefinition*,
const G4ParticleDefinition*,
const G4ParticleDefinition*);
void SetParticle(const G4ParticleDefinition* p);
void SetBaseParticle(const G4ParticleDefinition* p);
void SetSecondaryParticle(const G4ParticleDefinition* p);
void SetParticle(const G4ParticleDefinition* p);
void SetBaseParticle(const G4ParticleDefinition* p);
void SetSecondaryParticle(const G4ParticleDefinition* p);
const G4ParticleDefinition* Particle() const;
const G4ParticleDefinition* BaseParticle() const;
@@ -123,25 +152,27 @@ public:
// Print out of the class parameters
G4bool StorePhysicsTable(G4ParticleDefinition*,
const G4String& directory,
const G4String& directory,
G4bool ascii = false);
// Store PhysicsTable in a file.
// Store PhysicsTable in a file.
// Return false in case of failure at I/O
G4bool RetrievePhysicsTable(G4ParticleDefinition*,
const G4String& directory,
const G4String& directory,
G4bool ascii);
// Retrieve Physics from a file.
// Retrieve Physics from a file.
// (return true if the Physics Table can be build by using file)
// (return false if the process has no functionality or in case of failure)
// File name should is constructed as processName+particleName and the
// should be placed under the directory specifed by the argument.
// File name should is constructed as processName+particleName and the
// should be placed under the directory specifed by the argument.
void AddEmModel(G4VEmModel*, G4int);
void AddEmModel(G4int, G4VEmModel*, G4VEmFluctuationModel* fluc = 0,
const G4Region* region = 0);
void AddEmFluctuationModel(G4VEmFluctuationModel*);
void AddSubCutoffProcessor(G4VSubCutoffProcessor*, const G4Region* region = 0);
void SetSubCutoffProcessor(G4VSubCutoffProcessor*);
virtual
void SetSubCutoff(G4bool) {};
void SetDEDXTable(G4PhysicsTable* p);
G4PhysicsTable* DEDXTable() const {return theDEDXTable;};
@@ -154,27 +185,34 @@ public:
void SetSecondaryRangeTable(G4PhysicsTable* p);
const G4PhysicsTable* LambdaTable() {return theLambdaTable;};
void SetLambdaTable(G4PhysicsTable* p);
G4PhysicsTable* LambdaTable() {return theLambdaTable;};
G4double GetDEDX(G4double kineticEnergy, const G4Material* material);
void SetSubLambdaTable(G4PhysicsTable* p);
G4PhysicsTable* SubLambdaTable() {return theSubLambdaTable;};
G4double GetRange(G4double kineticEnergy, const G4Material* material);
G4double GetDEDX(G4double& kineticEnergy, const G4MaterialCutsCouple* couple);
G4double GetKineticEnergy(G4double range, const G4Material* material);
G4double GetRange(G4double& kineticEnergy, const G4MaterialCutsCouple* couple);
G4double GetLambda(G4double kineticEnergy, const G4Material* material);
G4double GetKineticEnergy(G4double& range, const G4MaterialCutsCouple* couple);
G4double GetLambda(G4double kineticEnergy, const G4MaterialCutsCouple* couple);
// It returns the MeanFreePath of the process for a (energy, material)
G4double MicroscopicCrossSection(G4double kineticEnergy, const G4Material* material);
G4double GetDEDXDispersion(const G4MaterialCutsCouple *couple,
const G4DynamicParticle* dp,
G4double& length);
G4double MicroscopicCrossSection(G4double kineticEnergy,
const G4MaterialCutsCouple* couple);
// It returns the MeanFreePath of the process for a (energy, material)
void SetLinearLossLimit(G4double val) {linLossLimit = val;};
void SetLossFluctuations(G4bool val) {lossFluctuationFlag = val;};
void SetSubCutoff(G4bool val) {if(subCutoffIsDesired) subCutoffFlag = val;};
void SetIntegral(G4bool val) {integral = val;};
void SetIntegral(G4bool val) {integral = val;};
void SetRandomStep(G4bool val) {rndmStepFlag = val;};
@@ -182,7 +220,9 @@ public:
void SetStepLimits(G4double v1, G4double v2);
G4bool TablesAreBuilt() {return tablesAreBuilt;};
G4bool TablesAreBuilt() const {return tablesAreBuilt;};
G4int NumberOfSubCutoffRegions() const {return nSCoffRegions;};
G4double MeanFreePath(const G4Track& track,
G4double previousStepSize,
@@ -193,31 +233,46 @@ public:
G4double currentMinimumStep,
G4double& currentSafety);
void ResetNumberOfInteractionLengthLeft();
// reset (determine the value of)NumberOfInteractionLengthLeft
protected:
virtual G4double GetMeanFreePath(const G4Track& track,
virtual
G4double GetMeanFreePath(const G4Track& track,
G4double previousStepSize,
G4ForceCondition* condition);
virtual G4double GetContinuousStepLimit(const G4Track& track,
virtual
G4double GetContinuousStepLimit(const G4Track& track,
G4double previousStepSize,
G4double currentMinimumStep,
G4double& currentSafety);
virtual const G4ParticleDefinition* DefineBaseParticle(
virtual
const G4ParticleDefinition* DefineBaseParticle(
const G4ParticleDefinition*) {return 0;};
virtual G4PhysicsVector* DEDXPhysicsVector(const G4Material*);
virtual
G4PhysicsVector* DEDXPhysicsVector(const G4MaterialCutsCouple*);
virtual G4PhysicsVector* LambdaPhysicsVector(const G4Material*);
virtual
G4PhysicsVector* LambdaPhysicsVector(const G4MaterialCutsCouple*);
virtual G4PhysicsVector* SubLambdaPhysicsVector(const G4Material*);
virtual
G4PhysicsVector* SubLambdaPhysicsVector(const G4MaterialCutsCouple*);
virtual G4double MinPrimaryEnergy(const G4ParticleDefinition*,
const G4Material*, G4double cut) = 0;
virtual G4double MaxSecondaryEnergy(const G4DynamicParticle* dp) = 0;
G4VEmModel* SelectModel(G4double& kinEnergy);
G4VSubCutoffProcessor* SubCutoffProcessor(size_t index);
size_t CurrentMaterialCutsCoupleIndex() const {return currentMaterialIndex;};
void SetMassRatio(G4double val) {massRatio = val;};
void SetReduceFactor(G4double val) {reduceFactor = val;};
@@ -226,19 +281,13 @@ protected:
void SetChargeSquareRatio(G4double val) {chargeSqRatio = val;};
void SetSubCutoffIsDesired(G4bool val);
private:
void Clear();
void DefineMaterial(const G4Material* material);
void DefineMaterial(const G4MaterialCutsCouple* couple);
G4PhysicsTable* BuildLambdaTable();
G4PhysicsTable* BuildLambdaSubTable();
// hide assignment operator
// hide assignment operator
G4VEnergyLossSTD(G4VEnergyLossSTD &);
G4VEnergyLossSTD & operator=(const G4VEnergyLossSTD &right);
@@ -247,9 +296,11 @@ private:
private:
G4EmModelManager* modelManager;
G4VSubCutoffProcessor* subCutoffProcessor;
G4VEmFluctuationModel* emFluctModel;
G4EmModelManager* modelManager;
G4std::vector<G4VSubCutoffProcessor*> scoffProcessors;
G4std::vector<const G4Region*> scoffRegions;
G4int nSCoffRegions;
G4std::vector<G4int> idxSCoffRegions;
// tables and vectors
G4PhysicsTable* theDEDXTable;
@@ -257,33 +308,32 @@ private:
G4PhysicsTable* theSecondaryRangeTable;
G4PhysicsTable* theInverseRangeTable;
G4PhysicsTable* theLambdaTable;
G4PhysicsTable* theSubLambdaTable;
const G4DataVector* theCuts;
G4double minKinEnergy;
G4double maxKinEnergy;
G4int nDEDXBins;
G4int nLambdaBins;
const G4ParticleDefinition* particle;
const G4ParticleDefinition* baseParticle;
const G4ParticleDefinition* secondaryParticle;
const G4ParticleDefinition* theGamma;
const G4ParticleDefinition* theElectron;
// cash
const G4Material* currentMaterial;
const G4MaterialCutsCouple* currentCouple;
size_t currentMaterialIndex;
G4int nDEDXBins;
G4int nLambdaBins;
G4double minKinEnergy;
G4double maxKinEnergy;
G4double massRatio;
G4double reduceFactor;
G4double chargeSquare;
G4double chargeSqRatio;
G4bool lossFluctuationFlag;
G4bool subCutoffFlag;
G4bool subCutoffIsDesired;
G4bool rndmStepFlag;
G4bool hasRestProcess;
G4bool tablesAreBuilt;
G4bool integral;
G4double preStepLambda;
G4double fRange;
G4double preStepKinEnergy;
@@ -291,63 +341,58 @@ private:
G4double linLossLimit;
G4double minSubRange;
G4double dRoverRange;
//G4double maxFinalStep;
G4double finalRange;
G4double c1lim;
G4double c2lim;
G4double c3lim;
// cash
const G4Material* currentMaterial;
G4int currentMaterialIndex;
G4bool lossFluctuationFlag;
G4bool rndmStepFlag;
G4bool hasRestProcess;
G4bool tablesAreBuilt;
G4bool integral;
G4bool meanFreePath;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
inline G4bool G4VEnergyLossSTD::IsApplicable(const G4ParticleDefinition& p)
inline void G4VEnergyLossSTD::DefineMaterial(const G4MaterialCutsCouple* couple)
{
return (p.GetPDGCharge() != 0.0);
// G4cout << "couple= " << couple << " currentCouple= " << currentCouple << G4endl;
if(couple != currentCouple) {
currentCouple = couple;
currentMaterial = couple->GetMaterial();
currentMaterialIndex = couple->GetIndex();
if(integral && !meanFreePath) ResetNumberOfInteractionLengthLeft();
}
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
inline void G4VEnergyLossSTD::DefineMaterial(const G4Material* material)
inline G4double G4VEnergyLossSTD::GetDEDX(G4double& kineticEnergy,
const G4MaterialCutsCouple* couple)
{
if(material != currentMaterial) {
currentMaterial = material;
currentMaterialIndex = material->GetIndex();
}
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
inline G4double G4VEnergyLossSTD::GetDEDX(G4double kineticEnergy,
const G4Material* material)
{
DefineMaterial(material);
DefineMaterial(couple);
G4bool b;
return ((*theDEDXTable)[currentMaterialIndex]->
GetValue(kineticEnergy*massRatio, b))*chargeSqRatio;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
inline G4double G4VEnergyLossSTD::GetRange(G4double kineticEnergy,
const G4Material* material)
inline G4double G4VEnergyLossSTD::GetRange(G4double& kineticEnergy,
const G4MaterialCutsCouple* couple)
{
DefineMaterial(material);
DefineMaterial(couple);
G4bool b;
return ((*theRangeTable)[currentMaterialIndex]->
GetValue(kineticEnergy*massRatio, b))*reduceFactor;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
inline G4double G4VEnergyLossSTD::GetKineticEnergy(G4double range,
const G4Material* material)
inline G4double G4VEnergyLossSTD::GetKineticEnergy(G4double& range,
const G4MaterialCutsCouple* couple)
{
DefineMaterial(material);
DefineMaterial(couple);
G4bool b;
return ((*theInverseRangeTable)[currentMaterialIndex]->
GetValue(range/reduceFactor, b))/massRatio;
@@ -355,26 +400,38 @@ inline G4double G4VEnergyLossSTD::GetKineticEnergy(G4double range,
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
inline void G4VEnergyLossSTD::SetSubCutoffIsDesired(G4bool val)
inline G4double G4VEnergyLossSTD::GetDEDXDispersion(
const G4MaterialCutsCouple *couple,
const G4DynamicParticle* dp,
G4double& length)
{
subCutoffIsDesired = val;
DefineMaterial(couple);
G4double tmax = MaxSecondaryEnergy(dp);
tmax = G4std::min(tmax,(*theCuts)[currentMaterialIndex]);
return modelManager->GetDEDXDispersion(currentMaterial, dp, tmax, length,
currentMaterialIndex);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
inline G4double G4VEnergyLossSTD::GetMeanFreePath(const G4Track& track,
G4double,
G4ForceCondition* cond)
{
G4bool b;
*cond = NotForced;
DefineMaterial(track.GetMaterial());
DefineMaterial(track.GetMaterialCutsCouple());
preStepKinEnergy = track.GetKineticEnergy();
preStepLambda = (((*theLambdaTable)[currentMaterialIndex])->
GetValue(preStepKinEnergy, b)) * chargeSqRatio;
preStepScaledEnergy = preStepKinEnergy*massRatio;
if (meanFreePath) {
G4bool b;
preStepLambda = (((*theLambdaTable)[currentMaterialIndex])->
GetValue(preStepScaledEnergy, b)) * chargeSqRatio;
if (integral) meanFreePath = false;
}
G4double x = DBL_MAX;
if(0.0 < preStepLambda) x = 1.0/preStepLambda;
// G4cout << GetProcessName() << ": e= " << preStepKinEnergy << " mfp= " << x << G4endl;
return x;
}
@@ -384,137 +441,132 @@ inline G4double G4VEnergyLossSTD::GetContinuousStepLimit(const G4Track&,
G4double, G4double, G4double&)
{
G4double x = DBL_MAX;
preStepScaledEnergy = preStepKinEnergy*massRatio;
if(theRangeTable) {
G4bool b;
if (theRangeTable) {
G4bool b;
fRange = ((*theRangeTable)[currentMaterialIndex])->
GetValue(preStepScaledEnergy, b)*reduceFactor;
if(integral || fRange <= finalRange) {
x = fRange;
GetValue(preStepScaledEnergy, b)*reduceFactor;
x = fRange;
} else {
x = c1lim*fRange+c2lim+c3lim/fRange;
if(rndmStepFlag) x = finalRange + (x-finalRange)*G4UniformRand();
if(x > fRange) x = fRange;
if( !integral ) {
G4double r = G4std::min(finalRange, currentCouple->GetProductionCuts()
->GetProductionCut(idxG4ElectronCut));
if (fRange > r) {
x = dRoverRange*fRange + r*(1.0 - dRoverRange)*(2.0 - r/fRange);
if(rndmStepFlag) x = r + (x-r)*G4UniformRand();
if(x > fRange) x = fRange;
}
}
}
return x;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
inline void G4VEnergyLossSTD::SetParticle(const G4ParticleDefinition* p)
inline void G4VEnergyLossSTD::ResetNumberOfInteractionLengthLeft()
{
particle = p;
if(!baseParticle) baseParticle = DefineBaseParticle(particle);
}
meanFreePath = true;
G4VProcess::ResetNumberOfInteractionLengthLeft();
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
inline void G4VEnergyLossSTD::SetBaseParticle(const G4ParticleDefinition* p)
inline G4VEmModel* G4VEnergyLossSTD::SelectModel(G4double& kinEnergy)
{
baseParticle = p;
}
return modelManager->SelectModel(kinEnergy, currentMaterialIndex);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
inline void G4VEnergyLossSTD::SetSecondaryParticle(const G4ParticleDefinition* p)
{
secondaryParticle = p;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
inline const G4ParticleDefinition* G4VEnergyLossSTD::Particle() const
inline const G4ParticleDefinition* G4VEnergyLossSTD::Particle() const
{
return particle;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
inline const G4ParticleDefinition* G4VEnergyLossSTD::BaseParticle() const
inline const G4ParticleDefinition* G4VEnergyLossSTD::BaseParticle() const
{
return baseParticle;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
inline const G4ParticleDefinition* G4VEnergyLossSTD::SecondaryParticle() const
inline const G4ParticleDefinition* G4VEnergyLossSTD::SecondaryParticle() const
{
return secondaryParticle;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
inline void G4VEnergyLossSTD::SetDEDXBinning(G4int nbins)
inline void G4VEnergyLossSTD::SetDEDXBinning(G4int nbins)
{
nDEDXBins = nbins;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
inline G4int G4VEnergyLossSTD::DEDXBinning() const
inline G4int G4VEnergyLossSTD::DEDXBinning() const
{
return nDEDXBins;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
inline void G4VEnergyLossSTD::SetLambdaBinning(G4int nbins)
inline void G4VEnergyLossSTD::SetLambdaBinning(G4int nbins)
{
nLambdaBins = nbins;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
inline G4int G4VEnergyLossSTD::LambdaBinning() const
inline G4int G4VEnergyLossSTD::LambdaBinning() const
{
return nLambdaBins;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
inline void G4VEnergyLossSTD::SetMinKinEnergy(G4double e)
inline void G4VEnergyLossSTD::SetMinKinEnergy(G4double e)
{
minKinEnergy = e;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
inline G4double G4VEnergyLossSTD::MinKinEnergy() const
inline G4double G4VEnergyLossSTD::MinKinEnergy() const
{
return minKinEnergy;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
inline void G4VEnergyLossSTD::SetMaxKinEnergy(G4double e)
{
inline void G4VEnergyLossSTD::SetMaxKinEnergy(G4double e)
{
maxKinEnergy = e;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
inline G4double G4VEnergyLossSTD::MaxKinEnergy() const
inline G4double G4VEnergyLossSTD::MaxKinEnergy() const
{
return maxKinEnergy;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
inline G4double G4VEnergyLossSTD::GetLambda(G4double kineticEnergy,
const G4Material* material)
inline G4double G4VEnergyLossSTD::GetLambda(G4double kineticEnergy,
const G4MaterialCutsCouple* couple)
{
DefineMaterial(material);
DefineMaterial(couple);
G4double x = DBL_MAX;
G4bool b;
if(theLambdaTable) {
G4double y = (((*theLambdaTable)[currentMaterialIndex])->
GetValue(kineticEnergy, b));
GetValue(kineticEnergy*massRatio, b));
if(y > 0.0) x = 1.0/y;
}
return x;
@@ -522,18 +574,13 @@ inline G4double G4VEnergyLossSTD::GetLambda(G4double kineticEnergy,
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
inline void G4VEnergyLossSTD::SetStepLimits(G4double v1, G4double v2)
inline G4VSubCutoffProcessor* G4VEnergyLossSTD::SubCutoffProcessor(size_t index)
{
dRoverRange = v1;
finalRange = v2;
c1lim=dRoverRange;
c2lim=2.*(1-dRoverRange)*finalRange;
c3lim=-(1.-dRoverRange)*finalRange*finalRange;
G4VSubCutoffProcessor* p = 0;
if( nSCoffRegions ) p = scoffProcessors[idxSCoffRegions[index]];
return p;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
#endif