21 using namespace genie;
82 for(iter = xsmap.begin(); iter != xsmap.end(); ++iter) {
83 string code = iter->first;
86 this->insert(map<string, const XSecAlgorithmI *>::value_type(code,alg));
98 <<
"Building 'interaction' -> 'xsec algorithm' associations";
100 <<
"Using all simulated interactions for init-state: " 104 <<
"No EventGeneratorList was loaded. Will not build XSecAlgorithmMap";
123 <<
"Querying [" << evgen->
Id().
Key() <<
"] for its InteractionList";
139 for(intliter = ilst->begin(); intliter != ilst->end(); ++intliter)
147 <<
"\nLinking: " << code
148 <<
"\n --> with xsec algorithm: " << xsec_alg->
Id().
Key();
150 map<string, const XSecAlgorithmI *>::value_type(code,xsec_alg));
162 LOG(
"XSecAlgMap",
pWARN) <<
"Null interaction!!";
169 if(xsec_alg_iter == this->
end()) {
171 <<
"No XSecAlgorithmI was found for interaction: \n" <<
code;
188 stream<<
"Printing 'interaction' -> 'xsec algorithm' associations" <<
endl;
190 for(iter = this->
begin(); iter != this->
end(); ++iter) {
191 string code = iter->first;
194 stream << code <<
" -> " << alg->
Id().
Key() <<
endl;
196 stream << code <<
" -> **** NULL XSEC ALGORITHM ****" <<
endl;
end
while True: pbar.update(maxval-len(onlies[E][S])) #print iS, "/", len(onlies[E][S]) found = False for...
Cross Section Calculation Interface.
XSecAlgorithmMap & operator=(const XSecAlgorithmMap &xsmap)
THE MAIN GENIE PROJECT NAMESPACE
const InteractionList & GetInteractionList(void) const
Defines the InteractionListGeneratorI interface. Concrete implementations of this interface generate ...
virtual const InteractionListGeneratorI * IntListGenerator(void) const =0
const EventGeneratorList * fEventGeneratorList
Defines the EventGeneratorI interface.
string AsString(void) const
void Copy(const XSecAlgorithmMap &xsmap)
void BuildMap(const InitialState &init_state)
Summary information for an interaction.
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
An Interaction -> XSecAlgorithmI associative container. The container is being built for the loaded E...
const XSecAlgorithmI * FindXSecAlgorithm(const Interaction *in) const
void Copy(const InitialState &init_state)
void UseGeneratorList(const EventGeneratorList *list)
string AsString(void) const
CodeOutputInterface * code
void Print(ostream &stream) const
virtual InteractionList * CreateInteractionList(const InitialState &init) const =0
virtual const XSecAlgorithmI * CrossSectionAlg(void) const =0
virtual const AlgId & Id(void) const
Get algorithm ID.
void Append(const InteractionList &intl)
ostream & operator<<(ostream &stream, const AlgConfigPool &config_pool)
InitialState * fInitState
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.
#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.
QTextStream & endl(QTextStream &s)
Initial State information.