]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSRecPoint.cxx
Added check for wrong records in the config file (R. Shaoyan)
[u/mrichter/AliRoot.git] / ITS / AliITSRecPoint.cxx
index 3ef645174e633b5f960198d1e1a287476b123dac..9c33935303efbc344ea468315281de31fbc8c8e8 100644 (file)
@@ -48,7 +48,8 @@ fNz(0),
 fNy(0),
 fChargeRatio(0),
 fType(0),
-fDeltaProb(0)
+fDeltaProb(0),
+fDriftTime(0.)
 {
     // default constructor
 }
@@ -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
 
@@ -87,8 +89,12 @@ fDeltaProb(0)
       fdEdX=fQ*1e-6;
       break;
     case 4:
+      fdEdX=fQ*2.16;
+      SetSigmaYZ(hit[5]);
     case 5:
       fdEdX=fQ*2.16;
+      hit[5]=-hit[5];
+      SetSigmaYZ(hit[5]);
       break;
     default:
       AliError(Form("Wrong ITS layer %d (0 -> 5)",fLayer));
@@ -118,7 +124,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 +171,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 +193,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;
 }