9 #include <flowafterburner/flowAfterburner.h>
18 #include <CLHEP/Random/MTwistEngine.h>
19 #include <CLHEP/Random/RandomEngine.h>
30 namespace HepMC {
class GenEvent; }
32 CLHEP::HepRandomEngine *
engine =
nullptr;
34 set<string>
algoset = {
"MINBIAS",
"MINBIAS_V2_ONLY",
"CUSTOM"};
41 , algorithmName(
"MINBIAS")
70 PHHepMCGenEventMap *genevtmap = findNode::getClass<PHHepMCGenEventMap>(topNode,
"PHHepMCGenEventMap");
75 HepMC::GenEvent *evt = genevt->
getEvent();
78 cout <<
PHWHERE <<
" no evt pointer under HEPMC Node found" << endl;
83 cout <<
"calling flowAfterburner with algorithm "
86 <<
", maxpt: " <<
maxpt << endl;
112 engine->saveStatus(savefile.c_str());
115 cout <<
PHWHERE <<
" Random engine not started yet" << endl;
122 engine->restoreStatus(savefile.c_str());
125 cout <<
PHWHERE <<
" Random engine not started yet" << endl;
130 cout <<
"FlowAfterBurner parameters:" << endl;
132 cout <<
"mineta: " <<
mineta <<
", maxeta: " <<
maxeta << endl;
133 cout <<
"minpt: " <<
minpt <<
", maxpt: " <<
maxpt << endl;
134 cout <<
"Implemented algorithms: MINBIAS (default), MINBIAS_V2_ONLY, CUSTOM"
148 cout <<
"algorithm " << name <<
" not in list of possible algorithms" << endl;
149 cout <<
"possible algorithms are" << endl;