24 using namespace genie;
67 vector<int>::insert(pos,n,pdg_code);
78 <<
"Can't add non-existent particle [pdgc = " << pdg_code <<
"]";
86 <<
"Particle [pdgc = " << pdg_code <<
"] was already added";
98 TParticlePDG * particle = pdglib->
Find(pdg_code);
99 if(!particle)
return false;
110 if(find(bci,eci,pdg_code) != eci)
return true;
122 stream <<
"\n[-]" <<
endl;
127 size_t nc = this->
size();
129 for(iter = this->
begin(); iter != this->
end(); ++iter) {
130 int pdg_code = *iter;
131 TParticlePDG *
p = pdglib->
Find(pdg_code);
134 stream <<
" |---o ** ERR: no particle with PDG code: " << pdg_code;
136 string name = p->GetName();
139 <<
" (PDG code = " << pdg_code <<
")";
141 if( (--nc) > 0) stream <<
endl;
150 for(iter = list.begin(); iter != list.end(); ++iter) {
end
while True: pbar.update(maxval-len(onlies[E][S])) #print iS, "/", len(onlies[E][S]) found = False for...
THE MAIN GENIE PROJECT NAMESPACE
PDGCodeList & operator=(const PDGCodeList &list)
overloaded operators
bool ExistsInPDGCodeList(int pdg_code) const
PDGCodeList(bool allowdup=false)
bool exists(std::string path)
fInnerVessel push_back(Point(-578.400000, 0.000000, 0.000000))
bool fAllowDuplicateEntries
allow duplicate entries in the list?
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
CodeOutputInterface * code
Q_EXPORT QTSManip setw(int w)
static PDGLibrary * Instance(void)
Singleton class to load & serve a TDatabasePDG.
ostream & operator<<(ostream &stream, const AlgConfigPool &config_pool)
bool ExistsInPDGLibrary(int pdg_code) const
bool CheckPDGCode(int pdg_code) const
PDG code checks used by PDGCodeList.
vector< vector< double > > clear
decltype(auto) constexpr begin(T &&obj)
ADL-aware version of std::begin.
TParticlePDG * Find(int pdgc, bool must_exist=true)
void Print(ostream &stream) const
void insert(iterator pos, size_type n, const int &x)
Q_EXPORT QTSManip setfill(int f)
void Copy(const PDGCodeList &list)
copy / print
QTextStream & endl(QTextStream &s)
void push_back(int pdg_code)