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