ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
G4PolarizedAnnihilationModel.hh
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4PolarizedAnnihilationModel.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: 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
56
#include "
G4eeToTwoGammaModel.hh
"
57
#include "
G4StokesVector.hh
"
58
59
class
G4ParticleChangeForGamma
;
60
class
G4PolarizedAnnihilationCrossSection
;
61
62
class
G4PolarizedAnnihilationModel
:
public
G4eeToTwoGammaModel
63
{
64
65
public
:
66
67
explicit
G4PolarizedAnnihilationModel
(
const
G4ParticleDefinition
*
p
=
nullptr
,
68
const
G4String
& nam =
"Polarized-Annihilation"
);
69
70
virtual
~G4PolarizedAnnihilationModel
();
71
72
virtual
void
Initialise
(
const
G4ParticleDefinition
*,
73
const
G4DataVector
&)
final
;
74
75
virtual
G4double
76
ComputeCrossSectionPerElectron
(
G4double
kinEnergy)
final
;
77
78
void
ComputeAsymmetriesPerElectron
(
G4double
gammaEnergy,
79
G4double
& valueX,
80
G4double
& valueA,
81
G4double
& valueT);
82
83
virtual
void
SampleSecondaries
(std::vector<G4DynamicParticle*>*,
84
const
G4MaterialCutsCouple
*,
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
97
private
:
98
99
// hide assignment operator
100
G4PolarizedAnnihilationModel
&
101
operator=
(
const
G4PolarizedAnnihilationModel
&
right
) =
delete
;
102
G4PolarizedAnnihilationModel
(
const
G4PolarizedAnnihilationModel
&) =
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
119
inline
void
G4PolarizedAnnihilationModel::SetTargetPolarization
(
const
G4ThreeVector
& pTarget)
120
{
121
theTargetPolarization
= pTarget;
122
}
123
inline
void
G4PolarizedAnnihilationModel::SetBeamPolarization
(
const
G4ThreeVector
& pBeam)
124
{
125
theBeamPolarization
= pBeam;
126
}
127
inline
const
G4ThreeVector
&
G4PolarizedAnnihilationModel::GetTargetPolarization
()
const
128
{
129
return
theTargetPolarization
;
130
}
131
inline
const
G4ThreeVector
&
G4PolarizedAnnihilationModel::GetBeamPolarization
()
const
132
{
133
return
theBeamPolarization
;
134
}
135
inline
const
G4ThreeVector
&
G4PolarizedAnnihilationModel::GetFinalGamma1Polarization
()
const
136
{
137
return
finalGamma1Polarization
;
138
}
139
inline
const
G4ThreeVector
&
G4PolarizedAnnihilationModel::GetFinalGamma2Polarization
()
const
140
{
141
return
finalGamma2Polarization
;
142
}
143
144
#endif
geant4
tree
geant4-10.6-release
source
processes
electromagnetic
polarisation
include
G4PolarizedAnnihilationModel.hh
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:33
using
1.8.2 with
ECCE GitHub integration