Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4PolarizedAnnihilationModel.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//
27// -------------------------------------------------------------------
28//
29// GEANT4 Class header file
30//
31//
32// File name: G4PolarizedAnnihilationModel
33//
34// Author: Andreas Schaelicke and Pavel Starovoitov
35//
36// Creation date: 01.05.2005
37//
38// Modifications:
39// 18-07-06 use newly calculated cross sections (P. Starovoitov)
40// 21-08-06 update interface to geant4.8.1 (A. Schaelicke)
41// 10-07-07 copied Initialise() method from G4eeToTwoGammaModel to provide a
42// ParticleChangeForGamma object (A. Schaelicke)
43//
44//
45// Class Description:
46//
47// Implementation of polarized gamma Annihilation scattering on free electron
48//
49
50// -------------------------------------------------------------------
51//
52
53#ifndef G4PolarizedAnnihilationModel_h
54#define G4PolarizedAnnihilationModel_h 1
55
57#include "G4StokesVector.hh"
58
61
63{
64
65public:
66
67 explicit G4PolarizedAnnihilationModel(const G4ParticleDefinition* p = nullptr,
68 const G4String& nam = "Polarized-Annihilation");
69
71
72 virtual void Initialise(const G4ParticleDefinition*,
73 const G4DataVector&) final;
74
75 virtual G4double
77
79 G4double & valueX,
80 G4double & valueA,
81 G4double & valueT);
82
83 virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
85 const G4DynamicParticle*,
86 G4double tmin,
87 G4double maxEnergy) final;
88
89 // polarized routines
90 inline void SetTargetPolarization(const G4ThreeVector & pTarget);
91 inline void SetBeamPolarization(const G4ThreeVector & pBeam);
92 inline const G4ThreeVector & GetTargetPolarization() const;
93 inline const G4ThreeVector & GetBeamPolarization() const;
94 inline const G4ThreeVector & GetFinalGamma1Polarization() const;
95 inline const G4ThreeVector & GetFinalGamma2Polarization() const;
96
97private:
98
99 // hide assignment operator
101 operator=(const G4PolarizedAnnihilationModel &right) = delete;
103
104 G4PolarizedAnnihilationCrossSection * crossSectionCalculator;
105 // incomming
106 G4StokesVector theBeamPolarization; // positron
107 G4StokesVector theTargetPolarization; // electron
108 // outgoing
109 G4StokesVector finalGamma1Polarization;
110 G4StokesVector finalGamma2Polarization;
111
112 G4int verboseLevel;
113
114 G4ParticleChangeForGamma* gParticleChange;
115};
116
117//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
118
120{
121 theTargetPolarization = pTarget;
122}
124{
125 theBeamPolarization = pBeam;
126}
128{
129 return theTargetPolarization;
130}
132{
133 return theBeamPolarization;
134}
136{
137 return finalGamma1Polarization;
138}
140{
141 return finalGamma2Polarization;
142}
143
144#endif
double G4double
Definition: G4Types.hh:83
int G4int
Definition: G4Types.hh:85
virtual G4double ComputeCrossSectionPerElectron(G4double kinEnergy) final
void ComputeAsymmetriesPerElectron(G4double gammaEnergy, G4double &valueX, G4double &valueA, G4double &valueT)
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy) final
const G4ThreeVector & GetTargetPolarization() const
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &) final
const G4ThreeVector & GetBeamPolarization() const
const G4ThreeVector & GetFinalGamma2Polarization() const
void SetTargetPolarization(const G4ThreeVector &pTarget)
void SetBeamPolarization(const G4ThreeVector &pBeam)
const G4ThreeVector & GetFinalGamma1Polarization() const