Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4EmLivermorePolarizedPhysics.cc
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
29#include "G4SystemOfUnits.hh"
30
31// *** Processes and models
32
33// gamma
37
41
44
45// interfaces
46#include "G4EmParameters.hh"
47#include "G4LossTableManager.hh"
48#include "G4EmConfigurator.hh"
49
50// particles
51#include "G4Gamma.hh"
52
53//
55#include "G4BuilderType.hh"
56
57// factory
59//
61
62//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
63
65 const G4String&)
66 : G4EmLivermorePhysics(ver, "G4EmLivermorePolarized"), verbose(ver)
67{
69 param->SetEnablePolarisation(true);
71}
72
73//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
74
76{}
77
78//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
79
81{
82 if(verbose > 1) {
83 G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
84 }
86
88 G4EmConfigurator* em_config = man->EmConfigurator();
89 G4double livEnergyLimit = 1*GeV;
90
91 // Add Livermore EM Processes
94 em_config->SetExtraEmModel("gamma", "phot", mod);
95
97 comptLiv->SetHighEnergyLimit(livEnergyLimit);
98 em_config->SetExtraEmModel("gamma", "compt", comptLiv);
99
101 convLiv->SetHighEnergyLimit(livEnergyLimit);
102 em_config->SetExtraEmModel("gamma", "conv", convLiv);
103
105 em_config->SetExtraEmModel("gamma", "Rayl", theRay);
106
107}
108
109//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@ bElectromagnetic
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)
double G4double
Definition: G4Types.hh:83
int G4int
Definition: G4Types.hh:85
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
void SetExtraEmModel(const G4String &particleName, const G4String &processName, G4VEmModel *, const G4String &regionName="", G4double emin=0.0, G4double emax=DBL_MAX, G4VEmFluctuationModel *fm=nullptr)
void ConstructProcess() override
G4EmLivermorePolarizedPhysics(G4int ver=1, const G4String &name="")
void SetEnablePolarisation(G4bool val)
static G4EmParameters * Instance()
static G4LossTableManager * Instance()
G4EmConfigurator * EmConfigurator()
void SetHighEnergyLimit(G4double)
Definition: G4VEmModel.hh:757
void SetAngularDistribution(G4VEmAngularDistribution *)
Definition: G4VEmModel.hh:618
const G4String & GetPhysicsName() const