|
GENIEGenerator
|
A list of PDG codes. More...
#include <PDGCodeList.h>
Public Member Functions | |
| PDGCodeList (bool allowdup=false) | |
| PDGCodeList (size_type n, bool allowdup=false) | |
| PDGCodeList (const PDGCodeList &list) | |
| ~PDGCodeList () | |
| void | push_back (int pdg_code) |
| void | insert (iterator pos, size_type n, const int &x) |
| bool | CheckPDGCode (int pdg_code) const |
| PDG code checks used by PDGCodeList. | |
| bool | ExistsInPDGLibrary (int pdg_code) const |
| bool | ExistsInPDGCodeList (int pdg_code) const |
| void | Copy (const PDGCodeList &list) |
| copy / print | |
| void | Print (ostream &stream) const |
| bool | DuplEntriesAllowed (void) const |
| check state | |
| PDGCodeList & | operator= (const PDGCodeList &list) |
| overloaded operators | |
Private Attributes | |
| bool | fAllowDuplicateEntries |
| allow duplicate entries in the list? | |
Friends | |
| ostream & | operator<< (ostream &stream, const PDGCodeList &list) |
A list of PDG codes.
Definition at line 32 of file PDGCodeList.h.
| PDGCodeList::PDGCodeList | ( | bool | allowdup = false | ) |
Definition at line 35 of file PDGCodeList.cxx.
References fAllowDuplicateEntries.
Referenced by Copy(), operator<<, operator=(), and PDGCodeList().
| PDGCodeList::PDGCodeList | ( | size_type | n, |
| bool | allowdup = false ) |
Definition at line 41 of file PDGCodeList.cxx.
References fAllowDuplicateEntries.
| PDGCodeList::PDGCodeList | ( | const PDGCodeList & | list | ) |
Definition at line 47 of file PDGCodeList.cxx.
References Copy(), and PDGCodeList().
| PDGCodeList::~PDGCodeList | ( | ) |
Definition at line 53 of file PDGCodeList.cxx.
| bool PDGCodeList::CheckPDGCode | ( | int | pdg_code | ) | const |
PDG code checks used by PDGCodeList.
Definition at line 71 of file PDGCodeList.cxx.
References ExistsInPDGCodeList(), ExistsInPDGLibrary(), fAllowDuplicateEntries, LOG, pDEBUG, and pERROR.
Referenced by insert(), and push_back().
| void PDGCodeList::Copy | ( | const PDGCodeList & | list | ) |
copy / print
Definition at line 145 of file PDGCodeList.cxx.
References clear, fAllowDuplicateEntries, PDGCodeList(), and push_back().
Referenced by operator=(), and PDGCodeList().
|
inline |
| bool PDGCodeList::ExistsInPDGCodeList | ( | int | pdg_code | ) | const |
Definition at line 103 of file PDGCodeList.cxx.
Referenced by CheckDecayerConsistency(), and CheckPDGCode().
| bool PDGCodeList::ExistsInPDGLibrary | ( | int | pdg_code | ) | const |
Definition at line 93 of file PDGCodeList.cxx.
References genie::PDGLibrary::Find(), and genie::PDGLibrary::Instance().
Referenced by CheckPDGCode().
| void PDGCodeList::insert | ( | iterator | pos, |
| size_type | n, | ||
| const int & | x ) |
Definition at line 63 of file PDGCodeList.cxx.
References CheckPDGCode().
| PDGCodeList & PDGCodeList::operator= | ( | const PDGCodeList & | list | ) |
overloaded operators
Definition at line 158 of file PDGCodeList.cxx.
References Copy(), and PDGCodeList().
| void PDGCodeList::Print | ( | ostream & | stream | ) | const |
Definition at line 120 of file PDGCodeList.cxx.
References genie::PDGLibrary::Find(), and genie::PDGLibrary::Instance().
Referenced by operator<<.
| void PDGCodeList::push_back | ( | int | pdg_code | ) |
override the vector<int> insertion methods to explicitly check for PDG code validity and that no PDG code is listed more than once
Definition at line 58 of file PDGCodeList.cxx.
References CheckPDGCode().
Referenced by CheckDecayerConsistency(), Configure(), Copy(), genie::utils::nnbar_osc::DecayProductList(), genie::utils::intranuke2018::Equilibrium(), genie::utils::intranuke2025::Equilibrium(), genie::utils::intranuke::Equilibrium(), genie::hnl::Decayer::GenerateDecayProducts(), genie::AGKYLowW2019::GenerateHadronCodes(), GetNeutrinoCodes(), GetPDGCodeListFromString(), GetTargetCodes(), genie::AGCharmPythiaBaseHadro2023::Hadronize(), genie::hnl::FluxCreator::HNLEnergy(), genie::HAIntranuke2018::Inelastic(), genie::HAIntranuke2025::Inelastic(), genie::HAIntranuke::Inelastic(), main(), genie::MECGenerator::NucleonClusterConstituents(), genie::utils::intranuke2018::PreEquilibrium(), genie::utils::intranuke2025::PreEquilibrium(), genie::utils::intranuke::PreEquilibrium(), genie::flux::GJPARCNuFlux::SetDefaults(), and genie::flux::GNuMIFlux::SetDefaults().
|
friend |
Definition at line 28 of file PDGCodeList.cxx.
References PDGCodeList(), and Print().
|
private |
allow duplicate entries in the list?
Definition at line 64 of file PDGCodeList.h.
Referenced by CheckPDGCode(), Copy(), DuplEntriesAllowed(), PDGCodeList(), and PDGCodeList().