Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4PolarizedCompton.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// GEANT4 Class header file
29//
30//
31// File name: G4PolarizedCompton
32//
33// Author: Andreas Schaelicke
34// based on code by Michel Maire / Vladimir IVANTCHENKO
35// Class description
36//
37// modified version respecting media and beam polarization
38// using the stokes formalism
39//
40// Creation date: 01.05.2005
41//
42// Modifications:
43//
44// 01-01-05, include polarization description (A.Stahl)
45// 01-01-05, create asymmetry table and determine interactionlength (A.Stahl)
46// 01-05-05, update handling of media polarization (A.Schalicke)
47// 01-05-05, update polarized differential cross section (A.Schalicke)
48// 26-07-06, cross section recalculated (P.Starovoitov)
49// 09-08-06, make it work under current geant4 release (A.Schalicke)
50// 11-06-07, add PostStepGetPhysicalInteractionLength (A.Schalicke)
51//
52// -----------------------------------------------------------------------------
53
54//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
55//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
56
57#ifndef PolarizedComptonScattering_h
58#define PolarizedComptonScattering_h 1
59
60#include "globals.hh"
61#include "G4VEmProcess.hh"
62#include "G4Gamma.hh"
63
64//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
65
67class G4VEmModel;
70
72
74
75{
76public: // with description
77
78 G4PolarizedCompton(const G4String& processName ="pol-compt",
80
81 virtual ~G4PolarizedCompton();
82
83 // true for Gamma only.
85
86 // Print few lines of informations about the process: validity range,
87 virtual void PrintInfo();
88
89 void SetModel(const G4String& name);
90
91protected:
92
93 virtual void InitialiseProcess(const G4ParticleDefinition*);
94
95 // added for polarization treatment of polarized media:
96 virtual void BuildPhysicsTable(const G4ParticleDefinition&);
97 virtual void PreparePhysicsTable(const G4ParticleDefinition&);
100 const G4MaterialCutsCouple* couple,
101 const G4ParticleDefinition& particle,
102 G4double cut,
103 G4double & tAsymmetry);
104
105 virtual G4double GetMeanFreePath(const G4Track& aTrack,
106 G4double previousStepSize,
109 const G4Track& track,
110 G4double previousStepSize,
112 );
113
114 // can be removed as soon as G4PolarizationChangeForGamma is fixed!
115 // virtual G4VParticleChange* PostStepDoIt(const G4Track&, const G4Step&);
116
117private:
118
119 G4PolarizedCompton& operator=(const G4PolarizedCompton &right);
121
122 G4bool buildAsymmetryTable;
123 G4bool useAsymmetryTable;
124
125 G4bool isInitialised;
126 G4VEmModel* selectedModel;
127 G4int mType;
128
129 // added for polarization treatment:
131 G4PhysicsTable* theAsymmetryTable; // table for crosssection assymmetry
132 G4ThreeVector targetPolarization;
133};
134
135//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
136//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
137
139{
140 return (&p == G4Gamma::Gamma());
141}
142
143//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
144
145#endif
146
G4double condition(const G4ErrorSymMatrix &m)
G4ForceCondition
G4ProcessType
@ fElectromagnetic
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66
bool G4bool
Definition: G4Types.hh:67
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
G4double ComputeAsymmetry(G4double energy, const G4MaterialCutsCouple *couple, const G4ParticleDefinition &particle, G4double cut, G4double &tAsymmetry)
virtual G4double PostStepGetPhysicalInteractionLength(const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
void SetModel(const G4String &name)
virtual void PreparePhysicsTable(const G4ParticleDefinition &)
virtual void PrintInfo()
virtual void BuildPhysicsTable(const G4ParticleDefinition &)
void BuildAsymmetryTable(const G4ParticleDefinition &part)
virtual void InitialiseProcess(const G4ParticleDefinition *)
virtual G4double GetMeanFreePath(const G4Track &aTrack, G4double previousStepSize, G4ForceCondition *condition)
G4bool IsApplicable(const G4ParticleDefinition &)