//_____________________________________________________________________________
AliTRDv1::AliTRDv1()
:AliTRD()
- ,fTRon(kFALSE)
+ ,fTRon(kTRUE)
,fTR(NULL)
,fStepSize(0)
,fWion(0)
// Set the maximum step size to a very large number for all
// neutral particles and those outside the driftvolume
- gMC->SetMaxStep(kBig);
+ if (!fPrimaryIonisation) gMC->SetMaxStep(kBig);
// If not charged track or already stopped or disappeared, just return.
if ((!gMC->TrackCharge()) ||
// Create the hits from TR photons if electron/positron is
// entering the drift volume
- if ((fTR) &&
+ if ((fTR) &&
+ (fTRon) &&
(TMath::Abs(gMC->TrackPid()) == kPdgElectron)) {
CreateTRhit(det);
}
if ((gMC->Etot() - gMC->TrackMass()) < kEkinMinStep) {
return;
}
- gMC->SetMaxStep(fStepSize);
+ if (!fPrimaryIonisation) gMC->SetMaxStep(fStepSize);
}