]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSRecPoint.cxx
Updates to macros for displaying SDD calibration parameters from OCDB (F.Prino)
[u/mrichter/AliRoot.git] / ITS / AliITSRecPoint.cxx
index abd86e619cab7996fd85742e347fa07fbdac11c0..b429fd26a3dfcdb54bf5f1c0f06880fd2a2a3405 100644 (file)
@@ -30,7 +30,7 @@
 //  "trackingV2".
 ///////////////////////////////////////////////////////////////////////////////
 
-
+#include <TGeoMatrix.h>
 #include "AliITSRecPoint.h"
 #include "AliAlignObj.h"
 
@@ -48,14 +48,15 @@ fNz(0),
 fNy(0),
 fChargeRatio(0),
 fType(0),
-fDeltaProb(0)
+fDeltaProb(0),
+fDriftTime(0.)
 {
     // default constructor
 }
 
 //________________________________________________________________________
 AliITSRecPoint::AliITSRecPoint(Int_t *lab,Float_t *hit, Int_t *info, Bool_t local):
-AliCluster(AliAlignObj::LayerToVolUID((info[2]+AliAlignObj::kSPD1),lab[3]&0x3FF),hit,0,0,lab),
+AliCluster(AliGeomManager::LayerToVolUID((info[2]+AliGeomManager::kSPD1),lab[3]&0x3FF),hit,0,0,lab),
 fXloc(0),
 fZloc(0),
 fdEdX(0),
@@ -66,7 +67,8 @@ fNz(info[1]),
 fNy(info[0]),
 fChargeRatio(0),
 fType(0),
-fDeltaProb(0)
+fDeltaProb(0),
+fDriftTime(0.)
 {
   //standard constructor used in AliITSClusterFinderV2
 
@@ -118,7 +120,8 @@ fNz(pt.fNz),
 fNy(pt.fNy),
 fChargeRatio(pt.fChargeRatio),
 fType(pt.fType),
-fDeltaProb(pt.fDeltaProb)
+fDeltaProb(pt.fDeltaProb),
+fDriftTime(pt.fDriftTime)
 {
   //Copy constructor
 
@@ -164,7 +167,7 @@ void AliITSRecPoint::Print(ostream *os){
     *os << fXloc << " " << fZloc << " " << fdEdX << " ";
     fmt = os->setf(ios::fixed); // every fixed
     *os << fIndex <<" " << fQ << " "<<fLayer <<" "<<fNz<<" "<<fNy<<" ";
-    *os << fChargeRatio<<" " << fType << " " << fDeltaProb;
+    *os << fChargeRatio<<" " << fType << " " << fDeltaProb << " " << fDriftTime;
     os->flags(fmt); // reset back to old formating.
     return;
 }
@@ -186,7 +189,7 @@ void AliITSRecPoint::Read(istream *is){
     SetVolumeId(lab[0]);// fIsMisalinged = mis;
     *is >> fXloc >> fZloc >> fdEdX;
     *is >> fIndex >> fQ >> fLayer >> fNz >> fNy >> fChargeRatio >> fType;
-    *is >> fDeltaProb;
+    *is >> fDeltaProb >> fDriftTime;
 
     return;
 }