source: trunk/source/processes/electromagnetic/polarisation/include/G4PolarizedCompton.hh @ 1350

Last change on this file since 1350 was 819, checked in by garnier, 16 years ago

import all except CVS

File size: 5.4 KB
Line 
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
66class G4ParticleDefinition;
67class G4VEmModel;
68class G4MaterialCutsCouple;
69class G4DynamicParticle;
70
71class G4PolarizedComptonModel;
72
73class G4PolarizedCompton : public G4VEmProcess
74
75{
76public:  // with description
77
78  G4PolarizedCompton(const G4String& processName ="pol-compt",
79                      G4ProcessType type = fElectromagnetic);
80
81  virtual ~G4PolarizedCompton();
82
83  // true for Gamma only. 
84  G4bool IsApplicable(const G4ParticleDefinition&);
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&);
98  void BuildAsymmetryTable(const G4ParticleDefinition& part);
99  G4double ComputeAsymmetry(G4double energy,
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,
107                                   G4ForceCondition* condition);
108  virtual G4double PostStepGetPhysicalInteractionLength(
109                             const G4Track& track,
110                             G4double   previousStepSize,
111                             G4ForceCondition* condition
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);
120  G4PolarizedCompton(const G4PolarizedCompton& );
121     
122  G4bool          buildAsymmetryTable;
123  G4bool          useAsymmetryTable;
124
125  G4bool          isInitialised;
126  G4VEmModel*     selectedModel;
127  G4int           mType;
128
129  // added for polarization treatment:
130  G4PolarizedComptonModel* emModel;
131  G4PhysicsTable* theAsymmetryTable;  // table for crosssection assymmetry
132  G4ThreeVector targetPolarization;
133};
134
135//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
136//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
137
138inline G4bool G4PolarizedCompton::IsApplicable(const G4ParticleDefinition& p)
139{
140  return (&p == G4Gamma::Gamma());
141}
142
143//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
144 
145#endif
146 
Note: See TracBrowser for help on using the repository browser.