]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Use input handler after initialization by parent class (M.Vala)
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 10 Feb 2011 07:12:05 +0000 (07:12 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 10 Feb 2011 07:12:05 +0000 (07:12 +0000)
ANALYSIS/Tender/AliTender.cxx

index 62b75a05df0689e54de2d13538768512d37b2026..c985362a8dc628e584284569c61b2500f0703e93 100644 (file)
@@ -91,10 +91,7 @@ void AliTender::ConnectInputData(Option_t* option)
 // Connect the input data, create CDB manager.
   if (fDebug > 1) Printf("AliTender::ConnectInputData()\n");
   AliAnalysisTaskSE::ConnectInputData(option);
-  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
-  if (!mgr) AliFatal("No tender without an analysis manager");
-  fESDhandler = dynamic_cast<AliESDInputHandler *>(mgr->GetInputEventHandler());
-    
+  fESDhandler = dynamic_cast<AliESDInputHandler *>(fInputHandler);
   if (fESDhandler) {
      fESD = fESDhandler->GetEvent();
   } else {
@@ -121,9 +118,7 @@ void AliTender::UserCreateOutputObjects()
 {
 // Nothing for the moment, but we may need ESD event replication here.
   if (fDebug > 1) Printf("AliTender::CreateOutputObjects()\n");
-  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
-  if (!mgr) AliFatal("No tender without an analysis manager");
-  fESDhandler = dynamic_cast<AliESDInputHandler *>(mgr->GetInputEventHandler());
+  fESDhandler = dynamic_cast<AliESDInputHandler *>(fInputHandler);
   if (fESDhandler && TObject::TestBit(kCheckEventSelection)) {
      fESDhandler->SetUserCallSelectionMask(kTRUE);
      Info("UserCreateOutputObjects","The TENDER will check the event selection. Make sure you add the tender as FIRST wagon!");