Import Geant4 11.3.0 source tree
This commit is contained in:
@@ -46,130 +46,127 @@
|
||||
|
||||
class G4Material;
|
||||
|
||||
class GFlashSamplingShowerParameterisation
|
||||
: public GVFlashShowerParameterisation
|
||||
class GFlashSamplingShowerParameterisation : public GVFlashShowerParameterisation
|
||||
{
|
||||
public:
|
||||
GFlashSamplingShowerParameterisation(
|
||||
G4Material* aMat1, G4Material* aMat2, G4double d1, G4double d2,
|
||||
/// \param aMat1 passive material, \param dd1 - passive layer thickness
|
||||
/// \param aMat2 active material, \param dd2 - acive layer thickness
|
||||
|
||||
GFlashSamplingShowerParameterisation(G4Material* aMat1, G4Material* aMat2,
|
||||
G4double d1, G4double d2,
|
||||
/// \param aMat1 passive material, \param dd1 - passive layer thickness
|
||||
/// \param aMat2 active material, \param dd2 - acive layer thickness
|
||||
|
||||
GFlashSamplingShowerTuning * aPar = 0);
|
||||
GFlashSamplingShowerTuning* aPar = 0);
|
||||
~GFlashSamplingShowerParameterisation();
|
||||
|
||||
void ComputeRadialParameters(G4double y, G4double Tau);
|
||||
void GenerateLongitudinalProfile(G4double Energy);
|
||||
void GenerateLongitudinalProfile(G4double Energy);
|
||||
void ComputeZAX0EFFetc();
|
||||
|
||||
G4double IntegrateEneLongitudinal(G4double LongitudinalStep);
|
||||
G4double IntegrateNspLongitudinal(G4double LongitudinalStep);
|
||||
G4double ComputeTau(G4double LongitudinalPosition);
|
||||
void SetMaterial(G4Material *mat1, G4Material *mat2);
|
||||
void SetMaterial(G4Material* mat1, G4Material* mat2);
|
||||
G4double GeneratePhi();
|
||||
G4double GenerateRadius(G4int ispot, G4double Energy,
|
||||
G4double LongitudinalPosition);
|
||||
G4double GenerateRadius(G4int ispot, G4double Energy, G4double LongitudinalPosition);
|
||||
G4double GenerateExponential(G4double Energy);
|
||||
|
||||
inline G4double GetAveR99() {return (3.5 * Rmeff);}
|
||||
inline G4double GetAveR90() {return (1.5 * Rmeff);} //ok
|
||||
inline G4double GetAveR99() { return (3.5 * Rmeff); }
|
||||
inline G4double GetAveR90() { return (1.5 * Rmeff); } // ok
|
||||
//
|
||||
inline G4double GetAveTmx() {return (X0eff*std::exp(AveLogTmax));}
|
||||
inline G4double GetAveT99() {return (X0eff*AveLogTmax/(AveLogAlpha-1.00));}
|
||||
inline G4double GetAveT90() {return (2.5* X0eff* std::exp( AveLogTmax));}
|
||||
//
|
||||
inline G4double GetNspot() {return NSpot;}
|
||||
inline G4double GetX0() {return X0eff;}
|
||||
inline G4double GetEc() {return Eceff;}
|
||||
inline G4double GetRm() {return Rmeff;}
|
||||
inline G4double GetAveTmx() { return (X0eff * std::exp(AveLogTmax)); }
|
||||
inline G4double GetAveT99() { return (X0eff * AveLogTmax / (AveLogAlpha - 1.00)); }
|
||||
inline G4double GetAveT90() { return (2.5 * X0eff * std::exp(AveLogTmax)); }
|
||||
//
|
||||
inline G4double GetNspot() { return NSpot; }
|
||||
inline G4double GetX0() { return X0eff; }
|
||||
inline G4double GetEc() { return Eceff; }
|
||||
inline G4double GetRm() { return Rmeff; }
|
||||
inline G4double GetEffDensity() { return Rhoeff; }
|
||||
|
||||
G4double ApplySampling(const G4double DEne, const G4double Energy);
|
||||
|
||||
private:
|
||||
|
||||
// medium related quantities
|
||||
//
|
||||
G4Material *material1, *material2 ;
|
||||
G4double density1, A1, Z1, X01, Ec1, Rm1, d1;
|
||||
G4double density2, A2, Z2, X02, Ec2, Rm2, d2;
|
||||
G4double Aeff, Rhoeff, X0eff, Eceff, Rmeff, Fs, ehat, Zeff;
|
||||
G4Material *material1, *material2;
|
||||
G4double density1, A1, Z1, X01, Ec1, Rm1, d1;
|
||||
G4double density2, A2, Z2, X02, Ec2, Rm2, d2;
|
||||
G4double Aeff, Rhoeff{1.0}, X0eff{1.0}, Eceff{1.0}, Rmeff{1.0}, Fs, ehat, Zeff;
|
||||
|
||||
// Resolution
|
||||
//
|
||||
G4double ConstantResolution;
|
||||
G4double NoiseResolution;
|
||||
G4double ConstantResolution;
|
||||
G4double NoiseResolution;
|
||||
G4double SamplingResolution;
|
||||
|
||||
|
||||
// parametrization parameters
|
||||
//
|
||||
GFlashSamplingShowerTuning * thePar;
|
||||
GFlashSamplingShowerTuning* thePar;
|
||||
|
||||
// Cashed parameters:
|
||||
// Cashed parameters:
|
||||
// Longitudinal Coefficients for a homogenious calo
|
||||
//
|
||||
G4double ParAveT1, ParAveT2;
|
||||
G4double ParAveA1,ParAveA2, ParAveA3;
|
||||
G4double ParSigLogT1,ParSigLogT2;
|
||||
G4double ParSigLogA1,ParSigLogA2;
|
||||
G4double ParRho1,ParRho2;
|
||||
G4double ParAveA1, ParAveA2, ParAveA3;
|
||||
G4double ParSigLogT1, ParSigLogT2;
|
||||
G4double ParSigLogA1, ParSigLogA2;
|
||||
G4double ParRho1, ParRho2;
|
||||
|
||||
//Cashed parameters:
|
||||
// Longitudinal Coefficients for a sampling calo
|
||||
// Cashed parameters:
|
||||
// Longitudinal Coefficients for a sampling calo
|
||||
//
|
||||
G4double ParsAveT1, ParsAveT2;
|
||||
G4double ParsAveA1,ParsAveA2;
|
||||
G4double ParsSigLogT1,ParsSigLogT2;
|
||||
G4double ParsSigLogA1,ParsSigLogA2;
|
||||
G4double ParsRho1,ParsRho2;
|
||||
G4double ParsAveA1, ParsAveA2;
|
||||
G4double ParsSigLogT1, ParsSigLogT2;
|
||||
G4double ParsSigLogA1, ParsSigLogA2;
|
||||
G4double ParsRho1, ParsRho2;
|
||||
void ComputeLongitudinalParameters(G4double y);
|
||||
void GenerateEnergyProfile(G4double y);
|
||||
void GenerateNSpotProfile(G4double y);
|
||||
|
||||
// Radial Coefficients homo
|
||||
//
|
||||
G4double ParRC1,ParRC2,ParRC3,ParRC4;
|
||||
G4double ParWC1,ParWC2,ParWC3;
|
||||
G4double ParWC4,ParWC5,ParWC6;
|
||||
G4double ParRT1,ParRT2,ParRT3,ParRT4;
|
||||
G4double ParRT5,ParRT6;
|
||||
G4double ParRC1, ParRC2, ParRC3, ParRC4;
|
||||
G4double ParWC1, ParWC2, ParWC3;
|
||||
G4double ParWC4, ParWC5, ParWC6;
|
||||
G4double ParRT1, ParRT2, ParRT3, ParRT4;
|
||||
G4double ParRT5, ParRT6;
|
||||
|
||||
// Radial Coefficients sampling
|
||||
//
|
||||
G4double ParsRC1,ParsRC2;
|
||||
G4double ParsWC1,ParsWC2;
|
||||
G4double ParsRT1,ParsRT2;
|
||||
G4double ParsRC1, ParsRC2;
|
||||
G4double ParsWC1, ParsWC2;
|
||||
G4double ParsRT1, ParsRT2;
|
||||
|
||||
// Spot multiplicity Coefficients
|
||||
//
|
||||
G4double ParsSpotT1,ParsSpotT2,ParsSpotA1, ParsSpotA2;
|
||||
G4double ParsSpotN1,ParsSpotN2;
|
||||
G4double ParsSpotT1, ParsSpotT2, ParsSpotA1, ParsSpotA2;
|
||||
G4double ParsSpotN1, ParsSpotN2;
|
||||
|
||||
// PARAMETRISATION variables (Energy & position dependent)
|
||||
// Longitudinal
|
||||
// Longitudinal
|
||||
// homogeneous
|
||||
//
|
||||
G4double AveLogAlphah,AveLogTmaxh;
|
||||
G4double SigmaLogAlphah,SigmaLogTmaxh;
|
||||
G4double AveLogAlphah, AveLogTmaxh;
|
||||
G4double SigmaLogAlphah, SigmaLogTmaxh;
|
||||
G4double Rhoh;
|
||||
G4double Alphah,Tmaxh,Betah;
|
||||
G4double Alphah, Tmaxh, Betah;
|
||||
|
||||
// PARAMETRISATION variables (Energy & position dependent)
|
||||
// Longitudinal
|
||||
// Longitudinal
|
||||
// sampling
|
||||
//
|
||||
G4double AveLogAlpha,AveLogTmax;
|
||||
G4double SigmaLogAlpha,SigmaLogTmax;
|
||||
G4double AveLogAlpha, AveLogTmax;
|
||||
G4double SigmaLogAlpha, SigmaLogTmax;
|
||||
G4double Rho;
|
||||
G4double Alpha,Tmax,Beta;
|
||||
G4double Alpha, Tmax, Beta;
|
||||
|
||||
// Multiplicity
|
||||
//
|
||||
G4double NSpot,AlphaNSpot,TNSpot,BetaNSpot;
|
||||
G4double NSpot, AlphaNSpot, TNSpot, BetaNSpot;
|
||||
|
||||
//Radial
|
||||
// Radial
|
||||
//
|
||||
G4double RadiusCore, WeightCore,RadiusTail;
|
||||
G4double RadiusCore, WeightCore, RadiusTail;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user