49 , fCrossSectionCalculator(nullptr)
56 if(fCrossSectionCalculator)
57 delete fCrossSectionCalculator;
65 if(!fCrossSectionCalculator)
76 if(fVerboseLevel >= 1)
78 G4cout <<
"G4PolarizedPhotoElectricModel::SampleSecondaries" <<
G4endl;
81 if(vdp && !vdp->empty())
84 G4double lepEnergy1 = (*vdp)[0]->GetKineticEnergy();
97 .
cross((*vdp)[0]->GetMomentumDirection())
111 fCrossSectionCalculator->
Initialize(gamEnergy0, lepEnergy1, sintheta,
116 lep1Pol.
RotateAz(nInteractionFrame, (*vdp)[0]->GetMomentumDirection());
117 (*vdp)[0]->SetPolarization(lep1Pol.
p1(), lep1Pol.
p2(), lep1Pol.
p3());
122 ed <<
" WARNING " << vdp->size()
123 <<
" secondaries in polarized photo electric effect not supported!\n";
124 G4Exception(
"G4PolarizedPhotoElectricModel::SampleSecondaries",
"pol024",
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
G4GLOB_DLL std::ostream G4cout
Hep3Vector cross(const Hep3Vector &) const
const G4ThreeVector & GetMomentumDirection() const
G4double GetKineticEnergy() const
const G4ThreeVector & GetPolarization() const
void Initialise(const G4ParticleDefinition *, const G4DataVector &) override
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 &)
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy) override
void Initialise(const G4ParticleDefinition *pd, const G4DataVector &dv) override
virtual ~G4PolarizedPhotoElectricModel() override
G4PolarizedPhotoElectricModel(const G4ParticleDefinition *p=nullptr, const G4String &nam="Polarized-PhotoElectric")
void Initialize(G4double aGammaE, G4double aLept0E, G4double sintheta, const G4StokesVector &beamPol, const G4StokesVector &, G4int flag=0) override
G4StokesVector GetPol2() override
static const G4StokesVector ZERO
void InvRotateAz(G4ThreeVector nInteractionFrame, G4ThreeVector particleDirection)
void RotateAz(G4ThreeVector nInteractionFrame, G4ThreeVector particleDirection)
const G4Element * GetCurrentElement(const G4Material *mat=nullptr) const
void SetMaterial(G4double A, G4double Z, G4double coul)