Import Geant4 11.1.1 source tree
This commit is contained in:
@@ -6,6 +6,12 @@ It must **not** be used as a substitute for writing good git commit messages!
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
## 2022-12-21 V.Ivanchenko (emstand-V11-00-22)
|
||||
- G4GoudsmithSoundersonMscModel - fixed warning when build CMSSW
|
||||
|
||||
## 2022-12-11 V.Ivanchenko
|
||||
- G4UrbanMscModel - added flag MscPositronCorrection
|
||||
|
||||
## 2022-11-23 Gabriele Cosmo (emstand-V11-00-21)
|
||||
- Fixed more compilation warnings for implicit type conversions.
|
||||
|
||||
|
||||
@@ -277,7 +277,7 @@ void G4GoudsmitSaundersonMscModel::SetParticle(const G4ParticleDefinition* p)
|
||||
inline
|
||||
G4double G4GoudsmitSaundersonMscModel::Randomizetlimit()
|
||||
{
|
||||
G4double temptlimit = tlimit;
|
||||
G4double temptlimit;
|
||||
do {
|
||||
temptlimit = G4RandGauss::shoot(rndmEngineMod,tlimit,0.1*tlimit);
|
||||
} while ( (temptlimit<0.) || (temptlimit>2.*tlimit));
|
||||
|
||||
@@ -192,6 +192,7 @@ private:
|
||||
|
||||
G4bool latDisplasmentbackup;
|
||||
G4bool dispAlg96;
|
||||
G4bool fPosiCorrection = true;
|
||||
G4bool isFirstInstance = false;
|
||||
};
|
||||
|
||||
|
||||
@@ -151,7 +151,8 @@ void G4UrbanMscModel::Initialise(const G4ParticleDefinition* p,
|
||||
InitialiseParameters(p);
|
||||
|
||||
latDisplasmentbackup = latDisplasment;
|
||||
dispAlg96 = (G4EmParameters::Instance()->LateralDisplacementAlg96());
|
||||
dispAlg96 = G4EmParameters::Instance()->LateralDisplacementAlg96();
|
||||
fPosiCorrection = G4EmParameters::Instance()->MscPositronCorrection();
|
||||
|
||||
// initialise cache only once
|
||||
if(0 == msc.size()) {
|
||||
@@ -983,7 +984,7 @@ G4double G4UrbanMscModel::ComputeTheta0(G4double trueStepLength,
|
||||
}
|
||||
G4double y = trueStepLength/currentRadLength;
|
||||
|
||||
if(particle == positron)
|
||||
if(fPosiCorrection && particle == positron)
|
||||
{
|
||||
static const G4double xl= 0.6;
|
||||
static const G4double xh= 0.9;
|
||||
|
||||
Reference in New Issue
Block a user