]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/SampleLib/AliHLTAgentSample.cxx
fix a stupid mistake from previous commit
[u/mrichter/AliRoot.git] / HLT / SampleLib / AliHLTAgentSample.cxx
index 63fca1251d890be3140b5bddd9a558500ab3f47a..c0a10578c8ad6eeed3aaf69f74ae838e5ddea86d 100644 (file)
@@ -1,15 +1,35 @@
 // @(#) $Id$
 
+/**************************************************************************
+ * This file is property of and copyright by the ALICE HLT Project        * 
+ * ALICE Experiment at CERN, All rights reserved.                         *
+ *                                                                        *
+ * Primary Authors: Matthias Richter <Matthias.Richter@ift.uib.no>        *
+ *                  for The ALICE HLT Project.                            *
+ *                                                                        *
+ * Permission to use, copy, modify and distribute this software and its   *
+ * documentation strictly for non-commercial purposes is hereby granted   *
+ * without fee, provided that the above copyright notice appears in all   *
+ * copies and that both the copyright notice and this permission notice   *
+ * appear in the supporting documentation. The authors make no claims     *
+ * about the suitability of this software for any purpose. It is          *
+ * provided "as is" without express or implied warranty.                  *
+ **************************************************************************/
+
 /** @file   AliHLTAgentSample.cxx
     @author Matthias Richter
     @date   
     @brief  Agent of the libAliHLTSample library
 */
 
+#include <cassert>
 #include "AliHLTAgentSample.h"
 #include "AliHLTConfiguration.h"
 #include "TSystem.h"
 
+// header files of library components
+#include "AliHLTDummyComponent.h"
+
 /** global instance for agent registration */
 AliHLTAgentSample gAliHLTAgentSample;
 
@@ -42,6 +62,7 @@ AliHLTAgentSample::~AliHLTAgentSample()
 }
 
 int AliHLTAgentSample::CreateConfigurations(AliHLTConfigurationHandler* handler,
+                                           AliRawReader* rawReader,
                                            AliRunLoader* runloader) const
 {
   // see header file for class documentation
@@ -54,7 +75,7 @@ int AliHLTAgentSample::CreateConfigurations(AliHLTConfigurationHandler* handler,
 
   if (handler) {
     // the publisher configuration for the test data
-    TString arg("-datafile ");
+    TString arg("-datatype DUMMYDAT TEST -datafile ");
     arg+=fgkAliHLTAgentSampleData;
     HLTDebug(arg.Data());
     handler->CreateConfiguration("sample-fp1"  , "FilePublisher", NULL , arg.Data());
@@ -75,7 +96,8 @@ int AliHLTAgentSample::CreateConfigurations(AliHLTConfigurationHandler* handler,
   return 0;
 }
 
-const char* AliHLTAgentSample::GetLocalRecConfigurations(AliRunLoader* runloader) const
+const char* AliHLTAgentSample::GetReconstructionChains(AliRawReader* rawReader,
+                                                      AliRunLoader* runloader) const
 {
   // see header file for class documentation
   return "sample-sink1 sample-offsnk";
@@ -86,3 +108,12 @@ const char* AliHLTAgentSample::GetRequiredComponentLibraries() const
   // see header file for class documentation
   return "libAliHLTUtil.so libAliHLTSample.so";
 }
+
+int AliHLTAgentSample::RegisterComponents(AliHLTComponentHandler* pHandler) const
+{
+  // see header file for class documentation
+  assert(pHandler);
+  if (!pHandler) return -EINVAL;
+  pHandler->AddComponent(new AliHLTDummyComponent);
+  return 0;
+}