Back to home page

EIC code displayed by LXR

 
 

    


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

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:     G4MuPairProduction
0033 //
0034 // Author:        Laszlo Urban
0035 //
0036 // Creation date: 30.05.1998
0037 //
0038 // Modifications:
0039 
0040 // 10-02-00 modifications , new e.m. structure, L.Urban
0041 // 10-08-01 new methods Store/Retrieve PhysicsTable (mma)
0042 // 29-10-01 all static functions no more inlined (mma)
0043 // 10-05-02 V.Ivanchenko update to new design
0044 // 26-12-02 secondary production moved to derived classes (VI)
0045 // 27-01-03 Make models region aware (V.Ivanchenko)
0046 // 05-02-03 Fix compilation warnings (V.Ivanchenko)
0047 // 13-02-03 SubCutoff regime is assigned to a region (V.Ivanchenko)
0048 // 08-08-03 STD substitute standard  (V.Ivanchenko)
0049 // 12-11-03 G4EnergyLossSTD -> G4EnergyLossProcess (V.Ivanchenko)
0050 // 21-01-04 Migrade to G4ParticleChangeForLoss (V.Ivanchenko)
0051 // 28-04-04 Fix minor bug in energy balance (V.Ivanchenko)
0052 // 17-08-04 Rename the process "Mu" -> "mu" (V.Ivanchenko)
0053 // 08-11-04 Migration to new interface of Store/Retrieve tables (V.Ivantchenko)
0054 // 08-04-05 Major optimisation of internal interfaces (V.Ivantchenko)
0055 //
0056 // Class Description:
0057 //
0058 // This class manages the PairProduction process for muons.
0059 // it inherites from G4VContinuousDiscreteProcess via G4VEnergyLossProcess.
0060 //
0061 
0062 // -------------------------------------------------------------------
0063 //
0064 
0065 #ifndef G4MuPairProduction_h
0066 #define G4MuPairProduction_h 1
0067 
0068 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0069 
0070 #include "globals.hh"
0071 #include "G4VEnergyLossProcess.hh"
0072 
0073 class G4MuPairProduction : public G4VEnergyLossProcess
0074 {
0075 public:
0076 
0077   explicit G4MuPairProduction(const G4String& processName = "muPairProd");
0078 
0079   ~G4MuPairProduction() = default;
0080 
0081   G4bool IsApplicable(const G4ParticleDefinition& p) override;
0082 
0083   G4double MinPrimaryEnergy(const G4ParticleDefinition* p,
0084                 const G4Material*, G4double cut) override;
0085 
0086   inline void SetLowestKineticEnergy(G4double e);
0087 
0088   // print description in html
0089   void ProcessDescription(std::ostream&) const override;
0090 
0091   G4MuPairProduction & operator=(const G4MuPairProduction &right) = delete;
0092   G4MuPairProduction(const G4MuPairProduction&) = delete;
0093 
0094 protected:
0095 
0096   // Print out of the class parameters
0097   void StreamProcessInfo(std::ostream& outFile) const override;
0098 
0099   void InitialiseEnergyLossProcess(const G4ParticleDefinition*,
0100                        const G4ParticleDefinition*) override;
0101 
0102   const G4ParticleDefinition* theParticle = nullptr;
0103   G4double                    lowestKinEnergy;
0104   G4bool                      isInitialised = false;
0105 
0106 };
0107 
0108 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
0109 
0110 inline void G4MuPairProduction::SetLowestKineticEnergy(G4double e) 
0111 {
0112   lowestKinEnergy = e;
0113 }
0114 
0115 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0116 
0117 #endif