35 (pdgc > 2000000000 && pdgc < 2000100000) ||
44 return (pdgc > 1000000000 && pdgc < 1999999999);
59 int Z = (ion_pdgc/10000) - 1000*(ion_pdgc/10000000);
67 int A = (ion_pdgc/10) - 1000*(ion_pdgc/10000);
82 int ion_pdgc = 1000000000 + L*100000000 + Z*10000 + A*10 + I;
91 bool is_lepton = (is_neutral_lepton || is_charged_lepton);
98 return is_neutral_lepton;
106 bool is_charged_lepton = is_neg_lepton || is_pos_lepton;
107 return is_charged_lepton;
112 bool is_nu = (pdgc ==
kPdgNuE) ||
145 return is_neg_lepton;
154 return is_pos_lepton;
394 return ((pdgc>=100 && pdgc<=9999) || (pdgc>=-9999 && pdgc<=-100));
421 return ( std::abs( pdgc ) ==
kPdgHNL );
428 if(geant_code == 6)
return kPdgMuon;
430 if(geant_code == 34)
return kPdgTau;
432 if(geant_code == 8)
return kPdgPiP;
433 if(geant_code == 9)
return kPdgPiM;
434 if(geant_code == 7)
return kPdgPi0;
435 if(geant_code == 17)
return kPdgEta;
436 if(geant_code == 11)
return kPdgKP;
437 if(geant_code == 12)
return kPdgKM;
438 if(geant_code == 10)
return kPdgK0L;
439 if(geant_code == 16)
return kPdgK0S;
440 if(geant_code == 35)
return kPdgDP;
441 if(geant_code == 36)
return kPdgDM;
442 if(geant_code == 37)
return kPdgD0;
444 if(geant_code == 39)
return kPdgDPs;
445 if(geant_code == 40)
return kPdgDMs;
447 if(geant_code == 44)
return kPdgZ0;
448 if(geant_code == 42)
return kPdgWP;
449 if(geant_code == 43)
return kPdgWM;
462 if(geant_code == 22)
return kPdgXi0;
463 if(geant_code == 23)
return kPdgXiM;
470 const int kPdgDeuteron = 1000010020;
471 const int kPdgTritium = 1000010030;
472 const int kPdgAlpha = 1000020040;
473 const int kPdgHe3 = 1000020030;
474 if(geant_code == 45)
return kPdgDeuteron;
475 if(geant_code == 46)
return kPdgTritium;
476 if(geant_code == 47)
return kPdgAlpha;
477 if(geant_code == 49)
return kPdgHe3;
480 <<
"Can not convert geant code: " << geant_code <<
" to PDG";
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE,...
Most commonly used PDG codes. A set of utility functions to handle PDG codes is provided in PDGUtils.
bool Is2NucleonCluster(int pdgc)
bool IsAntiNuTau(int pdgc)
bool IsNegChargedLepton(int pdgc)
bool IsBaryonResonance(int pdgc)
bool IsAntiSQuark(int pdgc)
bool IsAntiNuMu(int pdgc)
bool IsAntiUQuark(int pdgc)
bool IsNeutrino(int pdgc)
int IonPdgCode(int A, int Z)
bool IsPosChargedLepton(int pdgc)
bool IsPositron(int pdgc)
bool IsParticle(int pdgc)
not ion or pseudo-particle
bool IsAntiQuark(int pdgc)
bool IsAntiCQuark(int pdgc)
bool IsElectron(int pdgc)
bool IsAntiBQuark(int pdgc)
bool IsPseudoParticle(int pdgc)
bool IsDarkSectorParticle(int pdgc)
int SwitchProtonNeutron(int pdgc)
bool IsAntiMuon(int pdgc)
bool IsAntiDQuark(int pdgc)
bool IsChargedLepton(int pdgc)
int Neutrino2ChargedLepton(int pdgc)
bool IsNeutralLepton(int pdgc)
bool IsAntiTQuark(int pdgc)
bool IsAntiDarkMatter(int pdgc)
int IonPdgCodeToZ(int pdgc)
bool IsDarkMatter(int pdgc)
bool IsNeutronOrProton(int pdgc)
bool IsAntiNeutrino(int pdgc)
int ModifyNucleonCluster(int pdgc, int dQ)
int IonPdgCodeToA(int pdgc)
int GeantToPdg(int geant_code)
bool IsBaryonResonance(int pdgc)
is input a baryon resonance?
THE MAIN GENIE PROJECT NAMESPACE
const int kPdgBUDiquarkS1
const int kPdgSDDiquarkS0
const int kPdgSSDiquarkS1
const int kPdgSDDiquarkS1
const int kPdgCDDiquarkS1
const int kPdgUDDiquarkS0
const int kPdgUUDiquarkS1
const int kPdgCCDiquarkS1
const int kPdgSUDiquarkS1
const int kPdgDNuMediator
const int kPdgCUDiquarkS0
const int kPdgDarkNeutrino
const int kPdgBDDiquarkS0
const int kPdgBDDiquarkS1
const int kPdgBBDiquarkS1
const int kPdgBSDiquarkS1
const int kPdgUDDiquarkS1
const int kPdgCDDiquarkS0
const int kPdgCSDiquarkS0
const int kPdgBUDiquarkS0
const int kPdgCSDiquarkS1
const int kPdgBSDiquarkS0
const int kPdgDDDiquarkS1
const int kPdgCUDiquarkS1
const int kPdgAntiNeutron
const int kPdgAntiDarkMatter
const int kPdgBCDiquarkS0
const int kPdgSUDiquarkS0
const int kPdgBCDiquarkS1