43 , fCrossSectionCalculator(nullptr)
49 if(fCrossSectionCalculator)
50 delete fCrossSectionCalculator;
58 if(!fCrossSectionCalculator)
69 std::size_t num = vdp->size();
74 G4double gamEnergy1 = (*vdp)[0]->GetKineticEnergy();
94 fCrossSectionCalculator->
Initialize(lepEnergy0, gamEnergy1, sintheta,
99 newBeamPol.
RotateAz(nInteractionFrame,
106 ed << num <<
" secondaries in polarized bremsstrahlung not supported!\n";
107 G4Exception(
"G4PolarizedBremsstrahlungModel::SampleSecondaries",
"pol001",
110 for(std::size_t i = 0; i < num; ++i)
114 photonPol.
RotateAz(nInteractionFrame, (*vdp)[i]->GetMomentumDirection());
115 (*vdp)[i]->SetPolarization(photonPol.
p1(), photonPol.
p2(),
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
Hep3Vector cross(const Hep3Vector &) const
const G4ThreeVector & GetMomentumDirection() const
G4double GetKineticEnergy() const
const G4ThreeVector & GetPolarization() const
const G4ThreeVector & GetProposedMomentumDirection() const
void ProposePolarization(const G4ThreeVector &dir)
static G4ThreeVector GetFrame(const G4ThreeVector &, const G4ThreeVector &)
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &) override
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy) override
G4PolarizedBremsstrahlungModel(const G4ParticleDefinition *p=nullptr, const G4String &nam="PolBrem")
virtual ~G4PolarizedBremsstrahlungModel() override
void Initialise(const G4ParticleDefinition *, const G4DataVector &) override
void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double cutEnergy, G4double maxEnergy) 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
virtual void Initialize(G4double, G4double, G4double, const G4StokesVector &p0, const G4StokesVector &p1, G4int flag=0)=0
virtual G4StokesVector GetPol2()
virtual G4StokesVector GetPol3()
void SetMaterial(G4double A, G4double Z, G4double coul)
G4ParticleChangeForLoss * fParticleChange