File indexing completed on 2025-01-18 09:59:30
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
0053 GFlashHomoShowerParameterisation(G4Material * aMat,
0054 GVFlashHomoShowerTuning * aPar = 0);
0055 ~GFlashHomoShowerParameterisation();
0056
0057 void ComputeRadialParameters(G4double y, G4double Tau);
0058 void GenerateLongitudinalProfile(G4double Energy);
0059 void ComputeZAX0EFFetc();
0060
0061 G4double IntegrateEneLongitudinal(G4double LongitudinalStep);
0062 G4double IntegrateNspLongitudinal(G4double LongitudinalStep);
0063 G4double ComputeTau(G4double LongitudinalPosition);
0064
0065 G4double GeneratePhi();
0066 G4double GenerateRadius(G4int ispot, G4double Energy,
0067 G4double LongitudinalPosition);
0068 G4double GenerateExponential(G4double Energy);
0069 void SetMaterial(G4Material *mat);
0070
0071 inline G4double GetAveR99() {return (3.5 * Rm);}
0072 inline G4double GetAveR90() {return (1.5 * Rm);}
0073
0074 inline G4double GetAveTmx() {return (X0 * std::exp(AveLogTmaxh));}
0075 inline G4double GetAveT99() {return (X0 * AveLogTmaxh/(AveLogAlphah-1.00));}
0076 inline G4double GetAveT90() {return (2.5* X0*std::exp( AveLogTmaxh) );}
0077
0078 inline G4double GetNspot(){ return NSpot;}
0079 inline G4double GetX0(){return X0;}
0080 inline G4double GetEc(){return Ec;}
0081 inline G4double GetRm(){return Rm;}
0082
0083 private:
0084
0085 G4Material *material;
0086
0087
0088 G4double ConstantResolution;
0089 G4double NoiseResolution;
0090 G4double SamplingResolution;
0091
0092
0093 GVFlashHomoShowerTuning * thePar;
0094
0095
0096
0097 G4double ParAveT1;
0098 G4double ParAveA1,ParAveA2,ParAveA3;
0099 G4double ParSigLogT1,ParSigLogT2;
0100 G4double ParSigLogA1,ParSigLogA2;
0101 G4double ParRho1,ParRho2;
0102
0103 void ComputeLongitudinalParameters(G4double y);
0104 void GenerateEnergyProfile(G4double y);
0105 void GenerateNSpotProfile(G4double y);
0106
0107
0108 G4double ParRC1,ParRC2,ParRC3,ParRC4;
0109 G4double ParWC1,ParWC2,ParWC3;
0110 G4double ParWC4,ParWC5,ParWC6;
0111 G4double ParRT1,ParRT2,ParRT3,ParRT4;
0112 G4double ParRT5,ParRT6;
0113
0114
0115 G4double ParSpotT1,ParSpotT2,ParSpotA1, ParSpotA2;
0116 G4double ParSpotN1,ParSpotN2;
0117
0118
0119
0120
0121 G4double AveLogAlphah,AveLogTmaxh;
0122 G4double SigmaLogAlphah,SigmaLogTmaxh;
0123 G4double Rhoh;
0124 G4double Alphah,Tmaxh,Betah;
0125
0126
0127 G4double NSpot,AlphaNSpot,TNSpot,BetaNSpot;
0128
0129
0130 G4double RadiusCore, WeightCore,RadiusTail;
0131 };
0132
0133 #endif
0134