File indexing completed on 2025-09-17 08:59:53
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 GFlashShowerModel_h
0041 #define GFlashShowerModel_h 1
0042
0043
0044 #include "G4VFastSimulationModel.hh"
0045 #include "G4VPhysicalVolume.hh"
0046 #include "G4ios.hh"
0047
0048
0049 #include "GFlashShowerModelMessenger.hh"
0050 #include "GFlashParticleBounds.hh"
0051 #include "GFlashEnergySpot.hh"
0052 #include "GFlashHitMaker.hh"
0053 #include <vector>
0054
0055 class GVFlashShowerParameterisation;
0056 class GFlashHomoShowerParameterisation;
0057 class GFlashSamplingShowerParameterisation;
0058
0059 class GFlashShowerModel : public G4VFastSimulationModel
0060 {
0061 public:
0062 GFlashShowerModel(G4String, G4Envelope*);
0063 GFlashShowerModel(G4String);
0064 ~GFlashShowerModel();
0065
0066
0067 G4bool ModelTrigger(const G4FastTrack&);
0068 G4bool IsApplicable(const G4ParticleDefinition&);
0069 void DoIt(const G4FastTrack&, G4FastStep&);
0070
0071
0072
0073
0074 inline void SetFlagParamType(G4int I) { FlagParamType = I; }
0075 inline void SetFlagParticleContainment(G4int I) { FlagParticleContainment = I; }
0076 inline void SetStepInX0(G4double Lenght) { StepInX0 = Lenght; }
0077 inline void SetParameterisation(GVFlashShowerParameterisation& DP) { Parameterisation = &DP; }
0078 inline void SetHitMaker(GFlashHitMaker& Maker) { HMaker = &Maker; }
0079 inline void SetParticleBounds(GFlashParticleBounds& SpecificBound) { PBound = &SpecificBound; }
0080
0081
0082
0083 inline G4int GetFlagParamType() { return FlagParamType; }
0084 inline G4int GetFlagParticleContainment() { return FlagParticleContainment; }
0085 inline G4double GetStepInX0() { return StepInX0; }
0086
0087 public:
0088
0089 GFlashParticleBounds *PBound;
0090 GVFlashShowerParameterisation* Parameterisation;
0091
0092 private:
0093
0094 void ElectronDoIt(const G4FastTrack&, G4FastStep&);
0095
0096
0097 G4bool CheckParticleDefAndContainment(const G4FastTrack &fastTrack);
0098 G4bool CheckContainment(const G4FastTrack &fastTrack);
0099
0100 private:
0101 GFlashHitMaker* HMaker;
0102 GFlashShowerModelMessenger* Messenger;
0103
0104
0105 G4int FlagParamType;
0106 G4int FlagParticleContainment;
0107 G4double StepInX0;
0108 G4double EnergyStop;
0109 };
0110 #endif