Adding missing implementaion of GetInputBlock.
authorszostak <szostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 29 Sep 2007 06:21:42 +0000 (06:21 +0000)
committerszostak <szostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 29 Sep 2007 06:21:42 +0000 (06:21 +0000)
HLT/BASE/AliHLTComponent.cxx

index 38d2ed62ad493aba6bbbb7e43a0f8355dbae282b..41217f9851d56c06bb4a07d8dee1f698b0f0303b 100644 (file)
@@ -36,6 +36,7 @@ using namespace std;
 #include "TClass.h"
 #include "TStopwatch.h"
 #include "AliHLTMemoryFile.h"
+#include <cassert>
 
 /** ROOT macro for the implementation of ROOT specific class methods */
 ClassImp(AliHLTComponent);
@@ -655,6 +656,14 @@ const AliHLTComponentBlockData* AliHLTComponent::GetFirstInputBlock(const char*
   return GetFirstInputBlock(dt);
 }
 
+const AliHLTComponentBlockData* AliHLTComponent::GetInputBlock(int index)
+{
+  // see header file for function documentation
+  ALIHLTCOMPONENT_BASE_STOPWATCH();
+  assert( 0 <= index and index < fCurrentEventData.fBlockCnt );
+  return &fpInputBlocks[index];
+}
+
 const AliHLTComponentBlockData* AliHLTComponent::GetNextInputBlock()
 {
   // see header file for function documentation