55 (2.5*fine_structure_const*
eplus*c_light) ;
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),
135 fAlpha(0.0), fRootNumber(80),
136 fVerboseLevel( verboseLevel )
200 const G4Field* pField =
nullptr;
203 G4bool fieldExertsForce =
false;
205 if( (particleCharge != 0.0) )
209 if ( fieldMgr !=
nullptr )
216 if ( fieldExertsForce )
221 G4double globPosVec[4], FieldValueVec[6];
223 globPosVec[0] = globPosition.x();
224 globPosVec[1] = globPosition.y();
225 globPosVec[2] = globPosition.z();
238 G4double perpB = unitMcrossB.mag() ;
242 if( perpB > 0.0 ) MeanFreePath =
fLambdaConst*beta/perpB;
249 G4cout<<
"G4SynchrotronRadiationInMat::MeanFreePath = "<<MeanFreePath/
m<<
" m"<<
G4endl;
268 (aDynamicParticle->
GetMass() );
277 const G4Field* pField = nullptr ;
280 G4bool fieldExertsForce =
false;
282 if( (particleCharge != 0.0) )
285 if ( fieldMgr !=
nullptr )
292 if ( fieldExertsForce )
296 G4double globPosVec[4], FieldValueVec[6] ;
297 globPosVec[0] = globPosition.x() ;
298 globPosVec[1] = globPosition.y() ;
299 globPosVec[2] = globPosition.z() ;
309 G4double perpB = unitMcrossB.mag() ;
322 if( energyOfSR <= 0.0 )
339 fcos = (1 + cosTheta*cosTheta)*0.5;
344 beta = std::sqrt(1. - 1./(gamma*gamma));
346 cosTheta = (cosTheta + beta)/(1. + beta*cosTheta);
348 if( cosTheta > 1. ) cosTheta = 1.;
349 if( cosTheta < -1. ) cosTheta = -1.;
351 sinTheta = std::sqrt(1. - cosTheta*cosTheta );
355 G4double dirx = sinTheta*std::cos(Phi) ,
356 diry = sinTheta*std::sin(Phi) ,
360 gammaDirection.rotateUz(particleDirection);
368 G4ThreeVector gammaPolarization = FieldValue.cross(gammaDirection);
369 gammaPolarization = gammaPolarization.unit();
380 gammaPolarization.y(),
381 gammaPolarization.z() );
389 G4double newKinEnergy = kineticEnergy - energyOfSR ;
391 if (newKinEnergy > 0.)
433 (aDynamicParticle->
GetMass() ) ;
438 const G4Field* pField = nullptr ;
441 G4bool fieldExertsForce =
false;
443 if( (particleCharge != 0.0) )
446 if ( fieldMgr !=
nullptr )
453 if ( fieldExertsForce )
457 G4double globPosVec[3], FieldValueVec[3];
459 globPosVec[0] = globPosition.x();
460 globPosVec[1] = globPosition.y();
461 globPosVec[2] = globPosition.z();
480 energyOfSR = 0.0001*i*i*
fEnergyConst*gamma*gamma*perpB ;
484 if(energyOfSR <= 0.0)
523 for( i = 0; i < iMax; i++ )
528 else if( i>= iMax) position =
G4double(iMax);
534 energySR = 0.0001*position*position*
fEnergyConst*gamma*gamma*perpB;
536 if( energySR < 0. ) energySR = 0.;
547 G4double result, hypCos2, hypCos=std::cosh(t);
549 hypCos2 = hypCos*hypCos;
550 result = std::cosh(5.*t/3.)*std::exp(t-
fKsi*hypCos);
563 if (ksi <= 0.)
return 1.0;
587 G4double result, hypCos=std::cosh(t);
589 result = std::cosh(5.*t/3.)*std::exp(t -
fKsi*hypCos);
602 if (ksi <= 0.)
return 1.0;
615 result *= 9.*std::sqrt(3.)*ksi/8./
pi;
626 G4double result, hypCos=std::cosh(t);
660 G4double result, funK, funK2, gpsi2 = gpsi*gpsi;
663 fEta = 0.5*
fKsi*(1. + gpsi2)*std::sqrt(1. + gpsi2);
669 result = gpsi2*funK2/(1. + gpsi2);
676 result *= (1. + gpsi2)*
fKsi;
G4double condition(const G4ErrorSymMatrix &m)
G4VParticleChange * PostStepDoIt(const G4Track &track, const G4Step &Step) override
G4double GetIntegrandForAngleK(G4double)
G4double ElectronCutInKineticEnergyNow
G4double GetKineticEnergy() const
CLHEP::Hep3Vector G4ThreeVector
G4double GetTotalEnergy() const
virtual void GetFieldValue(const double Point[4], double *fieldArr) const =0
const G4DynamicParticle * GetDynamicParticle() const
std::vector< ExP01TrackerHit * > a
const G4ThreeVector & GetPosition() const
static const G4double fEnergyConst
G4ParticleDefinition * GetDefinition() const
G4double GetMeanFreePath(const G4Track &track, G4double previousStepSize, G4ForceCondition *condition) override
G4double fcos(G4double arg)
G4double GetEnergyProbSR(G4double)
void ProposeLocalEnergyDeposit(G4double anEnergyPart)
static constexpr double twopi
const G4ParticleDefinition * theElectron
G4double PositronCutInKineticEnergyNow
G4double GetProbSpectrumSRforEnergy(G4double)
G4double GetTotalMomentum() const
static const G4double fIntegralProbabilityOfSR[200]
G4bool IsApplicable(const G4ParticleDefinition &) override
G4SynchrotronRadiationInMat(const G4String &processName="SynchrotronRadiation", G4ProcessType type=fElectromagnetic)
G4GLOB_DLL std::ostream G4cout
static constexpr double m
G4double GetPhotonEnergy(const G4Track &trackData, const G4Step &stepData)
const G4ThreeVector & GetMomentumDirection() const
G4double GetAngleNumberAtGammaKsi(G4double)
G4double GetAngleK(G4double)
static constexpr double eplus
const G4double LowestKineticEnergy
void SetProcessSubType(G4int)
G4double GetGlobalTime() const
void SetPolarization(G4double polX, G4double polY, G4double polZ)
G4FieldManager * FindAndSetFieldManager(G4VPhysicalVolume *pCurrentPhysVol)
static G4TransportationManager * GetTransportationManager()
virtual void Initialize(const G4Track &)
G4double GetIntProbSR(G4double)
const G4ParticleDefinition * thePositron
void SetNumberOfSecondaries(G4int totSecondaries)
void ProposeEnergy(G4double finalEnergy)
G4ParticleChange aParticleChange
G4VPhysicalVolume * GetVolume() const
void AddSecondary(G4Track *aSecondary)
static constexpr double pi
void ProposeMomentumDirection(G4double Px, G4double Py, G4double Pz)
G4double ParticleCutInKineticEnergyNow
static const G4double fLambdaConst
void ProposeTrackStatus(G4TrackStatus status)
const G4Field * GetDetectorField() const
G4double GetPDGCharge() const
G4double GetRandomEnergySR(G4double, G4double)
G4PropagatorInField * GetPropagatorInField() const
G4ThreeVector G4ParticleMomentum
static constexpr double keV
virtual ~G4SynchrotronRadiationInMat()
G4double GammaCutInKineticEnergyNow
G4double GetProbSpectrumSRforInt(G4double)
virtual G4VParticleChange * PostStepDoIt(const G4Track &, const G4Step &)
G4PropagatorInField * fFieldPropagator
G4double Laguerre(T &typeT, F f, G4double alpha, G4int n)