26 using namespace genie;
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!!";
128 <<
"Querying [" << evgen->
Id().
Key() <<
"] for its InteractionList";
141 for(intliter = ilst->begin(); intliter != ilst->end(); ++intliter)
148 <<
"\nLinking: " << code <<
" --> to: " << evgen->
Id().
Key();
150 map<string, const EventGeneratorI *>::value_type(code,evgen));
161 LOG(
"IntGenMap",
pWARN) <<
"Null interaction!!";
166 if(evgiter == this->
end()) {
168 <<
"No EventGeneratorI was found for interaction: \n" <<
code;
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 **";
199 << intstr <<
" --> " << evgstr <<
endl;
end
while True: pbar.update(maxval-len(onlies[E][S])) #print iS, "/", len(onlies[E][S]) found = False for...
const EventGeneratorList * fEventGeneratorList
InteractionGeneratorMap & operator=(const InteractionGeneratorMap &xsmap)
THE MAIN GENIE PROJECT NAMESPACE
Defines the InteractionListGeneratorI interface. Concrete implementations of this interface generate ...
virtual const InteractionListGeneratorI * IntListGenerator(void) const =0
const EventGeneratorI * FindGenerator(const Interaction *in) const
Defines the EventGeneratorI interface.
void Copy(const InteractionGeneratorMap &xsmap)
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
CodeOutputInterface * code
InteractionGeneratorMap()
virtual InteractionList * CreateInteractionList(const InitialState &init) const =0
Q_EXPORT QTSManip setw(int w)
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
decltype(auto) constexpr begin(T &&obj)
ADL-aware version of std::begin.
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...
Event Generation using GENIE, cosmics or single particles.
Q_EXPORT QTSManip setfill(int f)
QTextStream & endl(QTextStream &s)
Initial State information.