20 using namespace genie;
27 res_list.
Print(stream);
51 SLOG(
"BaryonResList",
pERROR) <<
"Null Resonance List";
60 SLOG(
"BaryonResList",
pERROR) <<
"Null Resonance List";
64 SLOG(
"BaryonResList",
pERROR) <<
"Resonance idx: " << ires
65 <<
" outside limits: [0, " << this->
NResonances() <<
"]";
74 SLOG(
"BaryonResList",
pERROR) <<
"Null Resonance List";
78 SLOG(
"BaryonResList",
pERROR) <<
"Resonance idx: " << ires
79 <<
" outside limits: [0, " << this->
NResonances() <<
"]";
93 SLOG(
"BaryonResList",
pWARN) <<
"NULL resonance list!";
110 SLOG(
"BaryonResList",
pINFO) << resonances.size();
113 fResVec =
new vector<Resonance_t> (resonances.size());
115 unsigned int ires = 0;
116 vector<string>::const_iterator riter;
117 for(riter = resonances.begin(); riter != resonances.end(); ++riter) {
121 SLOG(
"BaryonResList",
pERROR) <<
"*** Unknown resonance: " << *riter;
122 }
else (*
fResVec)[ires++] = res;
140 for(
unsigned int ires = 0; ires < nres; ires++) {
147 stream <<
"\n [-] Resonance List\n";
149 vector<Resonance_t>::const_iterator riter;
vector< Resonance_t > * fResVec
Resonance_t FromString(const char *res)
string -> resonance id
void Copy(const BaryonResList &rl)
void DecodeFromNameList(string list, string delimiter=",")
string ResonanceName(unsigned int ires) const
Encapsulates a list of baryon resonances.
auto cbegin() const noexcept-> typename vector< Resonance_t >::const_iterator
enum genie::EResonance Resonance_t
unsigned int NResonances(void) const
auto cend() const noexcept-> typename vector< Resonance_t >::const_iterator
void Print(ostream &stream) const
string FilterString(string filt, string input)
vector< string > Split(string input, string delim)
bool Find(Resonance_t res) const
ostream & operator<<(ostream &stream, const AlgConfigPool &config_pool)
auto end() noexcept-> typename vector< Resonance_t >::iterator
int ResonancePdgCode(unsigned int ires) const
const char * AsString(Resonance_t res)
resonance id -> string
#define SLOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a short string (using the FUNCTION and...
auto begin() noexcept-> typename vector< Resonance_t >::iterator
Resonance_t ResonanceId(unsigned int ires) const