]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/BASE/AliHLTDataSink.cxx
- AliHLTFileWriter added
[u/mrichter/AliRoot.git] / HLT / BASE / AliHLTDataSink.cxx
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   AliHLTDataSink.cxx
19     @author Matthias Richter
20     @date   
21     @brief  Base class implementation for HLT data source components. */
22
23 #if __GNUC__>= 3
24 using namespace std;
25 #endif
26
27 #include "AliHLTDataSink.h"
28
29 /** ROOT macro for the implementation of ROOT specific class methods */
30 ClassImp(AliHLTDataSink)
31
32 AliHLTDataSink::AliHLTDataSink()
33
34 }
35
36 AliHLTDataSink::~AliHLTDataSink()
37
38 }
39
40 AliHLTComponentDataType AliHLTDataSink::GetOutputDataType()
41 {
42   return (AliHLTComponentDataType){ sizeof(AliHLTComponentDataType), kAliHLTVoidDataTypeID, kAliHLTVoidDataOrigin};
43 }
44
45 void AliHLTDataSink::GetOutputDataSize( unsigned long& constBase, double& inputMultiplier )
46 {
47   constBase=0;
48   inputMultiplier=0;
49 }
50
51 int AliHLTDataSink::ProcessEvent( const AliHLTComponentEventData& evtData,
52                                     const AliHLTComponentBlockData* blocks, 
53                                     AliHLTComponentTriggerData& trigData,
54                                     AliHLTUInt8_t* outputPtr, 
55                                     AliHLTUInt32_t& size,
56                                     AliHLTUInt32_t& outputBlockCnt, 
57                                     AliHLTComponentBlockData*& outputBlocks,
58                                     AliHLTComponentEventDoneData*& edd )
59 {
60   int iResult=0;
61   if (outputPtr==NULL
62       && size==0 
63       && outputBlockCnt==0 
64       && outputBlocks==NULL
65       && edd==NULL) {
66     // this is currently just to get rid of the warning "unused parameter"
67   }
68   vector<AliHLTComponentBlockData> blockData;
69   iResult=DumpEvent(evtData, blocks, trigData);
70   return iResult;
71 }