ECCE @ EIC Software
 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 
61 
63 {
64 
65 public:
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 
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
103 
105  // incomming
108  // outgoing
111 
113 
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 {
138 }
140 {
142 }
143 
144 #endif