Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:57:56

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:     G4AtimaFluctuations
0033 //
0034 // Author:        Jose Luis Rodriguez Sanchez on base of ATIMA code
0035 //
0036 // Creation date: 16.01.2018
0037 //
0038 // Modifications:
0039 //
0040 //
0041 // Class Description:
0042 //
0043 // Implementation of ion energy loss fluctuations
0044 //
0045 // -------------------------------------------------------------------
0046 //
0047 
0048 #ifndef G4AtimaFluctuations_h
0049 #define G4AtimaFluctuations_h 1
0050 
0051 
0052 #include "G4VEmFluctuationModel.hh"
0053 #include "G4ParticleDefinition.hh"
0054 #include "G4UniversalFluctuation.hh"
0055 
0056 class G4Pow;
0057 
0058 class G4AtimaFluctuations : public G4VEmFluctuationModel
0059 {
0060 
0061 public:
0062 
0063   explicit G4AtimaFluctuations(const G4String& nam = "IonFlucAtima");
0064 
0065   ~G4AtimaFluctuations() override;
0066 
0067   // Sample fluctuations
0068   G4double SampleFluctuations(const G4MaterialCutsCouple*,
0069                   const G4DynamicParticle*,
0070                   const G4double tcut,
0071                   const G4double tmax,
0072                   const G4double length,
0073                   const G4double meanLoss) override;
0074 
0075   // Compute dispertion 
0076   G4double Dispersion(const G4Material*,
0077               const G4DynamicParticle*,
0078               const G4double tcut,
0079               const G4double tmax,
0080               const G4double length) override;
0081 
0082   // Initialisation prerun
0083   void InitialiseMe(const G4ParticleDefinition*) override;
0084 
0085   // Initialisation prestep
0086   void SetParticleAndCharge(const G4ParticleDefinition*, 
0087                 G4double q2) override;
0088 
0089   // hide assignment operator
0090   G4AtimaFluctuations & operator=(const  G4AtimaFluctuations &right) = delete;
0091   G4AtimaFluctuations(const  G4AtimaFluctuations&) = delete;
0092 
0093 private:
0094 
0095   G4double EnergyTable_interpolate(const G4double* table,G4double xval, const G4double* y);
0096 
0097   const G4ParticleDefinition* particle;
0098 
0099   G4Pow*   g4calc; 
0100 
0101   G4double particleMass;
0102   G4double charge;
0103   G4double chargeSquare;
0104   G4double effChargeSquare;
0105 
0106   G4double MLN10;
0107   G4double atomic_mass_unit;
0108   G4double dedx_constant;
0109   G4double electron_mass;
0110   G4double fine_structure;
0111   G4double domega2dx_constant;
0112 
0113   static G4double stepE;
0114   static G4double tableE[200];
0115   static const G4double ls_X_coefficients_a[110][200];
0116   static const G4double ls_X_coefficients_ahi[110][200];
0117   static const G4double element_atomic_weights[110];
0118 
0119   // data members to speed up the fluctuation calculation
0120   G4double minLoss;
0121   // cash
0122   G4double kineticEnergy;
0123   G4double beta2;
0124 };
0125 
0126 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
0127 
0128 #endif