Back to home page

EIC code displayed by LXR

 
 

    


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

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 Author:
0028 M. Omer and R. Hajima  on   17 October 2016
0029 contact:
0030 omer.mohamed@jaea.go.jp and hajima.ryoichi@qst.go.jp
0031 Publication Information:
0032 1- M. Omer, R. Hajima, Including Delbrück scattering in Geant4,
0033 Nucl. Instrum. Methods Phys. Res. Sect. B, vol. 405, 2017, pp. 43-49.,
0034 https://doi.org/10.1016/j.nimb.2017.05.028
0035 2- M. Omer, R. Hajima, Geant4 physics process for elastic scattering of gamma-rays,
0036 JAEA Technical Report 2018-007, 2018.
0037 https://doi.org/10.11484/jaea-data-code-2018-007
0038 */
0039 //         on base of G4LivermoreRayleighModel
0040 //
0041 
0042 #ifndef G4JAEAElasticScatteringModel_h
0043 #define G4JAEAElasticScatteringModel_h 1
0044 
0045 #include "G4VEmModel.hh"
0046 #include "G4ParticleChangeForGamma.hh"
0047 #include "G4PhysicsFreeVector.hh"
0048 #include "G4ProductionCutsTable.hh"
0049 #include "G4DataVector.hh"
0050 
0051 class G4JAEAElasticScatteringModel : public G4VEmModel
0052 {
0053 public:
0054   explicit G4JAEAElasticScatteringModel();
0055   virtual ~G4JAEAElasticScatteringModel();
0056 
0057   void Initialise(const G4ParticleDefinition*, const G4DataVector&) override;
0058 
0059   void InitialiseLocal(const G4ParticleDefinition*,
0060                G4VEmModel* masterModel) override;
0061 
0062   void InitialiseForElement(const G4ParticleDefinition*, G4int Z) override;
0063 
0064   G4double ComputeCrossSectionPerAtom(
0065                       const G4ParticleDefinition*,
0066                                       G4double kinEnergy,
0067                                       G4double Z,
0068                                       G4double A=0,
0069                                       G4double cut=0,
0070                                       G4double emax=DBL_MAX) override;
0071 
0072   void SampleSecondaries(std::vector<G4DynamicParticle*>*,
0073              const G4MaterialCutsCouple*,
0074              const G4DynamicParticle*,
0075              G4double tmin,
0076              G4double maxEnergy) override;
0077   
0078   void SetLowEnergyThreshold(G4double val){lowEnergyLimit = val;};
0079   void SetDebugVerbosity(G4int val){verboseLevel = val;};
0080 
0081   G4JAEAElasticScatteringModel & operator=(const G4JAEAElasticScatteringModel &right) = delete;
0082   G4JAEAElasticScatteringModel(const G4JAEAElasticScatteringModel&) = delete;
0083 
0084 private:
0085   void ReadData(std::size_t Z, const char* path = 0);
0086 
0087   static const G4int maxZ = 99;
0088   static G4PhysicsFreeVector* dataCS[maxZ+1];
0089   static G4DataVector* ES_Data[maxZ+1];
0090   G4ParticleChangeForGamma* fParticleChange;
0091   G4double distribution[181];
0092   G4double pdf[181];
0093   G4double cdf[181];
0094 
0095   G4double lowEnergyLimit;
0096   
0097   G4int verboseLevel;
0098   G4bool isInitialised;
0099   
0100 };
0101 
0102 
0103 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
0104 
0105 #endif