Back to home page

EIC code displayed by LXR

 
 

    


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

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:     G4PAIModelData
0033 //
0034 // Author:        V. Ivanchenko based on V.Grichine code of G4PAIModel
0035 //
0036 // Creation date: 16.08.2013
0037 //
0038 // Modifications:
0039 //
0040 // 04.10.13 V. Grichine add cut of dE/dx, redirect <dE/dx> to   std::vector<G4PhysicsLogVector*>  fdEdxTable;
0041 //
0042 //
0043 // Class Description:
0044 //
0045 // Implementation of PAI model internal data class.
0046 // This class is extracted from G4PAIModel in order to provide sharing
0047 // of these data between threads.
0048 //
0049 // Internal data tables are computed for proton. 
0050 
0051 // -------------------------------------------------------------------
0052 //
0053 
0054 #ifndef G4PAIModelData_h
0055 #define G4PAIModelData_h 1
0056 
0057 #include <vector>
0058 #include "globals.hh"
0059 #include "G4PAIySection.hh"
0060 #include "G4SandiaTable.hh"
0061 
0062 class G4PhysicsLogVector;
0063 class G4PhysicsTable;
0064 class G4MaterialCutsCouple;
0065 class G4PAIModel;
0066 
0067 class G4PAIModelData 
0068 {
0069 
0070 public:
0071 
0072   explicit G4PAIModelData(G4double tmin, G4double tmax, G4int verbose);
0073 
0074   ~G4PAIModelData();
0075 
0076   void Initialise(const G4MaterialCutsCouple*, G4PAIModel*);
0077 
0078   G4double DEDXPerVolume(G4int coupleIndex, G4double scaledTkin,
0079              G4double cut) const;
0080 
0081   G4double CrossSectionPerVolume(G4int coupleIndex, G4double scaledTkin,
0082                  G4double tcut, G4double tmax) const;
0083 
0084   G4double SampleAlongStepTransfer(G4int coupleIndex, G4double kinEnergy,
0085                    G4double scaledTkin,
0086                    G4double tmax,
0087                    G4double stepFactor) const;
0088 
0089   G4double SamplePostStepTransfer(G4int coupleIndex, 
0090                   G4double scaledTkin, 
0091                   G4double tmin, G4double tmax) const;
0092 
0093   // hide assignment operator 
0094   G4PAIModelData & operator=(const  G4PAIModelData &right) = delete;
0095   G4PAIModelData(const  G4PAIModelData&) = delete;
0096 
0097 private:
0098 
0099   G4double GetEnergyTransfer(G4int coupleIndex, size_t iPlace, 
0100                  G4double position) const;
0101 
0102   G4int                fTotBin;
0103   G4double             fLowestKineticEnergy;
0104   G4double             fHighestKineticEnergy;
0105 
0106   G4PhysicsLogVector*  fParticleEnergyVector;
0107 
0108   G4PAIySection        fPAIySection;
0109   G4SandiaTable        fSandia;
0110 
0111   std::vector<G4PhysicsTable*>      fPAIxscBank;
0112   std::vector<G4PhysicsTable*>      fPAIdEdxBank;
0113   std::vector<G4PhysicsLogVector*>  fdEdxTable;
0114 };
0115 
0116 #endif
0117