22int 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);
47 JManager<int, TH1D> zmap(
new TH1D(
"E[%]", NULL, 500, -0.8, 9.0));
49 const int buffer[] = {
51 TRACK_TYPE_NEUTRAL_PION,
54 TRACK_TYPE_ANTIELECTRON,
55 TRACK_TYPE_CHARGED_PION_PLUS,
56 TRACK_TYPE_CHARGED_PION_MINUS,
61 for (
const int *type = buffer; *type != -1; ++type) {
62 Y[*type] = epsilon * (type - buffer);
65 for (
int i = 1; i <= zmap->GetNbinsX(); ++i) {
67 const double x = zmap->GetBinCenter(i);
68 const double E = pow(10.0, x);
70 for (
const int *type = buffer; *type != -1; ++type) {
71 zmap[*type]->SetBinContent(i, pythia(*type, E)/E + Y[*type]);