100 if(vdp && vdp->size()>0) {
102 G4double lepEnergy1 = (*vdp)[0]->GetKineticEnergy();
104 if (sintheta>1.) sintheta=1.;
112 (*vdp)[0]->GetMomentumDirection());
126 lep1Pol.
RotateAz(nInteractionFrame,(*vdp)[0]->GetMomentumDirection());
127 (*vdp)[0]->SetPolarization(lep1Pol.
p1(),
131 size_t num = vdp->size();
132 if (num!=2)
G4cout<<
" WARNING "<<num<<
" secondaries in polarized pairproduction not supported!\n";
133 for (
size_t i =1; i<num; ++i) {
135 lep2Pol.
RotateAz(nInteractionFrame,(*vdp)[i]->GetMomentumDirection());
136 (*vdp)[i]->SetPolarization(lep2Pol.
p1(),
G4GLOB_DLL std::ostream G4cout
Hep3Vector cross(const Hep3Vector &) const
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy) override
virtual 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()
G4VPolarizedCrossSection * crossSectionCalculator
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)
virtual G4StokesVector GetPol3()
virtual G4StokesVector GetPol2()
virtual void Initialize(G4double, G4double, G4double, const G4StokesVector &p0, const G4StokesVector &p1, G4int flag=0)