Updates in order to enable the '2D' PID for the TRD developed by Daniel Lohner.
[u/mrichter/AliRoot.git] / ANALYSIS / TenderSupplies / AliTRDTenderSupply.cxx
index d4b3763..0f798f7 100644 (file)
@@ -47,7 +47,7 @@
 #include <AliESDInputHandler.h>
 #include <AliAnalysisManager.h>
 #include <AliTrackerBase.h>
-#include <AliTRDPIDReference.h>
+#include <AliTRDPIDResponseObject.h>
 #include <AliTRDPIDResponse.h>
 #include "AliTRDCalChamberStatus.h"
 #include <AliTender.h>
@@ -276,15 +276,15 @@ void AliTRDTenderSupply::LoadReferences(){
     // Get new references
     TIter refs(arr);
     TObject *o = NULL;
-    AliTRDPIDReference *ref = NULL;
+    AliTRDPIDResponseObject *ref = NULL;
     while((o = refs())){
-      if(!TString(o->IsA()->GetName()).CompareTo("AliTRDPIDReference")){
-        ref = dynamic_cast<AliTRDPIDReference *>(o);
+      if(!TString(o->IsA()->GetName()).CompareTo("AliTRDPIDResponseObject")){
+        ref = dynamic_cast<AliTRDPIDResponseObject *>(o);
         break;
       }
     }
     if(ref){
-      fESDpid->GetTRDResponse().Load(ref);
+      fESDpid->GetTRDResponse().SetPIDResponseObject(ref);
       fHasReferences = kTRUE;
       AliDebug(1, "Reference distributions loaded into the PID Response");
     } else {