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