]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - HLT/BASE/AliHLTDataSource.cxx
added code documentation for BASE, SampleLib, TPCLib and build system
[u/mrichter/AliRoot.git] / HLT / BASE / AliHLTDataSource.cxx
... / ...
CommitLineData
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 * for The ALICE Off-line Project. *
8 * *
9 * Permission to use, copy, modify and distribute this software and its *
10 * documentation strictly for non-commercial purposes is hereby granted *
11 * without fee, provided that the above copyright notice appears in all *
12 * copies and that both the copyright notice and this permission notice *
13 * appear in the supporting documentation. The authors make no claims *
14 * about the suitability of this software for any purpose. It is *
15 * provided "as is" without express or implied warranty. *
16 **************************************************************************/
17
18/** @file AliHLTDataSource.cxx
19 @author Matthias Richter
20 @date
21 @brief Base class implementation for HLT data source components. */
22
23#if __GNUC__>= 3
24using namespace std;
25#endif
26
27#include "AliHLTDataSource.h"
28
29/** ROOT macro for the implementation of ROOT specific class methods */
30ClassImp(AliHLTDataSource)
31
32AliHLTDataSource::AliHLTDataSource()
33{
34}
35
36AliHLTDataSource::~AliHLTDataSource()
37{
38}
39
40int AliHLTDataSource::ProcessEvent( const AliHLTComponent_EventData& evtData,
41 const AliHLTComponent_BlockData* blocks,
42 AliHLTComponent_TriggerData& trigData,
43 AliHLTUInt8_t* outputPtr,
44 AliHLTUInt32_t& size,
45 AliHLTUInt32_t& outputBlockCnt,
46 AliHLTComponent_BlockData*& outputBlocks,
47 AliHLTComponent_EventDoneData*& edd )
48{
49 int iResult=0;
50 vector<AliHLTComponent_BlockData> blockData;
51 if (evtData.fBlockCnt > 0) {
52 HLTWarning("Data source component skips imput data blocks");
53 }
54 iResult=GetEvent(evtData, trigData, outputPtr, size, blockData);
55 if (iResult>=0) {
56 iResult=MakeOutputDataBlockList(blockData, &outputBlockCnt, &outputBlocks);
57 }
58 edd = NULL;
59 return iResult;
60}