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