Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:59:30

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 
0063     GFlashShowerModel (G4String, G4Envelope*);
0064     GFlashShowerModel (G4String);
0065     ~GFlashShowerModel ();  
0066       // Constructors, destructor
0067 
0068     G4bool ModelTrigger(const G4FastTrack &); 
0069     G4bool IsApplicable(const G4ParticleDefinition&);
0070     void DoIt(const G4FastTrack&, G4FastStep&);
0071       // Checks whether conditions of fast parameterisation are fullfilled
0072   
0073     // setting
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     // getting
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:  // without description
0098 
0099     // Gets ?  
0100     GFlashParticleBounds  *PBound;
0101     GVFlashShowerParameterisation *Parameterisation;  
0102 
0103   private:
0104 
0105     void ElectronDoIt(const G4FastTrack&, G4FastStep&);
0106     //  void GammaDoIt(const G4FastTrack&, G4FastStep&);
0107     //  void NeutrinoDoIt(const G4FastTrack&, G4FastStep&);
0108     G4bool CheckParticleDefAndContainment(const G4FastTrack &fastTrack);
0109     G4bool CheckContainment(const G4FastTrack &fastTrack);
0110   
0111   private:
0112 
0113     GFlashHitMaker *HMaker;  
0114     GFlashShowerModelMessenger* Messenger;
0115   
0116     //Control Flags
0117     G4int FlagParamType;           ///0=no GFlash 1=only em showers parametrized
0118     G4int FlagParticleContainment; ///0=no check  ///1=only fully contained...
0119     G4double StepInX0;  
0120     G4double EnergyStop;
0121   
0122 };
0123 #endif