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. 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.
Definition at line 32 of file PDGCodeList.h.
PDGCodeList::PDGCodeList | ( | bool | allowdup = false | ) |
Definition at line 35 of file PDGCodeList.cxx.
References fAllowDuplicateEntries.
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().
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, and push_back().
Referenced by operator=(), PDGCodeList(), genie::flux::GJPARCNuFlux::SetFluxParticles(), and genie::flux::GFluxFileConfigI::SetFluxParticles().
|
inline |
check state
Definition at line 56 of file PDGCodeList.h.
References fAllowDuplicateEntries.
bool PDGCodeList::ExistsInPDGCodeList | ( | int | pdg_code | ) | const |
Definition at line 103 of file PDGCodeList.cxx.
Referenced by CheckDecayerConsistency(), CheckPDGCode(), genie::flux::GCylindTH1Flux::GenerateNext(), genie::flux::GJPARCNuFlux::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 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().
void PDGCodeList::Print | ( | ostream & | stream | ) | const |
Definition at line 120 of file PDGCodeList.cxx.
References genie::PDGLibrary::Find(), and genie::PDGLibrary::Instance().
Referenced by genie::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 genie::flux::GCylindTH1Flux::AddEnergySpectrum(), 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::hnl::Decayer::GenerateDecayProducts(), genie::AGKYLowW2019::GenerateHadronCodes(), genie::flux::GSimpleNtpFlux::GenerateNext_weighted(), GetNeutrinoCodes(), GetPDGCodeListFromString(), GetTargetCodes(), genie::AGCharm2019::Hadronize(), genie::hnl::FluxCreator::HNLEnergy(), genie::HAIntranuke::Inelastic(), genie::HAIntranuke2018::Inelastic(), genie::geometry::PointGeomAnalyzer::Initialize(), genie::flux::GPowerLawFlux::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::flux::GJPARCNuFlux::SetDefaults(), and genie::flux::GNuMIFlux::SetDefaults().
|
friend |
Definition at line 28 of file PDGCodeList.cxx.
|
private |
allow duplicate entries in the list?
Definition at line 64 of file PDGCodeList.h.
Referenced by CheckPDGCode(), Copy(), DuplEntriesAllowed(), and PDGCodeList().