// Loop through the chamber and find the maxima
for ( row = 0; row < nRowMax; row++) {
- // for ( col = 2; col < nColMax; col++) {
- for ( col = 4; col < nColMax-2; col++) {
+ for ( col = 2; col < nColMax; col++) {
+ //for ( col = 4; col < nColMax-2; col++) {
for (time = 0; time < nTimeTotal; time++) {
Int_t signalL = TMath::Abs(digits->GetDataUnchecked(row,col ,time));
// }
// Look for the maximum
if (signalM >= maxThresh) {
- if ( (signalL<=signalM) && (signalR<=signalM) && (signalL+signalR)>sigThresh ) {
+ if ( (TMath::Abs(signalL)<=signalM) && (TMath::Abs(signalR)<=signalM) &&
+ (TMath::Abs(signalL)+TMath::Abs(signalR))>sigThresh ) {
// Maximum found, mark the position by a negative signal
digits->SetDataUnchecked(row,col-1,time,-signalM);
}
Double_t check = fPar->LUTposition(iplan,clusterSignal[0]
,clusterSignal[1]
,clusterSignal[2]);
- // clusterPads[1] = check;
+ // Float_t diff = clusterPads[1] - check;
}
,clusterCharge
,clusterTracks
,clusterSig
- ,iType);
+ ,iType,clusterPads[1]);
}
}
Double_t rowOffset = padPlane->GetPadRowOffset(rowE,xyz[2]);
// The pad column (rphi-direction)
- Int_t colE = padPlane->GetPadColNumber(xyz[1],rowOffset);
- if (colE < 0) continue;
- Double_t colOffset = padPlane->GetPadColOffset(colE,xyz[1]);
+ Float_t offsetTilt = padPlane->GetTiltOffset(rowOffset); // MI change
+ Int_t colE = padPlane->GetPadColNumber(xyz[1]+offsetTilt,rowOffset);
+ if (colE < 0) continue;
+ Double_t colOffset = padPlane->GetPadColOffset(colE,xyz[1]+offsetTilt);
// Convert the position to drift time, using either constant drift velocity or
// time structure of drift cells (non-isochronity, GARFIELD calculation).
//
// Returns correction factor for tilted pads geometry
//
- AliTRDpadPlane *padPlane = fPar->GetPadPlane(0,0);
- Double_t h01 = sin(TMath::Pi() / 180.0 * padPlane->GetTiltingAngle());
- //Double_t h01 = sin(TMath::Pi() / 180.0 * fPar->GetTiltingAngle());
Int_t det = c->GetDetector();
Int_t plane = fGeom->GetPlane(det);
-
- //if((plane == 1) || (plane == 3) || (plane == 5)) h01=-h01;
- if((plane == 0) || (plane == 2) || (plane == 4)) h01=-h01;
+ AliTRDpadPlane *padPlane = fPar->GetPadPlane(plane,0);
+ Double_t h01 = TMath::Tan(-TMath::Pi() / 180.0 * padPlane->GetTiltingAngle());
if(fNoTilt) h01 = 0;
-
return h01;
}