34 #define INCLXX_IN_GEANT4_MODE 1
47 :theParticle(p), incidentDirection(dir)
56 if(m > 1500.0) gg = 200.0;
59 const G4double psf = std::pow(qqq, 3)/(std::pow(qqq, 3) + 5832000.0);
61 if( m > 1400)
return tdel * 1./(1. + std::pow((m-1400)/g0,2));
67 unsigned long loopCounter = 0;
68 const unsigned long maxLoopCounter = 10000000;
71 if(std::abs(*ctet_par) > 1.0) (*ctet_par) =
Math::sign(*ctet_par);
73 }
while(loopCounter<maxLoopCounter &&
Random::shoot() > ((1.0 + 3.0 * hel * (*ctet_par) * (*ctet_par)) /(1.0 + 3.0 * hel)));
74 (*stet_par) = std::sqrt(1.-(*ctet_par)*(*ctet_par));
125 q1=(b1*t1+b2*t2*cfi)/beta;
126 q2=(b2*t1-b1*t2*cfi)/beta;
127 q3=(b3*t1/beta-t2*sfi);
void addModifiedParticle(Particle *p)
const G4INCL::ThreeVector & getPosition() const
static G4double computeDecayTime(Particle *p)
G4double getEnergy() const
const G4double effectiveNucleonMass
DeltaDecayChannel(Particle *, ThreeVector const &)
G4double getMass() const
Get the cached particle mass.
void setHelicity(G4double h)
void sampleAngles(G4double *, G4double *, G4double *)
G4double momentumInCM(Particle const *const p1, Particle const *const p2)
gives the momentum in the CM frame of two particles.
static constexpr double m
G4double getINCLMass(const G4int A, const G4int Z)
Get INCL nuclear mass (in MeV/c^2)
virtual ~DeltaDecayChannel()
void setType(ParticleType t)
virtual void setMomentum(const G4INCL::ThreeVector &momentum)
void fillFinalState(FinalState *fs)
ThreeVector const incidentDirection
G4INCL::ParticleType getType() const
G4double adjustEnergyFromMomentum()
Recompute the energy to match the momentum.
void addCreatedParticle(Particle *p)
const G4double hc
[MeV*fm]
const G4double effectivePionMass