]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSNeuralPoint.cxx
warning on gcc 3.2.3 removed
[u/mrichter/AliRoot.git] / ITS / AliITSNeuralPoint.cxx
index 6e1d0345e51f15c099d995e3d75ade17b784625f..f126884f951bda7b9c1ff280df09d9a2b6eae9e6 100644 (file)
@@ -1,16 +1,17 @@
-// AliITSneuralPoint
-//
-// A class which resumes the information of ITS clusters
-// in the global reference frame.
-// Author: A. Pulvirenti
-
+///////////////////////////////////////////////////////////////
+// AliITSneuralPoint                                         //
+//                                                           //
+// A class which resumes the information of ITS clusters     //
+// in the global reference frame.                            //
+// Author: A. Pulvirenti                                     //
+///////////////////////////////////////////////////////////////
 //#include <stdlib.h>
 //#include <Riostream.h>
 
 #include <TString.h>
 
 #include "AliITSRecPoint.h"
-#include "AliITSclusterV2.h"
+#include "AliITSRecPoint.h"
 #include "AliITSgeom.h"
 #include "AliITSgeomMatrix.h"
 
@@ -70,25 +71,25 @@ AliITSNeuralPoint::AliITSNeuralPoint(AliITSRecPoint *rp, AliITSgeomMatrix *gm)
        }
        
        // local to global conversions of coords
-       locPos[0] = rp->fX;
+       locPos[0] = rp->GetDetLocalX();
        locPos[1] = 0.0;
-       locPos[2] = rp->fZ;
+       locPos[2] = rp->GetDetLocalZ();
        gm->LtoGPosition(locPos, globPos);
        fX = globPos[0];
        fY = globPos[1];
        fZ = globPos[2];
 
        // local to global conversions of sigmas
-       locErr[0][0] = rp->fSigmaX2;
-       locErr[2][2] = rp->fSigmaZ2;
+       locErr[0][0] = rp->GetSigmaDetLocX2();
+       locErr[2][2] = rp->GetSigmaZ2();
        gm->LtoGPositionError(locErr, globErr);
-       for (i = 0; i < 3; i++) fLabel[i] = rp->fTracks[i];
+       for (i = 0; i < 3; i++) fLabel[i] = rp->GetLabel(i);
        fEX = TMath::Sqrt(globErr[0][0]);
        fEY = TMath::Sqrt(globErr[1][1]);
        fEZ = TMath::Sqrt(globErr[2][2]);
 
        // copy of other data-members
-       fCharge = rp->fQ;
+       fCharge = rp->GetQ();
        fLayer = 0;
        fIndex = 0;
        fModule = 0;
@@ -98,11 +99,11 @@ AliITSNeuralPoint::AliITSNeuralPoint(AliITSRecPoint *rp, AliITSgeomMatrix *gm)
 //-------------------------------------------------------------------------------------------------
 //
 AliITSNeuralPoint::AliITSNeuralPoint
-(AliITSclusterV2 *rp, AliITSgeom *geom, Short_t module, Short_t index)
+(AliITSRecPoint *rp, AliITSgeom *geom, Short_t module, Short_t index)
 {
        // Conversion constructor.
-       // Accepts a AliITSclusterV2 and an AliITSgeom,
-       // and converts the local coord of the AliITSclusterV2 object into global
+       // Accepts a AliITSRecPoint and an AliITSgeom,
+       // and converts the local coord of the AliITSRecPoint object into global
        
        Int_t mod = (Int_t)module, lay, lad, det;
        fModule = module;
@@ -204,7 +205,7 @@ Bool_t AliITSNeuralPoint::HasID(Int_t ID) const
 //
 //------------------------------------------------------------------------------------------------------
 //
-Int_t* AliITSNeuralPoint::SharedID(AliITSNeuralPoint *p)
+Int_t* AliITSNeuralPoint::SharedID(AliITSNeuralPoint *p) const
 {
 // Checks if there is a GEANT track owning both
 // <this> and the recpoint in the argument