]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ANALYSIS/AliMultiInputEventHandler.cxx
Filling of HighGain flag added
[u/mrichter/AliRoot.git] / ANALYSIS / AliMultiInputEventHandler.cxx
index 5ac395ad3259fb4b4bd01a7f4fa0b6bb44f6907b..ff3ed28b4b6de0909927acb2158a83bbd10377f7 100644 (file)
@@ -104,6 +104,9 @@ Bool_t AliMultiInputEventHandler::Init(TTree *tree, Option_t *opt)
    AliInputEventHandler *eh = 0;
    TObjArrayIter next(&fInputHandlers);
    while ((eh = (AliInputEventHandler *) next())) {
+      // using mixing input hadnler from Base class
+      // for me fParentHandler would be better name
+      eh->SetParentHandler(this);
       eh->Init(tree, fAnalysisType);
    }
    AliDebug(AliLog::kDebug + 5, Form("->"));
@@ -246,3 +249,39 @@ Option_t *AliMultiInputEventHandler::GetDataType() const
    // Returns handled data type.
    return gCurrentMultiDataType;
 }
+
+//______________________________________________________________________________
+UInt_t  AliMultiInputEventHandler::IsEventSelected() 
+{
+  // returns if event is selected
+  
+  AliInputEventHandler *firstIH = dynamic_cast<AliInputEventHandler*> (GetFirstInputEventHandler());
+  if (firstIH) {
+    return firstIH->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);
+   }
+}