]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITShit.cxx
Coverity fix
[u/mrichter/AliRoot.git] / ITS / AliITShit.cxx
index a40ae04ae8b82cf6b7368c9552d3a6b80ee4a214..f1b371eabb508bfb8457161acf1f3d5a472f5a74 100644 (file)
@@ -25,8 +25,9 @@
 #include "AliITSgeom.h"
 #include "AliITShit.h"
 #include "AliMC.h"
+#include "AliStack.h"
 
-
+using std::ios;
 ClassImp(AliITShit)
 ////////////////////////////////////////////////////////////////////////
 // Version: 0
@@ -431,7 +432,7 @@ void AliITShit::GetPositionL(Float_t &x,Float_t &y,Float_t &z,Float_t &tof){
         y = l[1];
         z = l[2];
     } else {
-        Error("AliITShit","NULL pointer to the geometry! return smth else",gm);
+        Error("AliITShit","NULL pointer to the geometry! return smth else");
         // AliITSv7 - SDD case
         x=fX;
         y=fY;
@@ -467,7 +468,7 @@ void AliITShit::GetPositionL0(Double_t &x,Double_t &y,Double_t &z,
         y = l[1];
         z = l[2];
     } else {
-        Error("AliITShit","NULL pointer to the geometry! return smth else",gm);
+        Error("AliITShit","NULL pointer to the geometry! return smth else");
         x=fx0;
         y=fy0;
         z=fz0;
@@ -475,37 +476,7 @@ void AliITShit::GetPositionL0(Double_t &x,Double_t &y,Double_t &z,
     tof = ft0;
     return;
 }
-//______________________________________________________________________
-void AliITShit::GetMomentumL(Float_t &px,Float_t &py,Float_t &pz){
-    //     Returns the momentum of this hit in the local coordinates of this
-    // module, and in the units of the Monte Carlo.
-    // Inputs:
-    //   none.
-    // Outputs:
-    //   Float_t px   Track x momentum at this hit [GeV/c]
-    //   Float_t py   Track y momentum at this hit [GeV/c]
-    //   Float_t pz   Track z momentum at this hit [GeV/c]
-    // Return:
-    //   none.
-    AliITSgeom *gm = ((AliITS*)gAlice->GetDetector("ITS"))->GetITSgeom();
-    Float_t g[3],l[3];
 
-    g[0] = fPx;
-    g[1] = fPy;
-    g[2] = fPz;
-    if (gm) {
-        gm->GtoLMomentum(fModule,g,l);
-        px = l[0];
-        py = l[1];
-        pz = l[2];
-    } else {
-        Error("AliITShit","NULL pointer to the geometry! return smth else",gm);
-        px=fPx;
-        py=fPy;
-        pz=fPz;
-    } // end if
-    return;
-}
 //______________________________________________________________________
 TParticle * AliITShit::GetParticle() const {
     //     Returns the pointer to the TParticle for the particle that created