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 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
0063 GFlashShowerModel (G4String, G4Envelope*);
0064 GFlashShowerModel (G4String);
0065 ~GFlashShowerModel ();
0066
0067
0068 G4bool ModelTrigger(const G4FastTrack &);
0069 G4bool IsApplicable(const G4ParticleDefinition&);
0070 void DoIt(const G4FastTrack&, G4FastStep&);
0071
0072
0073
0074
0075 inline void SetFlagParamType(G4int I)
0076 { FlagParamType = I; }
0077 inline void SetFlagParticleContainment(G4int I)
0078 { FlagParticleContainment = I; }
0079 inline void SetStepInX0(G4double Lenght)
0080 { StepInX0=Lenght; }
0081 inline void SetParameterisation(GVFlashShowerParameterisation &DP)
0082 { Parameterisation=&DP;}
0083 inline void SetHitMaker(GFlashHitMaker &Maker)
0084 { HMaker=&Maker; }
0085 inline void SetParticleBounds(GFlashParticleBounds &SpecificBound)
0086 { PBound =&SpecificBound; }
0087
0088
0089
0090 inline G4int GetFlagParamType()
0091 { return FlagParamType; }
0092 inline G4int GetFlagParticleContainment()
0093 { return FlagParticleContainment; }
0094 inline G4double GetStepInX0()
0095 { return StepInX0; }
0096
0097 public:
0098
0099
0100 GFlashParticleBounds *PBound;
0101 GVFlashShowerParameterisation *Parameterisation;
0102
0103 private:
0104
0105 void ElectronDoIt(const G4FastTrack&, G4FastStep&);
0106
0107
0108 G4bool CheckParticleDefAndContainment(const G4FastTrack &fastTrack);
0109 G4bool CheckContainment(const G4FastTrack &fastTrack);
0110
0111 private:
0112
0113 GFlashHitMaker *HMaker;
0114 GFlashShowerModelMessenger* Messenger;
0115
0116
0117 G4int FlagParamType;
0118 G4int FlagParticleContainment;
0119 G4double StepInX0;
0120 G4double EnergyStop;
0121
0122 };
0123 #endif