Geant4 Cross Reference |
1 // 1 2 // ******************************************* 3 // * License and Disclaimer 4 // * 5 // * The Geant4 software is copyright of th 6 // * the Geant4 Collaboration. It is provided 7 // * conditions of the Geant4 Software License 8 // * LICENSE and available at http://cern.ch/ 9 // * include a list of copyright holders. 10 // * 11 // * Neither the authors of this software syst 12 // * institutes,nor the agencies providing fin 13 // * work make any representation or warran 14 // * regarding this software system or assum 15 // * use. Please see the license in the file 16 // * for the full disclaimer and the limitatio 17 // * 18 // * This code implementation is the result 19 // * technical work of the GEANT4 collaboratio 20 // * By using, copying, modifying or distri 21 // * any work based on the software) you ag 22 // * use in resulting scientific publicati 23 // * acceptance of all terms of the Geant4 Sof 24 // ******************************************* 25 // 26 // 27 // ------------------------------------------- 28 // 29 // GEANT4 Class header file 30 // 31 // 32 // File name: G4PAIModelData 33 // 34 // Author: V. Ivanchenko based on V.Gri 35 // 36 // Creation date: 16.08.2013 37 // 38 // Modifications: 39 // 40 // 04.10.13 V. Grichine add cut of dE/dx, redi 41 // 42 // 43 // Class Description: 44 // 45 // Implementation of PAI model internal data c 46 // This class is extracted from G4PAIModel in 47 // of these data between threads. 48 // 49 // Internal data tables are computed for proto 50 51 // ------------------------------------------- 52 // 53 54 #ifndef G4PAIModelData_h 55 #define G4PAIModelData_h 1 56 57 #include <vector> 58 #include "globals.hh" 59 #include "G4PAIySection.hh" 60 #include "G4SandiaTable.hh" 61 62 class G4PhysicsLogVector; 63 class G4PhysicsTable; 64 class G4MaterialCutsCouple; 65 class G4PAIModel; 66 67 class G4PAIModelData 68 { 69 70 public: 71 72 explicit G4PAIModelData(G4double tmin, G4dou 73 74 ~G4PAIModelData(); 75 76 void Initialise(const G4MaterialCutsCouple*, 77 78 G4double DEDXPerVolume(G4int coupleIndex, G4 79 G4double cut) const; 80 81 G4double CrossSectionPerVolume(G4int coupleI 82 G4double tcut, G4double tmax) const; 83 84 G4double SampleAlongStepTransfer(G4int coupl 85 G4double scaledTkin, 86 G4double tmax, 87 G4double stepFactor) const; 88 89 G4double SamplePostStepTransfer(G4int couple 90 G4double scaledTkin, 91 G4double tmin, G4double tmax) const; 92 93 // hide assignment operator 94 G4PAIModelData & operator=(const G4PAIModel 95 G4PAIModelData(const G4PAIModelData&) = del 96 97 private: 98 99 G4double GetEnergyTransfer(G4int coupleIndex 100 G4double position) const; 101 102 G4int fTotBin; 103 G4double fLowestKineticEnergy; 104 G4double fHighestKineticEnergy; 105 106 G4PhysicsLogVector* fParticleEnergyVector; 107 108 G4PAIySection fPAIySection; 109 G4SandiaTable fSandia; 110 111 std::vector<G4PhysicsTable*> fPAIxscBan 112 std::vector<G4PhysicsTable*> fPAIdEdxBa 113 std::vector<G4PhysicsLogVector*> fdEdxTable 114 }; 115 116 #endif 117 118