]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fix switch for TR simulation
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 23 Apr 2010 08:09:41 +0000 (08:09 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 23 Apr 2010 08:09:41 +0000 (08:09 +0000)
TRD/AliTRDv1.cxx
TRD/AliTRDv1.h

index fcfa91679c88a2186c3ea9fddb7278c9fd71c85a..6caf081ca93ded8eeff857055c35184a6940730b 100644 (file)
@@ -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);
     }
index dd5b40524c0bea960ded2b41acb288ae9cb15a2c..aa725db5d06f69fc7cb52cd031d0467494d41542 100644 (file)
@@ -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;    }