52 #ifndef NOIONIZATIONAS
71 crossSectionCalculator(nullptr),
80 if (crossSectionCalculator)
delete crossSectionCalculator;
89 if (!crossSectionCalculator)
104 if (verboseLevel >= 1) {
105 G4cout <<
"G4PolarizedPEEffectModel::SampleSecondaries" <<
G4endl;
108 if(vdp && vdp->size()>0) {
110 G4double lepEnergy1 = (*vdp)[0]->GetKineticEnergy();
112 if (sintheta>1.) sintheta=1.;
121 (*vdp)[0]->GetMomentumDirection());
149 crossSectionCalculator->
Initialize(gamEnergy0, lepEnergy1, sintheta,
155 lep1Pol.
RotateAz(nInteractionFrame,(*vdp)[0]->GetMomentumDirection());
156 (*vdp)[0]->SetPolarization(lep1Pol.
p1(),
161 size_t num = vdp->size();
162 if (num!=1)
G4cout<<
" WARNING "<<num<<
" secondaries in polarized photo electric effect not supported!\n";
167 #endif //NOIONIZATIONAS
G4StokesVector GetPol2() override
static G4ThreeVector GetRandomFrame(const G4ThreeVector &)
G4double GetKineticEnergy() const
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy) override
void SetMaterial(G4double A, G4double Z, G4double coul)
virtual ~G4PolarizedPEEffectModel()
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy) override
G4GLOB_DLL std::ostream G4cout
const G4ThreeVector & GetMomentumDirection() const
static G4ThreeVector GetFrame(const G4ThreeVector &, const G4ThreeVector &)
virtual void Initialize(G4double aGammaE, G4double aLept0E, G4double sintheta, const G4StokesVector &beamPol, const G4StokesVector &, G4int flag=0) override
void InvRotateAz(G4ThreeVector nInteractionFrame, G4ThreeVector particleDirection)
const G4ThreeVector & GetPolarization() const
void Initialise(const G4ParticleDefinition *pd, const G4DataVector &dv) override
Hep3Vector cross(const Hep3Vector &) const
static const G4StokesVector ZERO
G4PolarizedPEEffectModel(const G4ParticleDefinition *p=nullptr, const G4String &nam="Polarized-PhotoElectric")
void RotateAz(G4ThreeVector nInteractionFrame, G4ThreeVector particleDirection)
const G4Element * GetCurrentElement() const
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &) override