]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSTPArrayFit.cxx
add few more optional debug prints, move the check of the HIJING origin of the partic...
[u/mrichter/AliRoot.git] / ITS / AliITSTPArrayFit.cxx
index e25dd6bde0df3f4ef6700fcf7fcc838c515a0f6a..9f40b2b47c604b0fe9f86596a200d2f0cf07ae89 100644 (file)
@@ -707,7 +707,7 @@ void AliITSTPArrayFit::GetDResDParams(Double_t *dXYZdP, const Double_t *xyz, con
 
 
 //____________________________________________________
-void AliITSTPArrayFit::GetDResDPos(Double_t *dXYZdP, const Double_t *xyz, const Double_t *covI,Double_t sclCovI) 
+void AliITSTPArrayFit::GetDResDPos(Double_t *dXYZdP, const Double_t *xyz, const Double_t *covI,Double_t sclCovI) const
 {
   // get residuals detivative over the point position for the point with least weighted distance to the point
   //
@@ -1199,7 +1199,7 @@ Bool_t AliITSTPArrayFit::FitHelixCrude(Int_t extQ)
     Double_t normS[3];
     //
     // Positive t-params: along the track direction for negative track, against for positive
-    Double_t pcur = ptot, ecurr = etot;
+    //   Double_t pcur = ptot, ecurr = etot;
     for (int ip=fFirstPosT;ip<fNElsPnt;ip++) {
       int tID = fElsId[ip];
       Double_t t = fCurT[ tID ];
@@ -1216,8 +1216,8 @@ Bool_t AliITSTPArrayFit::FitHelixCrude(Int_t extQ)
     }
     //
     // negaive t-params: against the track direction for negative track, along for positive
-    pcur  = ptot;
-    ecurr = etot;
+    //    pcur  = ptot;
+    //    ecurr = etot;
     for (int ip=fFirstPosT;ip--;) {
       int tID = fElsId[ip];
       Double_t t = fCurT[ tID ];
@@ -1862,7 +1862,7 @@ void AliITSTPArrayFit::BuildMaterialLUT(Int_t ntri)
     for (int i=ntri;i--;) {
       //
       if (active) {
-       int ssID = sID -1 - AliGeomManager::LayerSize(actLrID)*gRandom->Rndm();
+       int ssID = sID -1 - (int)(AliGeomManager::LayerSize(actLrID)*gRandom->Rndm());
        pg1[0] = pg2[0] = (gRandom->Rndm()-0.5)*tpars[0] + shift; // local X
        pg2[0] -= 2*shift;
        pg1[1] = tpars[2];