File indexing completed on 2025-09-15 08:59:47
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040 #ifndef GFlashHomoShowerParameterisation_h
0041 #define GFlashHomoShowerParameterisation_h 1
0042
0043 #include "globals.hh"
0044 #include "GVFlashHomoShowerTuning.hh"
0045 #include "GVFlashShowerParameterisation.hh"
0046
0047 class G4Material;
0048
0049 class GFlashHomoShowerParameterisation : public GVFlashShowerParameterisation
0050 {
0051 public:
0052 GFlashHomoShowerParameterisation(G4Material* aMat, GVFlashHomoShowerTuning* aPar = 0);
0053 ~GFlashHomoShowerParameterisation();
0054
0055 void ComputeRadialParameters(G4double y, G4double Tau);
0056 void GenerateLongitudinalProfile(G4double Energy);
0057 void ComputeZAX0EFFetc();
0058
0059 G4double IntegrateEneLongitudinal(G4double LongitudinalStep);
0060 G4double IntegrateNspLongitudinal(G4double LongitudinalStep);
0061 G4double ComputeTau(G4double LongitudinalPosition);
0062
0063 G4double GeneratePhi();
0064 G4double GenerateRadius(G4int ispot, G4double Energy, G4double LongitudinalPosition);
0065 G4double GenerateExponential(G4double Energy);
0066 void SetMaterial(G4Material* mat);
0067
0068 inline G4double GetAveR99() { return (3.5 * Rm); }
0069 inline G4double GetAveR90() { return (1.5 * Rm); }
0070
0071 inline G4double GetAveTmx() {return (X0 * std::exp(AveLogTmaxh));}
0072 inline G4double GetAveT99() {return (X0 * AveLogTmaxh/(AveLogAlphah-1.00));}
0073 inline G4double GetAveT90() {return (2.5* X0*std::exp( AveLogTmaxh) );}
0074
0075 inline G4double GetNspot(){ return NSpot;}
0076 inline G4double GetX0() { return X0; }
0077 inline G4double GetEc() { return Ec; }
0078 inline G4double GetRm() { return Rm; }
0079
0080 private:
0081 G4Material* material;
0082
0083
0084 G4double ConstantResolution;
0085 G4double NoiseResolution;
0086 G4double SamplingResolution;
0087
0088
0089 GVFlashHomoShowerTuning* thePar;
0090
0091
0092
0093 G4double ParAveT1;
0094 G4double ParAveA1, ParAveA2, ParAveA3;
0095 G4double ParSigLogT1, ParSigLogT2;
0096 G4double ParSigLogA1, ParSigLogA2;
0097 G4double ParRho1, ParRho2;
0098
0099 void ComputeLongitudinalParameters(G4double y);
0100 void GenerateEnergyProfile(G4double y);
0101 void GenerateNSpotProfile(G4double y);
0102
0103
0104 G4double ParRC1, ParRC2, ParRC3, ParRC4;
0105 G4double ParWC1, ParWC2, ParWC3;
0106 G4double ParWC4, ParWC5, ParWC6;
0107 G4double ParRT1, ParRT2, ParRT3, ParRT4;
0108 G4double ParRT5, ParRT6;
0109
0110
0111 G4double ParSpotT1, ParSpotT2, ParSpotA1, ParSpotA2;
0112 G4double ParSpotN1, ParSpotN2;
0113
0114
0115
0116
0117 G4double AveLogAlphah, AveLogTmaxh;
0118 G4double SigmaLogAlphah, SigmaLogTmaxh;
0119 G4double Rhoh;
0120 G4double Alphah, Tmaxh, Betah;
0121
0122
0123 G4double NSpot, AlphaNSpot, TNSpot, BetaNSpot;
0124
0125
0126 G4double RadiusCore, WeightCore, RadiusTail;
0127 };
0128
0129 #endif
0130