]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/BASE/AliHLTProcessor.cxx
bugfix in high level interface: GetFirst/NextObject/Block
[u/mrichter/AliRoot.git] / HLT / BASE / AliHLTProcessor.cxx
CommitLineData
f23a6e1a 1// $Id$
2
3/**************************************************************************
4 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * *
6 * Authors: Matthias Richter <Matthias.Richter@ift.uib.no> *
7 * Timm Steinbeck <timm@kip.uni-heidelberg.de> *
f23a6e1a 8 * for The ALICE Off-line Project. *
9 * *
10 * Permission to use, copy, modify and distribute this software and its *
11 * documentation strictly for non-commercial purposes is hereby granted *
12 * without fee, provided that the above copyright notice appears in all *
13 * copies and that both the copyright notice and this permission notice *
14 * appear in the supporting documentation. The authors make no claims *
15 * about the suitability of this software for any purpose. It is *
16 * provided "as is" without express or implied warranty. *
17 **************************************************************************/
18
bfccbf68 19/** @file AliHLTProcessor.cxx
20 @author Matthias Richter, Timm Steinbeck
21 @date
22 @brief Base class implementation for HLT analysis components. */
f23a6e1a 23
0c0c9d99 24#if __GNUC__>= 3
f23a6e1a 25using namespace std;
26#endif
27
28#include "AliHLTProcessor.h"
29#include <string.h>
30
b22e91eb 31/** ROOT macro for the implementation of ROOT specific class methods */
f23a6e1a 32ClassImp(AliHLTProcessor)
33
34AliHLTProcessor::AliHLTProcessor()
35{
70ed7d01 36 // see header file for class documentation
37 // or
38 // refer to README to build package
39 // or
40 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
f23a6e1a 41}
42
43AliHLTProcessor::~AliHLTProcessor()
44{
70ed7d01 45 // see header file for class documentation
f23a6e1a 46}
47
9ddaea75 48int AliHLTProcessor::Init( AliHLTComponentEnvironment* environ, void* environParam, int argc, const char** argv )
f23a6e1a 49{
70ed7d01 50 // see header file for class documentation
f23a6e1a 51 int iResult=0;
9ddaea75 52 iResult=AliHLTComponent::Init(environ, environParam, argc, argv);
f23a6e1a 53 return iResult;
54}
55
56int AliHLTProcessor::Deinit()
57{
70ed7d01 58 // see header file for class documentation
f23a6e1a 59 int iResult=0;
60 iResult=AliHLTComponent::Deinit();
61 return iResult;
62}
63
3cde846d 64int AliHLTProcessor::DoProcessing( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks,
8ede8717 65 AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr,
a655eae3 66 AliHLTUInt32_t& size,
67 vector<AliHLTComponentBlockData>& outputBlocks,
8ede8717 68 AliHLTComponentEventDoneData*& edd )
f23a6e1a 69{
70ed7d01 70 // see header file for class documentation
f23a6e1a 71 int iResult=0;
a655eae3 72 iResult=DoEvent(evtData, blocks, trigData, outputPtr, size, outputBlocks);
71d7c760 73 edd = NULL;
f23a6e1a 74 return iResult;
75}
a655eae3 76
77int AliHLTProcessor::DoEvent( const AliHLTComponentEventData& evtData,
78 const AliHLTComponentBlockData* blocks,
79 AliHLTComponentTriggerData& trigData,
80 AliHLTUInt8_t* outputPtr,
81 AliHLTUInt32_t& size,
82 vector<AliHLTComponentBlockData>& outputBlocks )
83{
84 // we just forward to the high level method, all other parameters already
85 // have been stored internally
86 return DoEvent(evtData, trigData);
87}
88
89int AliHLTProcessor::DoEvent( const AliHLTComponentEventData& evtData, AliHLTComponentTriggerData& trigData)
90{
91 HLTFatal("no processing method implemented");
92 return -ENOSYS;
93}