51 , fCrossSectionCalculator(nullptr)
57 if(fCrossSectionCalculator)
58 delete fCrossSectionCalculator;
66 if(!fCrossSectionCalculator)
77 if(vdp && vdp->size() > 0)
80 G4double lepEnergy1 = (*vdp)[0]->GetKineticEnergy();
100 fCrossSectionCalculator->
Initialize(gamEnergy0, lepEnergy1, sintheta,
105 lep1Pol.
RotateAz(nInteractionFrame, (*vdp)[0]->GetMomentumDirection());
106 (*vdp)[0]->SetPolarization(lep1Pol.
p1(), lep1Pol.
p2(), lep1Pol.
p3());
108 size_t num = vdp->size();
112 ed <<
" WARNING " << num
113 <<
" secondaries in polarized pairproduction not supported!\n";
114 G4Exception(
"G4PolarizedGammaConversionModel::SampleSecondaries",
117 for(
size_t i = 1; i < num; ++i)
120 lep2Pol.
RotateAz(nInteractionFrame, (*vdp)[i]->GetMomentumDirection());
121 (*vdp)[i]->SetPolarization(lep2Pol.
p1(), lep2Pol.
p2(), lep2Pol.
p3());
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
Hep3Vector cross(const Hep3Vector &) const
void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy) override
void Initialise(const G4ParticleDefinition *, const G4DataVector &) override
const G4ThreeVector & GetMomentumDirection() const
G4double GetKineticEnergy() const
const G4ThreeVector & GetPolarization() const
static G4ThreeVector GetFrame(const G4ThreeVector &, const G4ThreeVector &)
G4PolarizedGammaConversionModel(const G4ParticleDefinition *p=nullptr, const G4String &nam="polConv")
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy) override
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &) override
virtual ~G4PolarizedGammaConversionModel() override
G4StokesVector GetPol3() override
G4StokesVector GetPol2() override
void Initialize(G4double eps, G4double X, G4double phi, const G4StokesVector &p0, const G4StokesVector &p1, G4int flag=0) 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)