76 buildAsymmetryTable(true),
77 useAsymmetryTable(true),
80 targetPolarization(0.0,0.0,0.0)
139 G4cout <<
" Total cross sections has a good parametrisation" 140 <<
" from 10 KeV to (100/Z) GeV" 149 if(ss ==
"Klein-Nishina") {
mType = 0; }
150 if(ss ==
"Polarized-Compton") {
mType = 10; }
166 G4cout <<
"G4PolarizedCompton::MeanFreePath: " << mfp /
mm <<
" mm " <<
G4endl;
174 const G4Track& aTrack,
191 std::max(nLength - previousStepSize/curLength, 0.0);
196 G4cout <<
"G4PolarizedCompton::PostStepGetPhysicalInteractionLength: " 211 const G4StokesVector GammaPolarization = aTrack.GetPolarization();
224 if (VolumeIsPolarized) {
227 G4cout <<
"G4PolarizedCompton::ComputeSaturationFactor: " <<
G4endl;
229 G4cout <<
" Polarization " << GammaPolarization <<
G4endl;
230 G4cout <<
" MaterialPol. " << ElectronPolarization <<
G4endl;
238 if(midx < theAsymmetryTable->size()) {
239 aVector = (*theAsymmetryTable)(midx);
249 G4double pol = ElectronPolarization*GammaDirection0;
250 G4double polProduct = GammaPolarization.
p3() * pol;
251 factor /= (1. + polProduct * asymmetry);
259 ed <<
"Problem with asymmetry table: material index " << midx
260 <<
" is out of range or the table is not filled";
261 G4Exception(
"G4PolarizedComptonModel::ComputeSaturationFactor",
"em0048",
278 if(masterProcess && masterProcess !=
this) { isMaster =
false; }
303 for(
size_t i=0; i<numOfCouples; ++i) {
317 for (
G4int j = 0; j <= nbins; ++j ) {
357 lAsymmetry = sigma2/sigma0-1.;
G4double condition(const G4ErrorSymMatrix &m)
const G4VProcess * GetMasterProcess() const
const G4String & GetName() const
static void SetPhysicsVector(G4PhysicsTable *physTable, size_t idx, G4PhysicsVector *vec)
G4double MinKinEnergy() const
std::ostringstream G4ExceptionDescription
CLHEP::Hep3Vector G4ThreeVector
void SetBuildTableFlag(G4bool val)
void BuildAsymmetryTable(const G4ParticleDefinition &part)
static G4Material * GetMaterial(const G4String &name, G4bool warning=true)
const G4ThreeVector & GetVolumePolarization(G4LogicalVolume *lVol) const
G4double MaxKinEnergy() const
G4bool buildAsymmetryTable
static G4PolarizationManager * GetInstance()
void SetSplineFlag(G4bool val)
G4double theNumberOfInteractionLengthLeft
G4PolarizedComptonModel * emModel
G4int LambdaBinning() const
virtual void BuildPhysicsTable(const G4ParticleDefinition &)
virtual G4double PostStepGetPhysicalInteractionLength(const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
virtual G4bool IsApplicable(const G4ParticleDefinition &)
size_t CurrentMaterialCutsCoupleIndex() const
void SetStartFromNullFlag(G4bool val)
static G4PhysicsTable * PreparePhysicsTable(G4PhysicsTable *physTable)
G4VEmModel * EmModel(G4int index=1) const
virtual void BuildPhysicsTable(const G4ParticleDefinition &)
void SetHighEnergyLimit(G4double)
void SetMinKinEnergyPrim(G4double e)
G4double ComputeSaturationFactor(const G4Track &aTrack)
virtual G4double GetMeanFreePath(const G4Track &aTrack, G4double previousStepSize, G4ForceCondition *condition)
void SetEmModel(G4VEmModel *, G4int index=1)
G4double GetKineticEnergy() const
bool IsPolarized(G4LogicalVolume *lVol) const
G4GLOB_DLL std::ostream G4cout
virtual G4double PostStepGetPhysicalInteractionLength(const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
const G4String & GetName() const
G4double CrossSection(const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
G4double currentInteractionLength
G4double MinKinEnergy() const
void PutValue(size_t index, G4double theValue)
virtual G4double GetMeanFreePath(const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
void SetProcessSubType(G4int)
G4double Value(G4double theEnergy, size_t &lastidx) const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static const G4double emax
const G4String & GetName() const
static G4ProductionCutsTable * GetProductionCutsTable()
G4PolarizedCompton(const G4String &processName="pol-compt", G4ProcessType type=fElectromagnetic)
const G4MaterialCutsCouple * GetMaterialCutsCouple(G4int i) const
G4double ComputeAsymmetry(G4double energy, const G4MaterialCutsCouple *couple, const G4ParticleDefinition &particle, G4double cut, G4double &tAsymmetry)
static const G4double factor
void SetBeamPolarization(const G4ThreeVector &pBeam)
G4double MaxKinEnergy() const
void AddEmModel(G4int, G4VEmModel *, const G4Region *region=0)
const G4ThreeVector & GetMomentumDirection() const
void SetSecondaryParticle(const G4ParticleDefinition *p)
static G4EmParameters * Instance()
size_t GetTableSize() const
virtual void InitialiseProcess(const G4ParticleDefinition *)
static G4Electron * Electron()
virtual ~G4PolarizedCompton()
G4bool GetFlag(size_t i) const
G4double Energy(size_t index) const
static G4PhysicsTable * theAsymmetryTable
void SetLowEnergyLimit(G4double)
G4LogicalVolume * GetLogicalVolume() const
void SetTargetPolarization(const G4ThreeVector &pTarget)
void SetModel(const G4String &name)