]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/SampleLib/AliHLTSampleComponent2.cxx
Add default macro path
[u/mrichter/AliRoot.git] / HLT / SampleLib / AliHLTSampleComponent2.cxx
CommitLineData
c5318542 1// $Id$
2
0cfce653 3//**************************************************************************
4//* This file is property of and copyright by the *
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//**************************************************************************/
c5318542 19
0cfce653 20/// @file AliHLTSampleComponent2.cxx
21/// @author Matthias Richter, Timm Steinbeck
22/// @date
23/// @brief Another sample processing component for the HLT.
24///
c5318542 25
c5318542 26#include "AliHLTSampleComponent2.h"
27
0cfce653 28using namespace std;
29
c5318542 30ClassImp(AliHLTSampleComponent2)
31
c5318542 32AliHLTSampleComponent2::AliHLTSampleComponent2()
33{
f644d3f1 34 // see header file for class documentation
c5318542 35}
36
37AliHLTSampleComponent2::~AliHLTSampleComponent2()
38{
f644d3f1 39 // see header file for class documentation
c5318542 40}
41
42int AliHLTSampleComponent2::DoInit( int argc, const char** argv ){
f644d3f1 43 // see header file for class documentation
c5318542 44 Logging(kHLTLogInfo, "HLT", "Sample", "Sample component2, DoInit");
f644d3f1 45 if (argc==0 && argv==NULL) {
46 // this is just to get rid of the warning "unused parameter"
47 }
c5318542 48 return 0;
49}
50
51int AliHLTSampleComponent2::DoDeinit(){
f644d3f1 52 // see header file for class documentation
c5318542 53 Logging(kHLTLogInfo, "HLT", "Sample", "Sample component2, DoDeinit");
54 return 0;
55}
56
8ede8717 57int AliHLTSampleComponent2::DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks,
58 AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr,
0cfce653 59 AliHLTUInt32_t& size, AliHLTComponentBlockDataList& outputBlocks ) {
f644d3f1 60 // see header file for class documentation
c5318542 61 Logging(kHLTLogInfo, "HLT", "Sample", "Sample component2, DoEvent");
f644d3f1 62 if (evtData.fStructSize==0 && blocks==NULL && trigData.fStructSize==0 &&
63 outputPtr==0 && size==0)
64 {
65 outputBlocks.clear();
66 // this is just to get rid of the warning "unused parameter"
67 }
c5318542 68 return 0;
69}