Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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  explicit 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 tmax,
88  G4double stepFactor) const;
89 
91  G4double scaledTkin,
92  G4double tmin, G4double tmax) const;
93 
94 private:
95 
96  G4double GetEnergyTransfer(G4int coupleIndex, size_t iPlace,
97  G4double position) const;
98 
99  // hide assignment operator
100  G4PAIModelData & operator=(const G4PAIModelData &right) = delete;
101  G4PAIModelData(const G4PAIModelData&) = delete;
102 
103  G4int fTotBin;
104  G4double fLowestKineticEnergy;
105  G4double fHighestKineticEnergy;
106 
107  G4PhysicsLogVector* fParticleEnergyVector;
108 
109  G4PAIySection fPAIySection;
110  G4SandiaTable fSandia;
111 
112  std::vector<G4PhysicsTable*> fPAIxscBank;
113  std::vector<G4PhysicsTable*> fPAIdEdxBank;
114  std::vector<G4PhysicsLogVector*> fdEdxTable;
115 };
116 
117 #endif
118 
int G4int
Definition: G4Types.hh:78
G4double SampleAlongStepTransfer(G4int coupleIndex, G4double kinEnergy, G4double scaledTkin, G4double tmax, G4double stepFactor) const
G4double DEDXPerVolume(G4int coupleIndex, G4double scaledTkin, G4double cut) const
G4double CrossSectionPerVolume(G4int coupleIndex, G4double scaledTkin, G4double tcut, G4double tmax) const
G4double SamplePostStepTransfer(G4int coupleIndex, G4double scaledTkin, G4double tmin, G4double tmax) const
double G4double
Definition: G4Types.hh:76
void Initialise(const G4MaterialCutsCouple *, G4PAIModel *)
G4PAIModelData(G4double tmin, G4double tmax, G4int verbose)