Support for AliPIDResponse handling (A.Pulvirenti)
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 29 Mar 2011 06:47:22 +0000 (06:47 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 29 Mar 2011 06:47:22 +0000 (06:47 +0000)
ANALYSIS/AliMultiInputEventHandler.cxx
ANALYSIS/AliMultiInputEventHandler.h

index fd71ac0..ff3ed28 100644 (file)
@@ -262,3 +262,26 @@ UInt_t  AliMultiInputEventHandler::IsEventSelected()
   
   return fIsSelectedResult;
 }
+
+//______________________________________________________________________________
+AliPIDResponse* AliMultiInputEventHandler::GetPIDResponse()
+{
+   // retrieve PID response
+   
+   AliInputEventHandler *firstIH = dynamic_cast<AliInputEventHandler*> (GetFirstInputEventHandler());
+   if (firstIH) {
+      return firstIH->GetPIDResponse();
+   }
+   
+   return 0x0;
+}
+   
+//______________________________________________________________________________
+void AliMultiInputEventHandler::CreatePIDResponse(Bool_t isMC)
+{
+   // create PID response
+   AliInputEventHandler *firstIH = dynamic_cast<AliInputEventHandler*> (GetFirstInputEventHandler());
+   if (firstIH) {
+      firstIH->CreatePIDResponse(isMC);
+   }
+}
index e4e5c96..c592f64 100644 (file)
@@ -41,6 +41,10 @@ public:
    AliMultiInputEventHandler  *GetFirstMultiInputHandler();
 
    Option_t                   *GetDataType() const;
+   
+   //PID response
+   virtual AliPIDResponse* GetPIDResponse();
+   virtual void CreatePIDResponse(Bool_t isMC);
 
 protected: