Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:58:11

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 // GEANT4 Class header file
0030 //
0031 //
0032 // File name:     G4eIonisation
0033 //
0034 // Author:        Laszlo Urban
0035 //
0036 // Creation date: 20.03.1997
0037 //
0038 // Modifications:
0039 //
0040 // 10-02-00 modifications , new e.m. structure, L.Urban
0041 // 03-08-01 new methods Store/Retrieve PhysicsTable (mma)
0042 // 13-08-01 new function ComputeRestrictedMeandEdx() (mma)
0043 // 19-09-01 come back to previous ProcessName "eIoni"
0044 // 29-10-01 all static functions no more inlined (mma)
0045 // 07-01-02 new design of em processes (V.Ivanchenko)
0046 // 26-12-02 Secondary production moved to derived classes (VI)
0047 // 24-01-03 Make models region aware (V.Ivanchenko)
0048 // 05-02-03 Fix compilation warnings (V.Ivanchenko)
0049 // 13-02-03 SubCutoff regime is assigned to a region (V.Ivanchenko)
0050 // 23-05-03 Add fluctuation model as a member function (V.Ivanchenko)
0051 // 03-06-03 Fix initialisation problem for STD ionisation (V.Ivanchenko)
0052 // 08-08-03 STD substitute standard  (V.Ivanchenko)
0053 // 12-11-03 G4EnergyLossSTD -> G4EnergyLossProcess (V.Ivanchenko)
0054 // 21-01-04 Migrade to G4ParticleChangeForLoss (V.Ivanchenko)
0055 // 08-11-04 Migration to new interface of Store/Retrieve tables (V.Ivantchenko)
0056 // 08-04-05 Major optimisation of internal interfaces (V.Ivantchenko)
0057 // 11-04-04 Move MaxSecondaryEnergy to models (V.Ivanchenko)
0058 //
0059 // Class Description:
0060 //
0061 // This class manages the ionisation process for e-/e+
0062 // it inherites from G4VContinuousDiscreteProcess via G4VEnergyLossProcess.
0063 //
0064 
0065 // -------------------------------------------------------------------
0066 //
0067 
0068 #ifndef G4eIonisation_h
0069 #define G4eIonisation_h 1
0070 
0071 #include "G4VEnergyLossProcess.hh"
0072 #include "G4Electron.hh"
0073 #include "G4Positron.hh"
0074 #include "G4VEmModel.hh"
0075 
0076 class G4Material;
0077 class G4ParticleDefinition;
0078 
0079 class G4eIonisation : public G4VEnergyLossProcess
0080 {
0081 
0082 public:
0083 
0084   explicit G4eIonisation(const G4String& name = "eIoni");
0085 
0086   ~G4eIonisation() override;
0087 
0088   G4bool IsApplicable(const G4ParticleDefinition& p) final;
0089 
0090   // print documentation in html format
0091   void ProcessDescription(std::ostream&) const override;
0092 
0093   // hide assignment operator
0094   G4eIonisation & operator=(const G4eIonisation &right) = delete;
0095   G4eIonisation(const G4eIonisation&) = delete;
0096 
0097 protected:
0098 
0099   void InitialiseEnergyLossProcess(const G4ParticleDefinition*,
0100                        const G4ParticleDefinition*) override;
0101 
0102   G4double MinPrimaryEnergy(const G4ParticleDefinition*,
0103                 const G4Material*, G4double cut) final;
0104 
0105 private:
0106 
0107   const G4ParticleDefinition* theElectron;
0108 
0109   G4bool isElectron;
0110   G4bool isInitialised;
0111 };
0112 
0113 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0114 
0115 #endif