35#define INCLXX_IN_GEANT4_MODE 1
51 incidentDirection(aParticle->getMomentum())
63 DEBUG(
"DeltaDecayChannel chosen." << std::endl);
103 DEBUG(
"Enforcing energy conservation: failed!" << std::endl);
110 for(
ParticleIter i = created.begin(); i != created.end(); ++i )
123 DEBUG(
"No nucleus, continuing anyway." << std::endl);
126 DEBUG(
"Enforcing energy conservation: success!" << std::endl);
135 for(
ParticleIter i=modified.begin(); i!=modified.end(); ++i)
142 DEBUG(
"CDPP: Blocked!" << std::endl);
148 for(
ParticleIter i = created.begin(); i != created.end(); ++i )
160 DEBUG(
"CDPP: Allowed!" << std::endl);
187 std::stringstream ss;
188 ss <<
"(avatar " <<
theTime <<
" 'decay" << std::endl
189 <<
"(list " << std::endl
191 <<
"))" << std::endl;
void incrementAcceptedDecays()
void incrementBlockedDecays()
virtual FinalState * postInteraction(FinalState *)
G4INCL::IChannel * getChannel() const
DecayAvatar(G4INCL::Particle *aParticle, G4double time, G4INCL::Nucleus *aNucleus, G4bool force=false)
virtual void preInteraction()
void addModifiedParticle(Particle *p)
ParticleList const & getModifiedParticles() const
void setBlockedDelta(Particle *const p)
void setTotalEnergyBeforeInteraction(G4double E)
FinalStateValidity getValidity() const
void makeNoEnergyConservation()
ParticleList const & getCreatedParticles() const
void setType(AvatarType t)
FinalState * postInteraction(FinalState *)
void restoreParticles() const
Restore the state of both particles.
G4INCL::Particle * particle1
G4bool enforceEnergyConservation(FinalState *const fs)
Enforce energy conservation.
G4INCL::Nucleus * theNucleus
G4bool isDelta() const
Is it a Delta?
static G4bool isCDPPBlocked(ParticleList const p, Nucleus const *const n)
Check CDPP blocking.
std::list< G4INCL::Particle * > ParticleList
std::list< G4INCL::Particle * >::const_iterator ParticleIter