#include <G4INCLPiNElasticChannel.hh>
Definition at line 47 of file G4INCLPiNElasticChannel.hh.
G4INCL::PiNElasticChannel::~PiNElasticChannel |
( |
| ) |
|
|
virtual |
Implements G4INCL::IChannel.
Definition at line 57 of file G4INCLPiNElasticChannel.cc.
103 G4double py_nucleon=nucleon->getMomentum().getY();
104 G4double pz_nucleon=nucleon->getMomentum().getZ();
105 G4double cnorm1=px_nucleon*px_nucleon+py_nucleon*py_nucleon;
107 G4double tnorm=cnorm1+pz_nucleon*pz_nucleon;
109 G4double btm=std::exp(-4.*tnorm*bpn);
114 G4double stheta=std::sqrt(1.-ctheta*ctheta);
122 ThreeVector mom_nucleon(
123 px_nucleon*ctheta+cnorm*stheta*(t1*t7+t4*t8),
124 py_nucleon*ctheta+cnorm*stheta*(t2*t7+t5*t8),
125 pz_nucleon*ctheta+cnorm*stheta*t6*t8
127 nucleon->setMomentum(mom_nucleon);
128 pion->setMomentum(-mom_nucleon);
131 if (iso == 1 || iso == -1) {
135 nucleon->setType(nucleonType);
137 pion->setType(pionType);
141 nucleon->setType(nucleonType);
147 nucleon->setType(nucleonType);
149 pion->setType(pionType);
152 fs->addModifiedParticle(nucleon);
153 fs->addModifiedParticle(pion);
const G4INCL::ThreeVector & getMomentum() const
ParticleType getNucleonType(const G4int isosp)
Get the type of nucleon.
ParticleType getPionType(const G4int isosp)
Get the type of pion.
G4bool nucleon(G4int ityp)
G4int getIsospin(const ParticleType t)
Get the isospin of a particle.
The documentation for this class was generated from the following files: