A list of PDG codes. More...
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. More... | |
bool | ExistsInPDGLibrary (int pdg_code) const |
bool | ExistsInPDGCodeList (int pdg_code) const |
void | Copy (const PDGCodeList &list) |
copy / print More... | |
void | Print (ostream &stream) const |
bool | DuplEntriesAllowed (void) const |
check state More... | |
PDGCodeList & | operator= (const PDGCodeList &list) |
overloaded operators More... | |
Private Attributes | |
bool | fAllowDuplicateEntries |
allow duplicate entries in the list? More... | |
Friends | |
ostream & | operator<< (ostream &stream, const PDGCodeList &list) |
A list of PDG codes.
May 13, 2005
Copyright (c) 2003-2019, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org or see $GENIE/LICENSE
Definition at line 33 of file PDGCodeList.h.
PDGCodeList::PDGCodeList | ( | bool | allowdup = false | ) |
Definition at line 44 of file PDGCodeList.cxx.
References fAllowDuplicateEntries.
PDGCodeList::PDGCodeList | ( | size_type | n, |
bool | allowdup = false |
||
) |
Definition at line 50 of file PDGCodeList.cxx.
References fAllowDuplicateEntries.
PDGCodeList::PDGCodeList | ( | const PDGCodeList & | list | ) |
Definition at line 56 of file PDGCodeList.cxx.
References Copy().
PDGCodeList::~PDGCodeList | ( | ) |
Definition at line 62 of file PDGCodeList.cxx.
bool PDGCodeList::CheckPDGCode | ( | int | pdg_code | ) | const |
PDG code checks used by PDGCodeList.
Definition at line 80 of file PDGCodeList.cxx.
References APDHVSetting::added, ExistsInPDGCodeList(), ExistsInPDGLibrary(), fAllowDuplicateEntries, LOG, pDEBUG, and pERROR.
Referenced by insert(), and push_back().
void PDGCodeList::Copy | ( | const PDGCodeList & | list | ) |
copy / print
Definition at line 154 of file PDGCodeList.cxx.
References clear, fAllowDuplicateEntries, and push_back().
Referenced by operator=(), PDGCodeList(), genie::flux::GJPARCNuFlux::SetFluxParticles(), and genie::flux::GFluxFileConfigI::SetFluxParticles().
|
inline |
check state
Definition at line 57 of file PDGCodeList.h.
References fAllowDuplicateEntries, operator<<, and operator=().
bool PDGCodeList::ExistsInPDGCodeList | ( | int | pdg_code | ) | const |
Definition at line 112 of file PDGCodeList.cxx.
References febshutoff_auto::end.
Referenced by CheckDecayerConsistency(), CheckPDGCode(), genie::flux::GJPARCNuFlux::GenerateNext_weighted(), genie::flux::GDk2NuFlux::GenerateNext_weighted(), genie::flux::GSimpleNtpFlux::GenerateNext_weighted(), genie::geometry::ROOTGeomAnalyzer::GetWeight(), and genie::Decayer::IsUnstable().
bool PDGCodeList::ExistsInPDGLibrary | ( | int | pdg_code | ) | const |
Definition at line 102 of file PDGCodeList.cxx.
References genie::PDGLibrary::Find(), and genie::PDGLibrary::Instance().
Referenced by CheckPDGCode().
Definition at line 72 of file PDGCodeList.cxx.
References CheckPDGCode().
PDGCodeList & PDGCodeList::operator= | ( | const PDGCodeList & | list | ) |
overloaded operators
Definition at line 167 of file PDGCodeList.cxx.
References Copy().
Referenced by DuplEntriesAllowed().
void PDGCodeList::Print | ( | ostream & | stream | ) | const |
Definition at line 129 of file PDGCodeList.cxx.
References febshutoff_auto::end, allTimeWatchdog::endl, genie::PDGLibrary::Find(), genie::PDGLibrary::Instance(), nc, and gen_hdf5record::size.
Referenced by genie::operator<<().
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 67 of file PDGCodeList.cxx.
References CheckPDGCode(), and push_back().
Referenced by genie::flux::GCylindTH1Flux::AddEnergySpectrum(), genie::supernova::GSNovaModel::AddGenerator(), genie::geometry::ROOTGeomAnalyzer::BuildListOfTargetNuclei(), CheckDecayerConsistency(), Configure(), Copy(), genie::utils::nnbar_osc::DecayProductList(), genie::utils::intranuke::Equilibrium(), genie::utils::intranuke2018::Equilibrium(), genie::flux::GFluxBlender::FluxParticles(), genie::KNOHadronization::GenerateHadronCodes(), genie::flux::GDk2NuFlux::GenerateNext_weighted(), genie::flux::GSimpleNtpFlux::GenerateNext_weighted(), GetCommandLineArgs(), GetNeutrinoCodes(), GetPDGCodeListFromString(), GetTargetCodes(), genie::CharmHadronization::Hadronize(), genie::HAIntranuke::Inelastic(), genie::HAIntranuke2018::Inelastic(), genie::geometry::PointGeomAnalyzer::Initialize(), genie::flux::GMonoEnergeticFlux::Initialize(), genie::Decayer::LoadConfig(), main(), genie::MECGenerator::NucleonClusterConstituents(), ParseFluxFileConfig(), genie::utils::intranuke::PreEquilibrium(), genie::utils::intranuke2018::PreEquilibrium(), genie::flux::GSimpleNtpFlux::ProcessMeta(), genie::PythiaHadronization::SelectParticles(), genie::flux::GJPARCNuFlux::SetDefaults(), genie::flux::GDk2NuFlux::SetDefaults(), genie::flux::GNuMIFlux::SetDefaults(), and genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
|
friend |
|
private |
allow duplicate entries in the list?
Definition at line 65 of file PDGCodeList.h.
Referenced by CheckPDGCode(), Copy(), DuplEntriesAllowed(), and PDGCodeList().