35#define INCLXX_IN_GEANT4_MODE 1
48 :theParticle(p), theNucleus(n), incidentDirection(dir)
57 if(m > 1500.0) gg = 200.0;
60 const G4double psf = std::pow(qqq, 3)/(std::pow(qqq, 3) + 5832000.0);
69 if(std::abs(*ctet_par) > 1.0) (*ctet_par) =
Math::sign(*ctet_par);
70 }
while(
Random::shoot() > ((1.0 + 3.0 * hel * (*ctet_par) * (*ctet_par))
72 (*stet_par) = std::sqrt(1.-(*ctet_par)*(*ctet_par));
106 sampleAngles(&ctet, &stet, &fi);
115 sal = incidentDirection.
perp()/beta;
121 G4double t1 = ctet+cal*stet*sfi/sal;
123 q1=(b1*t1+b2*t2*cfi)/beta;
124 q2=(b2*t1-b1*t2*cfi)/beta;
125 q3=(b3*t1/beta-t2*sfi);
134 switch(theParticle->
getType()) {
162 FATAL(
"Unrecognized delta type; type=" << theParticle->
getType() << std::endl);
virtual ~DeltaDecayChannel()
FinalState * getFinalState()
static G4double computeDecayTime(Particle *p)
DeltaDecayChannel(Nucleus *n, Particle *, ThreeVector const)
void addModifiedParticle(Particle *p)
void addCreatedParticle(Particle *p)
static G4double momentumInCM(Particle const *const p1, Particle const *const p2)
gives the momentum in the CM frame of two particles.
static G4double getINCLMass(const G4int A, const G4int Z)
Get INCL nuclear mass (in MeV/c^2)
static const G4double effectiveNucleonMass
static const G4double effectivePionMass
G4double getEnergy() const
void setHelicity(G4double h)
const G4INCL::ThreeVector & getPosition() const
G4double adjustEnergyFromMomentum()
Recompute the energy to match the momentum.
virtual void setMomentum(const G4INCL::ThreeVector &momentum)
G4INCL::ParticleType getType() const
void setType(ParticleType t)
G4double getMass() const
Get the cached particle mass.
const G4double hc
[MeV*fm]