52 #ifndef NOIONIZATIONAS
71 crossSectionCalculator(nullptr),
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());
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
static G4ThreeVector GetFrame(const G4ThreeVector &, const G4ThreeVector &)
void Initialise(const G4ParticleDefinition *pd, const G4DataVector &dv) override
void SetMaterial(G4double A, G4double Z, G4double coul)
const G4ThreeVector & GetMomentumDirection() const
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy) override
G4StokesVector GetPol2() override
virtual ~G4PolarizedPEEffectModel()
virtual void Initialize(G4double aGammaE, G4double aLept0E, G4double sintheta, const G4StokesVector &beamPol, const G4StokesVector &, G4int flag=0) override
G4PolarizedPEEffectModel(const G4ParticleDefinition *p=nullptr, const G4String &nam="Polarized-PhotoElectric")
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &) override
void InvRotateAz(G4ThreeVector nInteractionFrame, G4ThreeVector particleDirection)
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy) override
void RotateAz(G4ThreeVector nInteractionFrame, G4ThreeVector particleDirection)
Hep3Vector cross(const Hep3Vector &) const
static const G4StokesVector ZERO
const G4ThreeVector & GetPolarization() const
static G4ThreeVector GetRandomFrame(const G4ThreeVector &)
G4double GetKineticEnergy() const
G4GLOB_DLL std::ostream G4cout
G4PolarizedPEEffectCrossSection * crossSectionCalculator
const G4Element * GetCurrentElement() const