Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-17 08:59:53

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 //
0027 //
0028 //
0029 //---------------------------------------------------------------
0030 //  GEANT 4 class header file
0031 //
0032 //  GFlashShowerModel
0033 //
0034 //  Class description:
0035 //
0036 //  GFlash parameterisation shower model.
0037 
0038 // Authors: E.Barberio & Joanna Weng - 9.11.04
0039 //---------------------------------------------------------------
0040 #ifndef GFlashShowerModel_h
0041 #define GFlashShowerModel_h 1
0042 
0043 //G4 Standard
0044 #include "G4VFastSimulationModel.hh"
0045 #include "G4VPhysicalVolume.hh"
0046 #include "G4ios.hh"
0047 
0048 //GFlash
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:  // with description
0062     GFlashShowerModel(G4String, G4Envelope*);
0063     GFlashShowerModel(G4String);
0064     ~GFlashShowerModel();
0065     // Constructors, destructor
0066 
0067     G4bool ModelTrigger(const G4FastTrack&);
0068     G4bool IsApplicable(const G4ParticleDefinition&);
0069     void DoIt(const G4FastTrack&, G4FastStep&);
0070     // Checks whether conditions of fast parameterisation are fullfilled
0071 
0072     // setting
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     // getting
0082 
0083     inline G4int GetFlagParamType() { return FlagParamType; }
0084     inline G4int GetFlagParticleContainment() { return FlagParticleContainment; }
0085     inline G4double GetStepInX0() { return StepInX0; }
0086 
0087   public:  // without description
0088     // Gets ?
0089     GFlashParticleBounds  *PBound;
0090     GVFlashShowerParameterisation* Parameterisation;
0091 
0092   private:
0093 
0094     void ElectronDoIt(const G4FastTrack&, G4FastStep&);
0095     //  void GammaDoIt(const G4FastTrack&, G4FastStep&);
0096     //  void NeutrinoDoIt(const G4FastTrack&, G4FastStep&);
0097     G4bool CheckParticleDefAndContainment(const G4FastTrack &fastTrack);
0098     G4bool CheckContainment(const G4FastTrack &fastTrack);
0099 
0100   private:
0101     GFlashHitMaker* HMaker;
0102     GFlashShowerModelMessenger* Messenger;
0103 
0104     //Control Flags
0105     G4int FlagParamType;           ///0=no GFlash 1=only em showers parametrized
0106     G4int FlagParticleContainment; ///0=no check  ///1=only fully contained...
0107     G4double StepInX0;
0108     G4double EnergyStop;
0109 };
0110 #endif