]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/BASE/AliHLTProcessor.cxx
changes according to coding conventions
[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{
36}
37
38AliHLTProcessor::~AliHLTProcessor()
39{
40}
41
42int AliHLTProcessor::Init( AliHLTComponentEnvironment* environ, void* environ_param, int argc, const char** argv )
43{
44 int iResult=0;
45 iResult=AliHLTComponent::Init(environ, environ_param, argc, argv);
46 return iResult;
47}
48
49int AliHLTProcessor::Deinit()
50{
51 int iResult=0;
52 iResult=AliHLTComponent::Deinit();
53 return iResult;
54}
55
8ede8717 56int AliHLTProcessor::ProcessEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks,
57 AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr,
71d7c760 58 AliHLTUInt32_t& size, AliHLTUInt32_t& outputBlockCnt,
8ede8717 59 AliHLTComponentBlockData*& outputBlocks,
60 AliHLTComponentEventDoneData*& edd )
f23a6e1a 61{
62 int iResult=0;
8ede8717 63 vector<AliHLTComponentBlockData> blockData;
f23a6e1a 64 iResult=DoEvent(evtData, blocks, trigData, outputPtr, size, blockData);
65 if (iResult>=0) {
71d7c760 66 iResult=MakeOutputDataBlockList(blockData, &outputBlockCnt, &outputBlocks);
f23a6e1a 67 }
71d7c760 68 edd = NULL;
f23a6e1a 69 return iResult;
70}