Geant4-11
Functions
G4INCL::ParticleConfig Namespace Reference

Functions

G4bool isPair (Particle const *const p1, Particle const *const p2, ParticleType t1, ParticleType t2)
 

Function Documentation

◆ isPair()

G4bool G4INCL::ParticleConfig::isPair ( Particle const *const  p1,
Particle const *const  p2,
ParticleType  t1,
ParticleType  t2 
)

Definition at line 110 of file G4INCLGlobals.cc.

110 {
111 return ((p1->getType() == t1 && p2->getType() == t2) ||
112 (p1->getType() == t2 && p2->getType() == t1));
113 }

References G4INCL::Particle::getType().

Referenced by G4INCL::PiNToDeltaChannel::fillFinalState(), and G4INCL::StrangeAbsorbtionChannel::fillFinalState().