]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliCluster.cxx
Fixes for Coverity warnings - M. Sitta
[u/mrichter/AliRoot.git] / STEER / AliCluster.cxx
index 4a68037eb1e1cfa3eaef6fa789f726c7ce6c3b8b..b9a3b738ba6011c613f9add895d1b8c53d32d732 100644 (file)
@@ -144,6 +144,19 @@ AliCluster & AliCluster::operator=(const AliCluster& cluster)
   return *this;
 }
 
+//______________________________________________________________________________
+void AliCluster::Print(Option_t* /*option*/) const
+{
+  // Print cluster information.
+  
+  printf("AliCluster pos=(%.4f, %.4f, %.4f), s_y2=%f, s_z2=%f, s_yz=%f, vol=%hu\n",
+         fX, fY, fZ, fSigmaY2, fSigmaZ2, fSigmaYZ, fVolumeId);
+  Float_t g[3];
+  if (GetGlobalXYZ(g))
+    printf("    global_pos=(%.4f, %.4f, %.4f)\n", g[0], g[1], g[2]);
+
+}
+
 //______________________________________________________________________________
 Bool_t AliCluster::GetGlobalXYZ(Float_t xyz[3]) const
 {