70 crossSectionCalculator(nullptr),
79 if (crossSectionCalculator)
delete crossSectionCalculator;
88 if (!crossSectionCalculator)
103 if (verboseLevel >= 1) {
104 G4cout <<
"G4PolarizedPEEffectModel::SampleSecondaries" <<
G4endl;
107 if(vdp && vdp->size()>0) {
109 G4double lepEnergy1 = (*vdp)[0]->GetKineticEnergy();
111 if (sintheta>1.) sintheta=1.;
120 (*vdp)[0]->GetMomentumDirection());
148 crossSectionCalculator->
Initialize(gamEnergy0, lepEnergy1, sintheta,
154 lep1Pol.
RotateAz(nInteractionFrame,(*vdp)[0]->GetMomentumDirection());
155 (*vdp)[0]->SetPolarization(lep1Pol.
p1(),
160 size_t num = vdp->size();
161 if (num!=1)
G4cout<<
" WARNING "<<num<<
" secondaries in polarized photo electric effect not supported!\n";
G4GLOB_DLL std::ostream G4cout
Hep3Vector cross(const Hep3Vector &) const
const G4ThreeVector & GetMomentumDirection() const
G4double GetKineticEnergy() const
const G4ThreeVector & GetPolarization() const
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &) override
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy) override
static G4ThreeVector GetFrame(const G4ThreeVector &, const G4ThreeVector &)
static G4ThreeVector GetRandomFrame(const G4ThreeVector &)
G4StokesVector GetPol2() override
virtual void Initialize(G4double aGammaE, G4double aLept0E, G4double sintheta, const G4StokesVector &beamPol, const G4StokesVector &, G4int flag=0) override
virtual ~G4PolarizedPEEffectModel()
void Initialise(const G4ParticleDefinition *pd, const G4DataVector &dv) override
G4PolarizedPEEffectModel(const G4ParticleDefinition *p=nullptr, const G4String &nam="Polarized-PhotoElectric")
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy) override
static const G4StokesVector ZERO
void InvRotateAz(G4ThreeVector nInteractionFrame, G4ThreeVector particleDirection)
void RotateAz(G4ThreeVector nInteractionFrame, G4ThreeVector particleDirection)
const G4Element * GetCurrentElement() const
void SetMaterial(G4double A, G4double Z, G4double coul)