26 using namespace genie;
33 res_list.
Print(stream);
57 SLOG(
"BaryonResList",
pERROR) <<
"Null Resonance List";
66 SLOG(
"BaryonResList",
pERROR) <<
"Null Resonance List";
70 SLOG(
"BaryonResList",
pERROR) <<
"Resonance idx: " << ires
71 <<
" outside limits: [0, " << this->
NResonances() <<
"]";
80 SLOG(
"BaryonResList",
pERROR) <<
"Null Resonance List";
84 SLOG(
"BaryonResList",
pERROR) <<
"Resonance idx: " << ires
85 <<
" outside limits: [0, " << this->
NResonances() <<
"]";
99 SLOG(
"BaryonResList",
pWARN) <<
"NULL resonance list!";
103 if(n!=0)
return true;
116 SLOG(
"BaryonResList",
pINFO) << resonances.size();
119 fResVec =
new vector<Resonance_t> (resonances.size());
121 unsigned int ires = 0;
122 vector<string>::const_iterator riter;
123 for(riter = resonances.begin(); riter != resonances.end(); ++riter) {
127 SLOG(
"BaryonResList",
pERROR) <<
"*** Unknown resonance: " << *riter;
128 }
else (*
fResVec)[ires++] = res;
146 for(
unsigned int ires = 0; ires < nres; ires++) {
153 stream <<
"\n [-] Resonance List\n";
155 vector<Resonance_t>::const_iterator riter;
vector< Resonance_t > * fResVec
Resonance_t FromString(const char *res)
string -> resonance id
THE MAIN GENIE PROJECT NAMESPACE
void Copy(const BaryonResList &rl)
void DecodeFromNameList(string list, string delimiter=",")
string ResonanceName(unsigned int ires) const
Encapsulates a list of baryon resonances.
enum genie::EResonance Resonance_t
unsigned int NResonances(void) const
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)
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...
Resonance_t ResonanceId(unsigned int ires) const