X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=HLT%2FSampleLib%2FAliHLTSampleComponent2.cxx;h=12d2c54d40678b831c0911e8a1287c971a8b0e84;hb=864cb96e5bc56cc85ed37d92afad55c11563d7fd;hp=5ae9f214ea68abb9ffbb97e3fdf177832214be15;hpb=8ede8717c1b81bb3bc42ac5d37bd0da198ee80ea;p=u%2Fmrichter%2FAliRoot.git diff --git a/HLT/SampleLib/AliHLTSampleComponent2.cxx b/HLT/SampleLib/AliHLTSampleComponent2.cxx index 5ae9f214ea6..12d2c54d406 100644 --- a/HLT/SampleLib/AliHLTSampleComponent2.cxx +++ b/HLT/SampleLib/AliHLTSampleComponent2.cxx @@ -1,11 +1,12 @@ // $Id$ /************************************************************************** - * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * + * This file is property of and copyright by the ALICE HLT Project * + * ALICE Experiment at CERN, All rights reserved. * * * - * Authors: Matthias Richter * - * Timm Steinbeck * - * for The ALICE Off-line Project. * + * Primary Authors: Matthias Richter * + * Timm Steinbeck * + * for The ALICE HLT Project. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * @@ -27,31 +28,29 @@ using namespace std; #include "AliHLTSampleComponent2.h" -/** - * The global object used for automatic component registration, - * @note DO NOT use this component for calculation! - */ -AliHLTSampleComponent2 gAliHLTSampleComponent2; - ClassImp(AliHLTSampleComponent2) -const AliHLTComponentDataType AliHLTSampleComponent2::inputDataTypes[]={{0,0}, {0,0}}; //'zero' terminated array -const AliHLTComponentDataType AliHLTSampleComponent2::outputDataType={0,0}; - AliHLTSampleComponent2::AliHLTSampleComponent2() { + // see header file for class documentation } AliHLTSampleComponent2::~AliHLTSampleComponent2() { + // see header file for class documentation } int AliHLTSampleComponent2::DoInit( int argc, const char** argv ){ + // see header file for class documentation Logging(kHLTLogInfo, "HLT", "Sample", "Sample component2, DoInit"); + if (argc==0 && argv==NULL) { + // this is just to get rid of the warning "unused parameter" + } return 0; } int AliHLTSampleComponent2::DoDeinit(){ + // see header file for class documentation Logging(kHLTLogInfo, "HLT", "Sample", "Sample component2, DoDeinit"); return 0; } @@ -59,6 +58,13 @@ int AliHLTSampleComponent2::DoDeinit(){ int AliHLTSampleComponent2::DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks, AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr, AliHLTUInt32_t& size, vector& outputBlocks ) { + // see header file for class documentation Logging(kHLTLogInfo, "HLT", "Sample", "Sample component2, DoEvent"); + if (evtData.fStructSize==0 && blocks==NULL && trigData.fStructSize==0 && + outputPtr==0 && size==0) + { + outputBlocks.clear(); + // this is just to get rid of the warning "unused parameter" + } return 0; }