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