76 1.000000e+00, 9.428859e-01, 9.094095e-01, 8.813971e-01, 8.565154e-01,
77 8.337008e-01, 8.124961e-01, 7.925217e-01, 7.735517e-01, 7.554561e-01,
78 7.381233e-01, 7.214521e-01, 7.053634e-01, 6.898006e-01, 6.747219e-01,
79 6.600922e-01, 6.458793e-01, 6.320533e-01, 6.185872e-01, 6.054579e-01,
80 5.926459e-01, 5.801347e-01, 5.679103e-01, 5.559604e-01, 5.442736e-01,
81 5.328395e-01, 5.216482e-01, 5.106904e-01, 4.999575e-01, 4.894415e-01,
82 4.791351e-01, 4.690316e-01, 4.591249e-01, 4.494094e-01, 4.398800e-01,
83 4.305320e-01, 4.213608e-01, 4.123623e-01, 4.035325e-01, 3.948676e-01,
84 3.863639e-01, 3.780179e-01, 3.698262e-01, 3.617858e-01, 3.538933e-01,
85 3.461460e-01, 3.385411e-01, 3.310757e-01, 3.237474e-01, 3.165536e-01,
86 3.094921e-01, 3.025605e-01, 2.957566e-01, 2.890784e-01, 2.825237e-01,
87 2.760907e-01, 2.697773e-01, 2.635817e-01, 2.575020e-01, 2.515365e-01,
88 2.456834e-01, 2.399409e-01, 2.343074e-01, 2.287812e-01, 2.233607e-01,
89 2.180442e-01, 2.128303e-01, 2.077174e-01, 2.027040e-01, 1.977885e-01,
90 1.929696e-01, 1.882457e-01, 1.836155e-01, 1.790775e-01, 1.746305e-01,
91 1.702730e-01, 1.660036e-01, 1.618212e-01, 1.577243e-01, 1.537117e-01,
92 1.497822e-01, 1.459344e-01, 1.421671e-01, 1.384791e-01, 1.348691e-01,
93 1.313360e-01, 1.278785e-01, 1.244956e-01, 1.211859e-01, 1.179483e-01,
94 1.147818e-01, 1.116850e-01, 1.086570e-01, 1.056966e-01, 1.028026e-01,
95 9.997405e-02, 9.720975e-02, 9.450865e-02, 9.186969e-02, 8.929179e-02,
96 8.677391e-02, 8.431501e-02, 8.191406e-02, 7.957003e-02, 7.728192e-02,
97 7.504872e-02, 7.286944e-02, 7.074311e-02, 6.866874e-02, 6.664538e-02,
98 6.467208e-02, 6.274790e-02, 6.087191e-02, 5.904317e-02, 5.726079e-02,
99 5.552387e-02, 5.383150e-02, 5.218282e-02, 5.057695e-02, 4.901302e-02,
100 4.749020e-02, 4.600763e-02, 4.456450e-02, 4.315997e-02, 4.179325e-02,
101 4.046353e-02, 3.917002e-02, 3.791195e-02, 3.668855e-02, 3.549906e-02,
102 3.434274e-02, 3.321884e-02, 3.212665e-02, 3.106544e-02, 3.003452e-02,
103 2.903319e-02, 2.806076e-02, 2.711656e-02, 2.619993e-02, 2.531021e-02,
104 2.444677e-02, 2.360897e-02, 2.279620e-02, 2.200783e-02, 2.124327e-02,
105 2.050194e-02, 1.978324e-02, 1.908662e-02, 1.841151e-02, 1.775735e-02,
106 1.712363e-02, 1.650979e-02, 1.591533e-02, 1.533973e-02, 1.478250e-02,
107 1.424314e-02, 1.372117e-02, 1.321613e-02, 1.272755e-02, 1.225498e-02,
108 1.179798e-02, 1.135611e-02, 1.092896e-02, 1.051609e-02, 1.011712e-02,
109 9.731635e-03, 9.359254e-03, 8.999595e-03, 8.652287e-03, 8.316967e-03,
110 7.993280e-03, 7.680879e-03, 7.379426e-03, 7.088591e-03, 6.808051e-03,
111 6.537491e-03, 6.276605e-03, 6.025092e-03, 5.782661e-03, 5.549027e-03,
112 5.323912e-03, 5.107045e-03, 4.898164e-03, 4.697011e-03, 4.503336e-03,
113 4.316896e-03, 4.137454e-03, 3.964780e-03, 3.798649e-03, 3.638843e-03,
114 3.485150e-03, 3.337364e-03, 3.195284e-03, 3.058715e-03, 2.927469e-03,
115 2.801361e-03, 2.680213e-03, 2.563852e-03, 2.452110e-03, 2.344824e-03
125 LowestKineticEnergy (10.*
keV),
129 fAlpha(0.0), fRootNumber(80),
130 fVerboseLevel( verboseLevel )
202 const G4Field* pField =
nullptr;
205 G4bool fieldExertsForce =
false;
207 if( (particleCharge != 0.0) )
211 if ( fieldMgr !=
nullptr )
218 if ( fieldExertsForce )
223 G4double globPosVec[4], FieldValueVec[6];
225 globPosVec[0] = globPosition.
x();
226 globPosVec[1] = globPosition.
y();
227 globPosVec[2] = globPosition.
z();
244 if( perpB > 0.0 ) MeanFreePath =
fLambdaConst*beta/perpB;
251 G4cout<<
"G4SynchrotronRadiationInMat::MeanFreePath = "<<MeanFreePath/
m<<
" m"<<
G4endl;
270 (aDynamicParticle->
GetMass() );
279 const G4Field* pField = nullptr ;
282 G4bool fieldExertsForce =
false;
284 if( (particleCharge != 0.0) )
287 if ( fieldMgr !=
nullptr )
294 if ( fieldExertsForce )
298 G4double globPosVec[4], FieldValueVec[6] ;
299 globPosVec[0] = globPosition.
x() ;
300 globPosVec[1] = globPosition.
y() ;
301 globPosVec[2] = globPosition.
z() ;
324 if( energyOfSR <= 0.0 )
341 fcos = (1 + cosTheta*cosTheta)*0.5;
346 beta = std::sqrt(1. - 1./(gamma*gamma));
348 cosTheta = (cosTheta +
beta)/(1. + beta*cosTheta);
350 if( cosTheta > 1. ) cosTheta = 1.;
351 if( cosTheta < -1. ) cosTheta = -1.;
353 sinTheta = std::sqrt(1. - cosTheta*cosTheta );
357 G4double dirx = sinTheta*std::cos(Phi) ,
358 diry = sinTheta*std::sin(Phi) ,
362 gammaDirection.
rotateUz(particleDirection);
371 gammaPolarization = gammaPolarization.
unit();
382 gammaPolarization.
y(),
383 gammaPolarization.
z() );
391 G4double newKinEnergy = kineticEnergy - energyOfSR ;
393 if (newKinEnergy > 0.)
435 (aDynamicParticle->
GetMass() ) ;
440 const G4Field* pField = nullptr ;
443 G4bool fieldExertsForce =
false;
445 if( (particleCharge != 0.0) )
448 if ( fieldMgr !=
nullptr )
455 if ( fieldExertsForce )
459 G4double globPosVec[3], FieldValueVec[3];
461 globPosVec[0] = globPosition.
x();
462 globPosVec[1] = globPosition.
y();
463 globPosVec[2] = globPosition.
z();
482 energyOfSR = 0.0001*i*i*
fEnergyConst*gamma*gamma*perpB ;
486 if(energyOfSR <= 0.0)
525 for( i = 0; i < iMax; i++ )
530 else if( i>= iMax) position =
G4double(iMax);
536 energySR = 0.0001*position*position*
fEnergyConst*gamma*gamma*perpB;
538 if( energySR < 0. ) energySR = 0.;
551 hypCos2 = hypCos*hypCos;
552 result = std::cosh(5.*t/3.)*std::exp(t-
fKsi*hypCos);
565 if (ksi <= 0.)
return 1.0;
591 result = std::cosh(5.*t/3.)*std::exp(t -
fKsi*hypCos);
604 if (ksi <= 0.)
return 1.0;
617 result *= 9.*std::sqrt(3.)*ksi/8./
pi;
665 fEta = 0.5*
fKsi*(1. + gpsi2)*std::sqrt(1. + gpsi2);
671 result = gpsi2*funK2/(1. + gpsi2);
678 result *= (1. + gpsi2)*
fKsi;
G4double ElectronCutInKineticEnergyNow
CLHEP::Hep3Vector G4ThreeVector
void SetPolarization(G4double polX, G4double polY, G4double polZ)
std::vector< ExP01TrackerHit * > a
G4double GetPhotonEnergy(const G4Track &trackData, const G4Step &stepData)
static constexpr double hbar_Planck
G4double GetMeanFreePath(const G4Track &track, G4double previousStepSize, G4ForceCondition *condition) override
static constexpr double keV
G4PropagatorInField * fFieldPropagator
G4double Laguerre(T &typeT, F f, G4double alpha, G4int n)
const G4ThreeVector & GetMomentumDirection() const
G4double GetProbSpectrumSRforInt(G4double)
G4double GetPDGCharge() const
G4VParticleChange * PostStepDoIt(const G4Track &track, const G4Step &Step) override
Hep3Vector & rotateUz(const Hep3Vector &)
virtual G4VParticleChange * PostStepDoIt(const G4Track &, const G4Step &)
virtual void GetFieldValue(const double Point[4], double *fieldArr) const =0
G4double condition(const G4ErrorSymMatrix &m)
G4double GammaCutInKineticEnergyNow
void AddSecondary(G4Track *aSecondary)
G4ParticleChange aParticleChange
static G4double GetEnergyConst()
static const G4double fIntegralProbabilityOfSR[200]
static constexpr double m
G4FieldManager * FindAndSetFieldManager(G4VPhysicalVolume *pCurrentPhysVol)
G4ParticleDefinition * GetDefinition() const
virtual void Initialize(const G4Track &)
G4double GetIntegrandForAngleK(G4double)
G4double GetAngleNumberAtGammaKsi(G4double)
static constexpr double electron_mass_c2
G4double GetIntProbSR(G4double)
G4double GetGlobalTime() const
static constexpr double twopi
const G4ThreeVector & GetPosition() const
const G4Field * GetDetectorField() const
void ProposeEnergy(G4double finalEnergy)
G4SynchrotronRadiationInMat(const G4String &processName="SynchrotronRadiation", G4ProcessType type=fElectromagnetic)
Hep3Vector cross(const Hep3Vector &) const
G4double G4ParticleHPJENDLHEData::G4double result
static G4TransportationManager * GetTransportationManager()
G4double GetAngleK(G4double)
static constexpr double eplus
static G4double GetLambdaConst()
static constexpr double c_light
const G4ParticleDefinition * thePositron
virtual ~G4SynchrotronRadiationInMat()
G4double GetProbSpectrumSRforEnergy(G4double)
const G4ParticleDefinition * theElectron
G4double GetRandomEnergySR(G4double, G4double)
void ProposeMomentumDirection(G4double Px, G4double Py, G4double Pz)
G4double GetEnergyProbSR(G4double)
G4double ParticleCutInKineticEnergyNow
void SetProcessSubType(G4int)
G4double GetKineticEnergy() const
G4GLOB_DLL std::ostream G4cout
G4PropagatorInField * GetPropagatorInField() const
G4bool IsApplicable(const G4ParticleDefinition &) override
G4double GetTotalMomentum() const
static constexpr double pi
G4double fcos(G4double arg)
G4double GetTotalEnergy() const
void ProposeLocalEnergyDeposit(G4double anEnergyPart)
const G4double LowestKineticEnergy
static constexpr double fine_structure_const
G4double PositronCutInKineticEnergyNow
static const G4double fLambdaConst
void ProposeTrackStatus(G4TrackStatus status)
const G4DynamicParticle * GetDynamicParticle() const
static const G4double fEnergyConst
G4VPhysicalVolume * GetVolume() const
void SetNumberOfSecondaries(G4int totSecondaries)