Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4PAIPhotModel.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 // $Id: G4PAIPhotonModel.hh 73607 2013-09-02 10:04:03Z gcosmo $
27 //
28 // -------------------------------------------------------------------
29 //
30 // GEANT4 Class header file
31 //
32 //
33 // File name: G4PAIPhotModel
34 //
35 // Author: V. Grichine based on G4PAIModel code for MT
36 //
37 // Creation date: 07.10.2013
38 //
39 //
40 // Class Description:
41 //
42 // Implementation of PAI photon model of energy loss and
43 // delta-electron or X-ray production by charged particles in MT framework
44 //
45 // -------------------------------------------------------------------
46 //
47 
48 #ifndef G4PAIPhotModel_h
49 #define G4PAIPhotModel_h 1
50 
52 
53 #include "G4VEmModel.hh"
54 #include "G4VEmFluctuationModel.hh"
55 #include "globals.hh"
56 #include <vector>
57 
58 class G4Region;
61 
62 class G4PAIPhotData;
63 
65 {
66 
67 public:
68 
69  explicit G4PAIPhotModel(const G4ParticleDefinition* p = nullptr,
70  const G4String& nam = "PAI");
71 
72  ~G4PAIPhotModel() final;
73 
74  void Initialise(const G4ParticleDefinition*, const G4DataVector&) final;
75 
77  G4VEmModel* masterModel) final;
78 
80  const G4MaterialCutsCouple* couple) final;
81 
83  const G4ParticleDefinition*,
85  G4double cutEnergy) final;
86 
88  const G4ParticleDefinition*,
89  G4double kineticEnergy,
90  G4double cutEnergy,
91  G4double maxEnergy) final;
92 
93  void SampleSecondaries(std::vector<G4DynamicParticle*>*,
94  const G4MaterialCutsCouple*,
95  const G4DynamicParticle*,
96  G4double tmin,
97  G4double maxEnergy) final;
98 
100  const G4DynamicParticle*,
101  G4double, G4double, G4double) final;
102 
104  G4double, G4double) final;
105 
106  void DefineForRegion(const G4Region* r) final;
107 
108  inline G4PAIPhotData* GetPAIPhotData();
109 
110  inline const std::vector<const G4MaterialCutsCouple*>& GetVectorOfCouples();
111 
112  inline G4double ComputeMaxEnergy(G4double scaledEnergy);
113 
114  inline void SetVerboseLevel(G4int verbose);
115 
116 protected:
117 
119  G4double kinEnergy) final;
120 
121 private:
122 
124 
125  inline void SetParticle(const G4ParticleDefinition* p);
126 
127  // hide assignment operator
128  G4PAIPhotModel & operator=(const G4PAIPhotModel &right) = delete;
129  G4PAIPhotModel(const G4PAIPhotModel&) = delete;
130 
132 
134 
135  std::vector<const G4MaterialCutsCouple*> fMaterialCutsCoupleVector;
136  std::vector<const G4Region*> fPAIRegionVector;
137 
142 
147 };
148 
150 {
151  return fModelData;
152 }
153 
154 inline const std::vector<const G4MaterialCutsCouple*>&
156 {
158 }
159 
161 {
162  return MaxSecondaryEnergy(fParticle, scaledEnergy/fRatio);
163 }
164 
166 {
167  fVerbose=verbose;
168 }
169 
171 {
172  G4int idx = -1;
173  size_t jMatMax = fMaterialCutsCoupleVector.size();
174  for(size_t jMat = 0;jMat < jMatMax; ++jMat) {
175  if(couple == fMaterialCutsCoupleVector[jMat]) {
176  idx = jMat;
177  break;
178  }
179  }
180  return idx;
181 }
182 
184 {
185  if(fParticle != p) {
186  fParticle = p;
190  fChargeSquare = q*q;
191  }
192 }
193 
194 #endif
195 
196 
197 
198 
199 
200 
201 
const G4ParticleDefinition * fParticle
G4PAIPhotData * GetPAIPhotData()
G4double fChargeSquare
G4double Dispersion(const G4Material *, const G4DynamicParticle *, G4double, G4double) final
G4double ComputeDEDXPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy) final
const std::vector< const G4MaterialCutsCouple * > & GetVectorOfCouples()
const char * p
Definition: xmltok.h:285
G4double GetPDGCharge() const
G4int FindCoupleIndex(const G4MaterialCutsCouple *)
G4double GetPDGMass() const
G4double fLowestTcut
static constexpr double proton_mass_c2
G4double CrossSectionPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy, G4double maxEnergy) final
G4double SampleFluctuations(const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double, G4double, G4double) final
double G4double
Definition: G4Types.hh:76
G4ParticleChangeForLoss * fParticleChange
G4double MaxSecondaryEnergy(const G4ParticleDefinition *, G4double kinEnergy) final
const G4ParticleDefinition * fElectron
void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy) final
std::vector< const G4MaterialCutsCouple * > fMaterialCutsCoupleVector
G4PAIPhotModel & operator=(const G4PAIPhotModel &right)=delete
G4PAIPhotData * fModelData
G4double MinEnergyCut(const G4ParticleDefinition *, const G4MaterialCutsCouple *couple) final
G4PAIPhotModel(const G4ParticleDefinition *p=nullptr, const G4String &nam="PAI")
const G4ParticleDefinition * fPositron
int G4int
Definition: G4Types.hh:78
void DefineForRegion(const G4Region *r) final
void SetVerboseLevel(G4int verbose)
~G4PAIPhotModel() final
void InitialiseLocal(const G4ParticleDefinition *, G4VEmModel *masterModel) final
void Initialise(const G4ParticleDefinition *, const G4DataVector &) final
G4double ComputeMaxEnergy(G4double scaledEnergy)
void SetParticle(const G4ParticleDefinition *p)
std::vector< const G4Region * > fPAIRegionVector
static constexpr double eplus