ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4PAIModelData.hh
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4PAIModelData.hh
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 //
27 // -------------------------------------------------------------------
28 //
29 // GEANT4 Class header file
30 //
31 //
32 // File name: G4PAIModelData
33 //
34 // Author: V. Ivanchenko based on V.Grichine code of G4PAIModel
35 //
36 // Creation date: 16.08.2013
37 //
38 // Modifications:
39 //
40 // 04.10.13 V. Grichine add cut of dE/dx, redirect <dE/dx> to std::vector<G4PhysicsLogVector*> fdEdxTable;
41 //
42 //
43 // Class Description:
44 //
45 // Implementation of PAI model internal data class.
46 // This class is extracted from G4PAIModel in order to provide sharing
47 // of these data between threads.
48 //
49 // Internal data tables are computed for proton.
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;
65 class G4PAIModel;
66 
68 {
69 
70 public:
71 
72  explicit G4PAIModelData(G4double tmin, G4double tmax, G4int verbose);
73 
75 
77 
78  G4double DEDXPerVolume(G4int coupleIndex, G4double scaledTkin,
79  G4double cut) const;
80 
81  G4double CrossSectionPerVolume(G4int coupleIndex, G4double scaledTkin,
82  G4double tcut, G4double tmax) const;
83 
84  G4double SampleAlongStepTransfer(G4int coupleIndex, G4double kinEnergy,
85  G4double scaledTkin,
86  G4double tmax,
87  G4double stepFactor) const;
88 
90  G4double scaledTkin,
91  G4double tmin, G4double tmax) const;
92 
93 private:
94 
95  G4double GetEnergyTransfer(G4int coupleIndex, size_t iPlace,
96  G4double position) const;
97 
98  // hide assignment operator
99  G4PAIModelData & operator=(const G4PAIModelData &right) = delete;
100  G4PAIModelData(const G4PAIModelData&) = delete;
101 
105 
107 
110 
111  std::vector<G4PhysicsTable*> fPAIxscBank;
112  std::vector<G4PhysicsTable*> fPAIdEdxBank;
113  std::vector<G4PhysicsLogVector*> fdEdxTable;
114 };
115 
116 #endif
117