22 int main(
int argc,
char **argv)
33 JParser<> zap(
"Auxiliary program histogram plot EM-equivalent energy for hadrons."\
34 "\nNote that the results have a small offset to effectively be visualised.");
42 catch(
const exception &error) {
43 FATAL(error.what() << endl);
50 const int buffer[] = {
62 for (
const int *type = buffer; *type != -1; ++type) {
63 Y[*type] = epsilon * (type - buffer);
66 for (
int i = 1; i <= zmap->GetNbinsX(); ++i) {
68 const double x = zmap->GetBinCenter(i);
69 const double E = pow(10.0, x);
71 for (
const int *type = buffer; *type != -1; ++type) {
72 zmap[*type]->SetBinContent(i,
pythia(*type, E)/E + Y[*type]);