}
// Go to the local coordinate system:
- // loc[0] - row direction in amplification or driftvolume
- // loc[1] - col direction in amplification or driftvolume
+ // loc[0] - col direction in amplification or driftvolume
+ // loc[1] - row direction in amplification or driftvolume
// loc[2] - time direction in amplification or driftvolume
gGeoManager->MasterToLocal(pos,loc);
if (inDrift) {
// Apply E x B effects (depends on drift direction)
if (commonParam->ExBOn()) {
- if (!(ExB(driftvelocity,driftlength,locR))) {
+ if (!(ExB(driftvelocity,driftlength,locC))) {
continue;
}
}
Float_t driftSqrt = TMath::Sqrt(absdriftlength);
Float_t sigmaT = driftSqrt * fDiffusionT;
Float_t sigmaL = driftSqrt * fDiffusionL;
- lRow = gRandom->Gaus(lRow ,sigmaT * GetLorentzFactor(vdrift));
- lCol = gRandom->Gaus(lCol ,sigmaT);
+ lRow = gRandom->Gaus(lRow ,sigmaT);
+ lCol = gRandom->Gaus(lCol ,sigmaT * GetLorentzFactor(vdrift));
lTime = gRandom->Gaus(lTime,sigmaL * GetLorentzFactor(vdrift));
return 1;
}
//_____________________________________________________________________________
-Int_t AliTRDdigitizer::ExB(Float_t vdrift, Double_t driftlength, Double_t &lRow)
+Int_t AliTRDdigitizer::ExB(Float_t vdrift, Double_t driftlength, Double_t &lCol)
{
//
// Applies E x B effects to the position of a single electron.
RecalcDiffusion(vdrift);
- lRow = lRow + fOmegaTau * driftlength;
+ lCol = lCol + fOmegaTau * driftlength;
return 1;