3 #include "StGammaTower.h"
4 #include "StBarrelEmcCluster.h"
11 out <<
"Energy [GeV]:\t" << cluster.energy() <<
'\n';
12 out <<
"Transverse energy [GeV]:\t" << cluster.momentum().Pt() <<
'\n';
13 out <<
"Eta:\t" << cluster.momentum().Eta() <<
'\n';
14 out <<
"Phi [radians]:\t" << cluster.momentum().Phi() <<
'\n';
15 out <<
"Position [cm]: [ x = " << cluster.position().x() <<
", y = "
16 << cluster.position().y() <<
", z = " << cluster.position().z() <<
" ]\n";
19 for (
int dphi = 1; dphi >= -1; --dphi)
22 out <<
"+------+------+------+\n";
25 for (
int deta = -1; deta <= 1; ++deta)
28 int id = tower ? tower->id : 0;
29 out << setw(4) <<
id <<
" | ";
36 out <<
"+------+------+------+\n";
38 out <<
"Energy [GeV]:\n";
39 for (
int dphi = 1; dphi >= -1; --dphi)
42 out <<
"+--------+--------+--------+\n";
45 for (
int deta = -1; deta <= 1; ++deta)
49 float energy = tower ? tower->energy : 0;
50 out << fixed << setprecision(3) << setw(6) << energy <<
" | ";
56 out <<
"+--------+--------+--------+\n";