Back to home page

EIC code displayed by LXR

 
 

    


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

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:     G4MuBremsstrahlungModel
0033 //
0034 // Author:        Vladimir Ivanchenko on base of Laszlo Urban code
0035 // 
0036 // Creation date: 18.05.2002
0037 //
0038 // Modifications:
0039 //
0040 // 23-12-02 Change interface in order to move to cut per region (V.Ivanchenko)
0041 // 27-01-03 Make models region aware (V.Ivanchenko)
0042 // 13-02-03 Add name (V.Ivanchenko)
0043 // 10-02-04 Add lowestKinEnergy (V.Ivanchenko)
0044 // 08-04-05 Major optimisation of internal interfaces (V.Ivantchenko)
0045 // 13-02-06 Add ComputeCrossSectionPerAtom (mma)
0046 // 11-10-07 Add ignoreCut flag (V.Ivanchenko) 
0047 // 28-02-08 Reorganized protected methods and members (V.Ivanchenko) 
0048 // 06-03-08 Remove obsolete methods and members (V.Ivanchenko) 
0049 // 31-05-13 Use element selectors instead of local data (V.Ivanchenko)
0050 //
0051 // Class Description:
0052 //
0053 // Implementation of bremssrahlung by muons
0054 // A.G. Bogdanov et al., IEEE Trans. Nuc. Sci., Vol.53, No.2, 2006
0055 //
0056 // -------------------------------------------------------------------
0057 //
0058 
0059 #ifndef G4MuBremsstrahlungModel_h
0060 #define G4MuBremsstrahlungModel_h 1
0061 
0062 #include "G4VEmModel.hh"
0063 #include "G4NistManager.hh"
0064 #include "G4Exp.hh"
0065 
0066 class G4Element;
0067 class G4ParticleChangeForLoss;
0068 
0069 class G4MuBremsstrahlungModel : public G4VEmModel
0070 {
0071 
0072 public:
0073 
0074   explicit G4MuBremsstrahlungModel(const G4ParticleDefinition* p = nullptr,
0075                                    const G4String& nam = "MuBrem");
0076 
0077   ~G4MuBremsstrahlungModel() = default;
0078 
0079   void Initialise(const G4ParticleDefinition*, const G4DataVector&) override;
0080 
0081   void InitialiseLocal(const G4ParticleDefinition*, 
0082                        G4VEmModel* masterModel) override;
0083 
0084   G4double MinEnergyCut(const G4ParticleDefinition*,
0085                         const G4MaterialCutsCouple*) override;
0086                   
0087   G4double ComputeCrossSectionPerAtom(
0088                  const G4ParticleDefinition*,
0089                  G4double kineticEnergy,
0090                  G4double Z, G4double A,
0091                  G4double cutEnergy,
0092                  G4double maxEnergy) override;
0093                                    
0094   G4double ComputeDEDXPerVolume(const G4Material*,
0095                                 const G4ParticleDefinition*,
0096                                 G4double kineticEnergy,
0097                                 G4double cutEnergy) override;
0098                   
0099   void SampleSecondaries(std::vector<G4DynamicParticle*>*,
0100                          const G4MaterialCutsCouple*,
0101              const G4DynamicParticle*,
0102              G4double tmin,
0103              G4double maxEnergy) override;
0104 
0105   inline void SetLowestKineticEnergy(G4double e);
0106 
0107   G4double MinPrimaryEnergy(const G4Material*, const G4ParticleDefinition*, 
0108                             G4double) override;
0109 
0110   // hide assignment operator
0111   G4MuBremsstrahlungModel & 
0112     operator=(const  G4MuBremsstrahlungModel &right) = delete;
0113   G4MuBremsstrahlungModel(const  G4MuBremsstrahlungModel&) = delete;
0114 
0115 protected:
0116 
0117   G4double ComputMuBremLoss(G4double Z, G4double tkin, G4double cut);
0118   
0119   G4double ComputeMicroscopicCrossSection(G4double tkin,
0120                       G4double Z,
0121                       G4double cut);
0122 
0123   virtual G4double ComputeDMicroscopicCrossSection(G4double tkin,
0124                            G4double Z,
0125                            G4double gammaEnergy);
0126 
0127   void SetParticle(const G4ParticleDefinition*);
0128 
0129 protected:
0130 
0131   const G4ParticleDefinition* particle = nullptr;
0132   G4ParticleDefinition* theGamma = nullptr;
0133   G4ParticleChangeForLoss* fParticleChange = nullptr;
0134   G4NistManager* nist = nullptr;
0135 
0136   G4double mass = 1.0;
0137   G4double rmass = 1.0;
0138   G4double cc = 1.0;
0139   G4double coeff = 1.0;
0140   G4double sqrte;
0141   G4double bh = 202.4;
0142   G4double bh1 = 446.;
0143   G4double btf = 183.;
0144   G4double btf1 = 1429.;
0145 
0146   G4double lowestKinEnergy;
0147   G4double minThreshold;
0148 
0149   static const G4double xgi[6];
0150   static const G4double wgi[6];
0151   static G4double fDN[93];
0152 };
0153 
0154 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0155 
0156 inline void G4MuBremsstrahlungModel::SetLowestKineticEnergy(G4double e) 
0157 {
0158   lowestKinEnergy = e;
0159 }
0160 
0161 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0162 
0163 #endif