#include <G4MesonSplitter.hh>
Definition at line 36 of file G4MesonSplitter.hh.
◆ SplitMeson()
Definition at line 29 of file G4MesonSplitter.cc.
30{
31 G4int absPDGcode = std::abs(PDGcode);
32 if (absPDGcode >= 1000) return false;
33 if (absPDGcode == 22)
34 {
37 aEnd = it;
38 bEnd = -it;
39 }
40 else
41 {
42 G4int heavy = absPDGcode/100;
43 G4int light = (absPDGcode%100)/10;
44 G4int anti = 1 - 2*(std::max(heavy, light)%2);
45 if (PDGcode < 0 ) anti = -anti;
46 heavy *= anti;
47 light *= -anti;
49 aEnd = heavy;
50 bEnd = light;
51 }
52 return true;
53}
void G4SwapObj(T *a, T *b)
The documentation for this class was generated from the following files: