[823] | 1 | // |
---|
| 2 | // ******************************************************************** |
---|
| 3 | // * License and Disclaimer * |
---|
| 4 | // * * |
---|
| 5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
| 6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
| 7 | // * conditions of the Geant4 Software License, included in the file * |
---|
| 8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
| 9 | // * include a list of copyright holders. * |
---|
| 10 | // * * |
---|
| 11 | // * Neither the authors of this software system, nor their employing * |
---|
| 12 | // * institutes,nor the agencies providing financial support for this * |
---|
| 13 | // * work make any representation or warranty, express or implied, * |
---|
| 14 | // * regarding this software system or assume any liability for its * |
---|
| 15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
| 16 | // * for the full disclaimer and the limitation of liability. * |
---|
| 17 | // * * |
---|
| 18 | // * This code implementation is the result of the scientific and * |
---|
| 19 | // * technical work of the GEANT4 collaboration. * |
---|
| 20 | // * By using, copying, modifying or distributing the software (or * |
---|
| 21 | // * any work based on the software) you agree to acknowledge its * |
---|
| 22 | // * use in resulting scientific publications, and indicate your * |
---|
| 23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
| 24 | // ******************************************************************** |
---|
| 25 | // |
---|
| 26 | // |
---|
| 27 | // $Id: GFlashShowerModel.hh,v 1.9 2006/06/29 19:13:59 gunter Exp $ |
---|
[1228] | 28 | // GEANT4 tag $Name: geant4-09-03 $ |
---|
[823] | 29 | // |
---|
| 30 | // |
---|
| 31 | //--------------------------------------------------------------- |
---|
| 32 | // GEANT 4 class header file |
---|
| 33 | // |
---|
| 34 | // GFlashShowerModel |
---|
| 35 | // |
---|
| 36 | // Class description: |
---|
| 37 | // |
---|
| 38 | // GFlash parameterisation shower model. |
---|
| 39 | |
---|
| 40 | // Authors: E.Barberio & Joanna Weng - 9.11.04 |
---|
| 41 | //--------------------------------------------------------------- |
---|
| 42 | #ifndef GFlashShowerModel_h |
---|
| 43 | #define GFlashShowerModel_h 1 |
---|
| 44 | |
---|
| 45 | //G4 Standard |
---|
| 46 | #include "G4VFastSimulationModel.hh" |
---|
| 47 | #include "G4VPhysicalVolume.hh" |
---|
| 48 | #include "G4ios.hh" |
---|
| 49 | |
---|
| 50 | //GFlash |
---|
| 51 | #include "GFlashShowerModelMessenger.hh" |
---|
| 52 | #include "GFlashParticleBounds.hh" |
---|
| 53 | #include "GFlashEnergySpot.hh" |
---|
| 54 | #include "GFlashHitMaker.hh" |
---|
| 55 | #include <vector> |
---|
| 56 | |
---|
| 57 | class GVFlashShowerParameterisation; |
---|
| 58 | class GFlashHomoShowerParameterisation; |
---|
| 59 | class GFlashSamplingShowerParameterisation; |
---|
| 60 | |
---|
| 61 | class GFlashShowerModel : public G4VFastSimulationModel |
---|
| 62 | { |
---|
| 63 | public: // with description |
---|
| 64 | |
---|
| 65 | GFlashShowerModel (G4String, G4Envelope*); |
---|
| 66 | GFlashShowerModel (G4String); |
---|
| 67 | ~GFlashShowerModel (); |
---|
| 68 | // Constructors, destructor |
---|
| 69 | |
---|
| 70 | G4bool ModelTrigger(const G4FastTrack &); |
---|
| 71 | G4bool IsApplicable(const G4ParticleDefinition&); |
---|
| 72 | void DoIt(const G4FastTrack&, G4FastStep&); |
---|
| 73 | // Checks whether conditions of fast parameterisation are fullfilled |
---|
| 74 | |
---|
| 75 | // setting |
---|
| 76 | |
---|
| 77 | inline void SetFlagParamType(G4int I) |
---|
| 78 | { FlagParamType = I; } |
---|
| 79 | inline void SetFlagParticleContainment(G4int I) |
---|
| 80 | { FlagParticleContainment = I; } |
---|
| 81 | inline void SetStepInX0(G4double Lenght) |
---|
| 82 | { StepInX0=Lenght; } |
---|
| 83 | inline void SetParameterisation(GVFlashShowerParameterisation &DP) |
---|
| 84 | { Parameterisation=&DP;} |
---|
| 85 | inline void SetHitMaker(GFlashHitMaker &Maker) |
---|
| 86 | { HMaker=&Maker; } |
---|
| 87 | inline void SetParticleBounds(GFlashParticleBounds &SpecificBound) |
---|
| 88 | { PBound =&SpecificBound; } |
---|
| 89 | |
---|
| 90 | // getting |
---|
| 91 | |
---|
| 92 | inline G4int GetFlagParamType() |
---|
| 93 | { return FlagParamType; } |
---|
| 94 | inline G4int GetFlagParticleContainment() |
---|
| 95 | { return FlagParticleContainment; } |
---|
| 96 | inline G4double GetStepInX0() |
---|
| 97 | { return StepInX0; } |
---|
| 98 | |
---|
| 99 | public: // without description |
---|
| 100 | |
---|
| 101 | // Gets ? |
---|
| 102 | GFlashParticleBounds *PBound; |
---|
| 103 | GVFlashShowerParameterisation *Parameterisation; |
---|
| 104 | |
---|
| 105 | private: |
---|
| 106 | |
---|
| 107 | void ElectronDoIt(const G4FastTrack&, G4FastStep&); |
---|
| 108 | // void GammaDoIt(const G4FastTrack&, G4FastStep&); |
---|
| 109 | // void NeutrinoDoIt(const G4FastTrack&, G4FastStep&); |
---|
| 110 | G4bool CheckParticleDefAndContainment(const G4FastTrack &fastTrack); |
---|
| 111 | G4bool CheckContainment(const G4FastTrack &fastTrack); |
---|
| 112 | |
---|
| 113 | private: |
---|
| 114 | |
---|
| 115 | GFlashHitMaker *HMaker; |
---|
| 116 | GFlashShowerModelMessenger* Messenger; |
---|
| 117 | |
---|
| 118 | //Control Flags |
---|
| 119 | G4int FlagParamType; ///0=no GFlash 1=only em showers parametrized |
---|
| 120 | G4int FlagParticleContainment; ///0=no check ///1=only fully contained... |
---|
| 121 | G4double StepInX0; |
---|
| 122 | G4double EnergyStop; |
---|
| 123 | |
---|
| 124 | }; |
---|
| 125 | #endif |
---|