//_____________________________________________________________________________
AliTRDv1::AliTRDv1()
:AliTRD()
- ,fTRon(kFALSE)
+ ,fTRon(kTRUE)
,fTR(NULL)
,fStepSize(0)
,fWion(0)
// 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);
}
virtual void StepManager();
void SetStepSize(Double_t s) { fStepSize = s; }
- void SetTR(Bool_t) { fTRon = kTRUE; }
+ void SetTR(Bool_t tr) { fTRon = tr; }
Bool_t GetTR() const { return fTRon; }
AliTRDsimTR *GetTRDsim() const { return fTR; }