00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // 00027 // $Id: GFlashShowerModel.hh 69796 2013-05-15 13:26:12Z gcosmo $ 00028 // 00029 // 00030 //--------------------------------------------------------------- 00031 // GEANT 4 class header file 00032 // 00033 // GFlashShowerModel 00034 // 00035 // Class description: 00036 // 00037 // GFlash parameterisation shower model. 00038 00039 // Authors: E.Barberio & Joanna Weng - 9.11.04 00040 //--------------------------------------------------------------- 00041 #ifndef GFlashShowerModel_h 00042 #define GFlashShowerModel_h 1 00043 00044 //G4 Standard 00045 #include "G4VFastSimulationModel.hh" 00046 #include "G4VPhysicalVolume.hh" 00047 #include "G4ios.hh" 00048 00049 //GFlash 00050 #include "GFlashShowerModelMessenger.hh" 00051 #include "GFlashParticleBounds.hh" 00052 #include "GFlashEnergySpot.hh" 00053 #include "GFlashHitMaker.hh" 00054 #include <vector> 00055 00056 class GVFlashShowerParameterisation; 00057 class GFlashHomoShowerParameterisation; 00058 class GFlashSamplingShowerParameterisation; 00059 00060 class GFlashShowerModel : public G4VFastSimulationModel 00061 { 00062 public: // with description 00063 00064 GFlashShowerModel (G4String, G4Envelope*); 00065 GFlashShowerModel (G4String); 00066 ~GFlashShowerModel (); 00067 // Constructors, destructor 00068 00069 G4bool ModelTrigger(const G4FastTrack &); 00070 G4bool IsApplicable(const G4ParticleDefinition&); 00071 void DoIt(const G4FastTrack&, G4FastStep&); 00072 // Checks whether conditions of fast parameterisation are fullfilled 00073 00074 // setting 00075 00076 inline void SetFlagParamType(G4int I) 00077 { FlagParamType = I; } 00078 inline void SetFlagParticleContainment(G4int I) 00079 { FlagParticleContainment = I; } 00080 inline void SetStepInX0(G4double Lenght) 00081 { StepInX0=Lenght; } 00082 inline void SetParameterisation(GVFlashShowerParameterisation &DP) 00083 { Parameterisation=&DP;} 00084 inline void SetHitMaker(GFlashHitMaker &Maker) 00085 { HMaker=&Maker; } 00086 inline void SetParticleBounds(GFlashParticleBounds &SpecificBound) 00087 { PBound =&SpecificBound; } 00088 00089 // getting 00090 00091 inline G4int GetFlagParamType() 00092 { return FlagParamType; } 00093 inline G4int GetFlagParticleContainment() 00094 { return FlagParticleContainment; } 00095 inline G4double GetStepInX0() 00096 { return StepInX0; } 00097 00098 public: // without description 00099 00100 // Gets ? 00101 GFlashParticleBounds *PBound; 00102 GVFlashShowerParameterisation *Parameterisation; 00103 00104 private: 00105 00106 void ElectronDoIt(const G4FastTrack&, G4FastStep&); 00107 // void GammaDoIt(const G4FastTrack&, G4FastStep&); 00108 // void NeutrinoDoIt(const G4FastTrack&, G4FastStep&); 00109 G4bool CheckParticleDefAndContainment(const G4FastTrack &fastTrack); 00110 G4bool CheckContainment(const G4FastTrack &fastTrack); 00111 00112 private: 00113 00114 GFlashHitMaker *HMaker; 00115 GFlashShowerModelMessenger* Messenger; 00116 00117 //Control Flags 00118 G4int FlagParamType; 00119 G4int FlagParticleContainment; 00120 G4double StepInX0; 00121 G4double EnergyStop; 00122 00123 }; 00124 #endif