]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/SampleLib/AliHLTSampleComponent2.cxx
Getting rid of trivial warnings.
[u/mrichter/AliRoot.git] / HLT / SampleLib / AliHLTSampleComponent2.cxx
1 // $Id$
2
3 /**************************************************************************
4  * This file is property of and copyright by the ALICE HLT Project        * 
5  * ALICE Experiment at CERN, All rights reserved.                         *
6  *                                                                        *
7  * Primary Authors: Matthias Richter <Matthias.Richter@ift.uib.no>        *
8  *                  Timm Steinbeck <timm@kip.uni-heidelberg.de>           *
9  *                  for The ALICE HLT Project.                            *
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
20 /** @file   AliHLTSampleComponent2.cxx
21     @author Matthias Richter, Timm Steinbeck
22     @date   
23     @brief  Another sample processing component for the HLT. */
24
25 #if __GNUC__== 3
26 using namespace std;
27 #endif
28
29 #include "AliHLTSampleComponent2.h"
30
31 /**
32  * The global object used for automatic component registration, 
33  * @note DO NOT use this component for calculation!
34  */
35 AliHLTSampleComponent2 gAliHLTSampleComponent2;
36
37 ClassImp(AliHLTSampleComponent2)
38
39 AliHLTSampleComponent2::AliHLTSampleComponent2()
40 {
41   // see header file for class documentation
42 }
43
44 AliHLTSampleComponent2::~AliHLTSampleComponent2()
45 {
46   // see header file for class documentation
47 }
48
49 int AliHLTSampleComponent2::DoInit( int argc, const char** argv ){
50   // see header file for class documentation
51   Logging(kHLTLogInfo, "HLT", "Sample", "Sample component2, DoInit");
52   if (argc==0 && argv==NULL) {
53     // this is just to get rid of the warning "unused parameter"
54   }
55   return 0;
56 }
57
58 int AliHLTSampleComponent2::DoDeinit(){
59   // see header file for class documentation
60   Logging(kHLTLogInfo, "HLT", "Sample", "Sample component2, DoDeinit");
61   return 0;
62 }
63
64 int AliHLTSampleComponent2::DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks, 
65                                       AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr, 
66                                       AliHLTUInt32_t& size, vector<AliHLTComponentBlockData>& outputBlocks ) {
67   // see header file for class documentation
68   Logging(kHLTLogInfo, "HLT", "Sample", "Sample component2, DoEvent");
69   if (evtData.fStructSize==0 && blocks==NULL && trigData.fStructSize==0 &&
70       outputPtr==0 && size==0)
71   {
72     outputBlocks.clear();
73     // this is just to get rid of the warning "unused parameter"
74   }
75   return 0;
76 }