Back to home page

EIC code displayed by LXR

 
 

    


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

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:     G4LivermoreBremsstrahlungModel
0033 //
0034 // Author:        Andreas Schaelicke & Vladimir Ivantchenko
0035 //
0036 // Creation date: 04.10.2011
0037 //
0038 // Modifications:
0039 //
0040 //
0041 // Class Description:
0042 //
0043 // Implementation of the bremssrahlung energy spectrum using
0044 // 1. S.M. Seltzer and M.J. Berger Nucl. Instr. Meth. B12 (1985) 95
0045 // 2. S.M. Seltzer and M.J. Berger Atomic data and Nuclear Data 
0046 //    Tables 35 (1986) 345
0047 // Cross section computation in the base class G4eBremsstrahlungRelModel
0048 
0049 // -------------------------------------------------------------------
0050 //
0051 
0052 #ifndef G4LivermoreBremsstrahlungModel_h
0053 #define G4LivermoreBremsstrahlungModel_h 1
0054 
0055 #include "G4eBremsstrahlungRelModel.hh"
0056 #include "globals.hh"
0057 
0058 class G4Physics2DVector;
0059 
0060 class G4LivermoreBremsstrahlungModel : public G4eBremsstrahlungRelModel
0061 {
0062 public:
0063   explicit G4LivermoreBremsstrahlungModel(const G4ParticleDefinition* p = nullptr, 
0064                       const G4String& nam = "LowEnBrem");
0065   virtual ~G4LivermoreBremsstrahlungModel();
0066   
0067   void Initialise(const G4ParticleDefinition*, const G4DataVector&) override;
0068   void InitialiseForElement(const G4ParticleDefinition*, G4int Z) override;
0069 
0070   void SampleSecondaries(std::vector<G4DynamicParticle*>*,
0071                  const G4MaterialCutsCouple*,
0072                  const G4DynamicParticle*,
0073                  G4double cutEnergy,
0074                  G4double maxEnergy) override;
0075 
0076   inline void SetBicubicInterpolationFlag(G4bool);
0077 
0078   G4LivermoreBremsstrahlungModel & operator=(const  G4LivermoreBremsstrahlungModel &right) = delete;
0079   G4LivermoreBremsstrahlungModel(const  G4LivermoreBremsstrahlungModel&) = delete;
0080 
0081 protected:
0082   G4double ComputeDXSectionPerAtom(G4double gammaEnergy) override;
0083   G4String DirectoryPath() const;
0084 
0085 private:
0086   void ReadData(G4int Z, const char* path = 0);
0087 
0088   static G4Physics2DVector* dataSB[101];
0089   static G4double ylimit[101];
0090   static G4double expnumlim;
0091 
0092   G4int  nwarn = 0;
0093   size_t idx = 0;
0094   size_t idy = 0;
0095   G4bool useBicubicInterpolation;
0096 };
0097 
0098 inline void G4LivermoreBremsstrahlungModel::SetBicubicInterpolationFlag(G4bool val)
0099 {
0100   useBicubicInterpolation = val;
0101 }
0102 
0103 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
0104 
0105 
0106 #endif