]>
Commit | Line | Data |
---|---|---|
c5318542 | 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. * | |
c5318542 | 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. * | |
c5318542 | 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 | ||
b22e91eb | 20 | /** @file AliHLTSampleComponent1.cxx |
21 | @author Matthias Richter, Timm M. Steinbeck | |
22 | @date | |
23 | @brief A sample processing component for the HLT. */ | |
c5318542 | 24 | |
25 | #if __GNUC__== 3 | |
26 | using namespace std; | |
27 | #endif | |
28 | ||
c5318542 | 29 | #include "AliHLTSampleComponent1.h" |
30 | ||
b22e91eb | 31 | /** |
32 | * The global object used for automatic component registration, | |
33 | * @note DO NOT use this component for calculation! | |
34 | */ | |
c5318542 | 35 | AliHLTSampleComponent1 gAliHLTSampleComponent1; |
36 | ||
37 | ClassImp(AliHLTSampleComponent1) | |
38 | ||
f644d3f1 | 39 | const AliHLTComponentDataType AliHLTSampleComponent1::fgInputDataTypes[]={kAliHLTVoidDataType, |
2d7ff710 | 40 | {0,"",""}}; //'zero' terminated array |
c5318542 | 41 | |
42 | AliHLTSampleComponent1::AliHLTSampleComponent1() | |
43 | { | |
f644d3f1 | 44 | // see header file for class documentation |
c5318542 | 45 | } |
46 | ||
47 | AliHLTSampleComponent1::~AliHLTSampleComponent1() | |
48 | { | |
f644d3f1 | 49 | // see header file for class documentation |
c5318542 | 50 | } |
51 | ||
52 | int AliHLTSampleComponent1::DoInit( int argc, const char** argv ){ | |
f644d3f1 | 53 | // see header file for class documentation |
c5318542 | 54 | Logging(kHLTLogInfo, "HLT", "Sample", "Sample component1, DoInit"); |
f644d3f1 | 55 | if (argc==0 && argv==NULL) { |
56 | // this is just to get rid of the warning "unused parameter" | |
57 | } | |
c5318542 | 58 | return 0; |
59 | } | |
60 | ||
61 | int AliHLTSampleComponent1::DoDeinit(){ | |
f644d3f1 | 62 | // see header file for class documentation |
c5318542 | 63 | Logging(kHLTLogInfo, "HLT", "Sample", "Sample component1, DoDeinit"); |
64 | return 0; | |
65 | } | |
66 | ||
8ede8717 | 67 | int AliHLTSampleComponent1::DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks, |
68 | AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr, | |
69 | AliHLTUInt32_t& size, vector<AliHLTComponentBlockData>& outputBlocks ) { | |
f644d3f1 | 70 | // see header file for class documentation |
c5318542 | 71 | Logging(kHLTLogInfo, "HLT", "Sample", "Sample component1, DoEvent"); |
f644d3f1 | 72 | if (evtData.fStructSize==0 && blocks==NULL && trigData.fStructSize==0 && |
73 | outputPtr==0 && size==0) | |
74 | { | |
75 | outputBlocks.clear(); | |
76 | // this is just to get rid of the warning "unused parameter" | |
77 | } | |
c5318542 | 78 | return 0; |
79 | } |