From: cblume Date: Fri, 23 Apr 2010 08:09:41 +0000 (+0000) Subject: Fix switch for TR simulation X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=1315812e30ac4c71accc20cff329763a97f71220;p=u%2Fmrichter%2FAliRoot.git Fix switch for TR simulation --- diff --git a/TRD/AliTRDv1.cxx b/TRD/AliTRDv1.cxx index fcfa91679c8..6caf081ca93 100644 --- a/TRD/AliTRDv1.cxx +++ b/TRD/AliTRDv1.cxx @@ -44,7 +44,7 @@ ClassImp(AliTRDv1) //_____________________________________________________________________________ AliTRDv1::AliTRDv1() :AliTRD() - ,fTRon(kFALSE) + ,fTRon(kTRUE) ,fTR(NULL) ,fStepSize(0) ,fWion(0) @@ -475,7 +475,8 @@ void AliTRDv1::StepManager() // 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); } diff --git a/TRD/AliTRDv1.h b/TRD/AliTRDv1.h index dd5b40524c0..aa725db5d06 100644 --- a/TRD/AliTRDv1.h +++ b/TRD/AliTRDv1.h @@ -43,7 +43,7 @@ class AliTRDv1 : public AliTRD { 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; }