Undefined variable problem corrected.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 6 May 2010 11:27:24 +0000 (11:27 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 6 May 2010 11:27:24 +0000 (11:27 +0000)
(M. van Leeuwen)

STEER/AliAODpidUtil.cxx
STEER/AliAODpidUtil.h

index 3d57da6..81ceffc 100644 (file)
@@ -197,7 +197,6 @@ void AliAODpidUtil::MakeTRDPID(AliAODTrack *track,Double_t *p) const
   Float_t *mom=pidObj->GetTRDmomentum();
   Double_t *dedx=pidObj->GetTRDsignal();
   Bool_t norm=kTRUE;
-  AliTRDPIDResponse *trdResponse;
-  trdResponse->GetResponse(pidObj->GetTRDnSlices(),dedx,mom,p,norm);
+  fTRDResponse.GetResponse(pidObj->GetTRDnSlices(),dedx,mom,p,norm);
   return;
 }
index f8c4e97..b3e01e6 100644 (file)
@@ -24,7 +24,7 @@ class AliAODEvent;
 
 class AliAODpidUtil {
 public:
-  AliAODpidUtil(): fRange(5.), fTPCResponse(), fITSResponse(), fTOFResponse(){;}
+  AliAODpidUtil(): fRange(5.), fTPCResponse(), fITSResponse(), fTOFResponse(), fTRDResponse() {;}
   virtual ~AliAODpidUtil() {;}
 
 
@@ -48,8 +48,7 @@ private:
   AliTPCPIDResponse fTPCResponse;
   AliITSPIDResponse fITSResponse;
   AliTOFPIDResponse fTOFResponse;
-  // AliHMPIDPIDResponse fHMPIDResponse;
- // AliTRDPIDResponse fTRDResponse;
+  AliTRDPIDResponse fTRDResponse;
 
   ClassDef(AliAODpidUtil,1)  // PID calculation class
 };