26 using namespace genie;
86 InteractionGeneratorMap::const_iterator iter;
88 for(iter = xsmap.begin(); iter != xsmap.end(); ++iter) {
89 string code = iter->first;
92 this->insert(map<string, const EventGeneratorI *>::value_type(code,evg));
104 <<
"Building 'interaction' -> 'generator' associations";
106 <<
"Using all simulated interactions for init-state: "
109 LOG(
"IntGenMap",
pWARN) <<
"No EventGeneratorList was loaded!!";
115 EventGeneratorList::const_iterator evgliter;
116 InteractionList::iterator intliter;
128 <<
"Querying [" << evgen->
Id().
Key() <<
"] for its InteractionList";
141 for(intliter = ilst->begin(); intliter != ilst->end(); ++intliter)
145 string code = interaction->
AsString();
148 <<
"\nLinking: " << code <<
" --> to: " << evgen->
Id().
Key();
150 map<string, const EventGeneratorI *>::value_type(code,evgen));
161 LOG(
"IntGenMap",
pWARN) <<
"Null interaction!!";
164 string code = interaction->
AsString();
165 InteractionGeneratorMap::const_iterator evgiter = this->find(code);
166 if(evgiter == this->end()) {
168 <<
"No EventGeneratorI was found for interaction: \n" << code;
184 InteractionGeneratorMap::const_iterator iter;
186 unsigned int maxlen = 0;
187 for(iter = this->begin(); iter != this->end(); ++iter) {
188 string icode = iter->first;
189 unsigned int isz = (
unsigned int) icode.size();
190 maxlen=TMath::Max(maxlen,isz);
193 for(iter = this->begin(); iter != this->end(); ++iter) {
195 string intstr = iter->first;
196 string evgstr = (evg) ? evg->
Id().
Key() :
"** NULL EVENT GENERATOR **";
198 stream << setfill(
' ') << setw(maxlen)
199 << intstr <<
" --> " << evgstr << endl;
const EventGeneratorList * fEventGeneratorList
InteractionGeneratorMap & operator=(const InteractionGeneratorMap &xsmap)
Defines the InteractionListGeneratorI interface. Concrete implementations of this interface generate ...
const EventGeneratorI * FindGenerator(const Interaction *in) const
Defines the EventGeneratorI interface.
void Copy(const InteractionGeneratorMap &xsmap)
virtual InteractionList * CreateInteractionList(const InitialState &init) const =0
string AsString(void) const
void Print(ostream &stream) const
Summary information for an interaction.
An Interaction -> EventGeneratorI associative container. The container is being built for the loaded ...
void BuildMap(const InitialState &init_state)
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
void Copy(const InitialState &init_state)
string AsString(void) const
InteractionGeneratorMap()
virtual const AlgId & Id(void) const
Get algorithm ID.
void Append(const InteractionList &intl)
const InteractionList & GetInteractionList(void) const
ostream & operator<<(ostream &stream, const AlgConfigPool &config_pool)
InitialState * fInitState
~InteractionGeneratorMap()
InteractionList * fInteractionList
A vector of Interaction objects.
A vector of EventGeneratorI objects.
vector< vector< double > > clear
virtual const InteractionListGeneratorI * IntListGenerator(void) const =0
void UseGeneratorList(const EventGeneratorList *list)
#define SLOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a short string (using the FUNCTION and...
Initial State information.