4 #include "Math/Vector3D.h"
16 ROOT::Math::DisplacementVector3D<ROOT::Math::Cartesian3D<double>, ROOT::Math::DefaultCoordinateSystemTag> clusterPos(
17 superClusterRef_->position().X(), superClusterRef_->position().Y(), superClusterRef_->position().Z());
19 clusterPos = clusterPos.Unit();
20 double E = superClusterRef_->energy();
22 double ET =
sqrt(clusterPos.X() * clusterPos.X() + clusterPos.Y() * clusterPos.Y());
24 out << setprecision(3);
25 out << setiosflags(ios::right);
26 out << setiosflags(ios::fixed);
27 out << setw(4) <<
", ET =" << setw(7) <<
ET;
28 out << setw(4) <<
", E =" << setw(7) << E;
29 out <<
" (eta,phi,z)= (";
30 out << superClusterRef_->position().Eta() <<
",";
31 out << superClusterRef_->position().Phi() <<
",";
32 out << superClusterRef_->position().Z() <<
")";
33 out << resetiosflags(ios::right | ios::fixed);
void Dump(std::ostream &out=std::cout, const char *tab=" ") const override
print the object inside the element