72 theAsymmetryTable(NULL),
73 theTransverseAsymmetryTable(NULL)
92 if (theAsymmetryTable) {
94 delete theAsymmetryTable;
96 if (theTransverseAsymmetryTable) {
98 delete theTransverseAsymmetryTable;
124 isInitialised =
true;
132 G4cout <<
" Delta cross sections from Moller+Bhabha, "
133 <<
"good description from 1 KeV to 100 GeV."
155 if (mfp !=
DBL_MAX && volumeIsPolarized && !ePolarization.
IsZero()) {
164 G4double lAsymmetry = (*theAsymmetryTable)(idx)->
165 GetValue(eEnergy, isOutRange);
166 G4double tAsymmetry = (*theTransverseAsymmetryTable)(idx)->
167 GetValue(eEnergy, isOutRange);
171 volumePolarization*eDirection0;
179 G4double impact = 1. + polZZ*lAsymmetry + (polXX + polYY)*tAsymmetry;
183 G4cout <<
"PV impact ( "<<polXX<<
" , "<<polYY<<
" , "<<polZZ<<
" )"<<
G4endl;
185 G4cout<<
" lAsymmetry= "<<lAsymmetry<<
" ("<<std::fabs(lAsymmetry)-1.<<
")\n";
186 G4cout<<
" tAsymmetry= "<<tAsymmetry<<
" ("<<std::fabs(tAsymmetry)-1.<<
")\n";
209 if (mfp !=
DBL_MAX && volumeIsPolarized && !ePolarization.
IsZero()) {
217 G4double lAsymmetry = (*theAsymmetryTable)(idx)->Value(eEnergy);
218 G4double tAsymmetry = (*theTransverseAsymmetryTable)(idx)->Value(eEnergy);
222 volumePolarization*eDirection0;
230 G4double impact = 1. + polZZ*lAsymmetry + (polXX + polYY)*tAsymmetry;
234 G4cout <<
"PV impact ( "<<polXX<<
" , "<<polYY<<
" , "<<polZZ<<
" )"<<
G4endl;
236 G4cout<<
" lAsymmetry= "<<lAsymmetry<<
" ("<<std::fabs(lAsymmetry)-1.<<
")\n";
237 G4cout<<
" tAsymmetry= "<<tAsymmetry<<
" ("<<std::fabs(tAsymmetry)-1.<<
")\n";
254 if (theAsymmetryTable) {
256 if (theTransverseAsymmetryTable) {
257 theTransverseAsymmetryTable->
clearAndDestroy();
delete theTransverseAsymmetryTable;}
266 for (
size_t j=0 ; j < numOfCouples; j++ ) {
277 for (
size_t i = 0 ; i < bins ; i++ ) {
284 theAsymmetryTable->
insertAt( j , ptrVectorA ) ;
285 theTransverseAsymmetryTable->
insertAt( j , ptrVectorB ) ;
299 if (isElectron) {lAsymmetry = tAsymmetry = -1.0;}
320 lAsymmetry=sigma2/sigma0-1.;
321 tAsymmetry=sigma3/sigma0-1.;
323 if (std::fabs(lAsymmetry)>1.) {
324 G4cout<<
" energy="<<energy<<
"\n";
325 G4cout<<
"WARNING lAsymmetry= "<<lAsymmetry<<
" ("<<std::fabs(lAsymmetry)-1.<<
")\n";
327 if (std::fabs(tAsymmetry)>1.) {
328 G4cout<<
" energy="<<energy<<
"\n";
329 G4cout<<
"WARNING tAsymmetry= "<<tAsymmetry<<
" ("<<std::fabs(tAsymmetry)-1.<<
")\n";
CLHEP::Hep3Vector G4ThreeVector
G4DLLIMPORT std::ostream G4cout
const G4ThreeVector & GetMomentumDirection() const
G4double GetKineticEnergy() const
void insertAt(size_t, G4PhysicsVector *)
size_t GetVectorLength() const
G4double Energy(size_t index) const
void PutValue(size_t index, G4double theValue)
static G4ThreeVector GetParticleFrameY(const G4ThreeVector &)
static G4ThreeVector GetParticleFrameX(const G4ThreeVector &)
bool IsPolarized(G4LogicalVolume *lVol) const
static G4PolarizationManager * GetInstance()
const G4ThreeVector & GetVolumePolarization(G4LogicalVolume *lVol) const
void SetBeamPolarization(const G4ThreeVector &pBeam)
void SetTargetPolarization(const G4ThreeVector &pTarget)
static G4Positron * Positron()
const G4MaterialCutsCouple * GetMaterialCutsCouple(G4int i) const
size_t GetTableSize() const
const std::vector< G4double > * GetEnergyCutsVector(size_t pcIdx) const
static G4ProductionCutsTable * GetProductionCutsTable()
G4VPhysicalVolume * GetVolume() const
const G4DynamicParticle * GetDynamicParticle() const
const G4ThreeVector & GetPolarization() const
void SetHighEnergyLimit(G4double)
void SetLowEnergyLimit(G4double)
G4double CrossSection(const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
G4double PostStepGetPhysicalInteractionLength(const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
G4PhysicsVector * LambdaPhysicsVector(const G4MaterialCutsCouple *, G4double cut)
G4double MaxKinEnergy() const
void AddEmModel(G4int, G4VEmModel *, G4VEmFluctuationModel *fluc=0, const G4Region *region=0)
void BuildPhysicsTable(const G4ParticleDefinition &)
G4double MinKinEnergy() const
size_t CurrentMaterialCutsCoupleIndex() const
void SetSecondaryParticle(const G4ParticleDefinition *p)
G4double GetMeanFreePath(const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
G4LogicalVolume * GetLogicalVolume() const
void SetProcessSubType(G4int)
G4ePolarizedIonisation(const G4String &name="pol-eIoni")
virtual void InitialiseEnergyLossProcess(const G4ParticleDefinition *, const G4ParticleDefinition *)
G4double ComputeAsymmetry(G4double energy, const G4MaterialCutsCouple *couple, const G4ParticleDefinition &particle, G4double cut, G4double &tasm)
G4double GetMeanFreePath(const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
G4double PostStepGetPhysicalInteractionLength(const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
virtual ~G4ePolarizedIonisation()
virtual void BuildPhysicsTable(const G4ParticleDefinition &)