//____________________________________________________
-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
//
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 ];
}
//
// 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 ];
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];