1 /**************************************************************************
2 * This file is property of and copyright by the ALICE HLT Project *
3 * All rights reserved. *
5 * Primary Authors: Oystein Djuvsland *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
16 #ifndef ALIHLTPHOSSANDBOXCOMPONENT
17 #define ALIHLTPHOSSANDBOXCOMPONENT
19 //#include "AliHLTPHOSChannelCounter.h"
20 //#include "AliHLTPHOSRcuCellEnergyDataStruct.h"
21 #include "AliHLTPHOSProcessor.h"
23 class AliHLTPHOSChannelCounter;
24 class AliHLTPHOSRcuCellEnergyDataStruct;
26 class AliHLTPHOSSandboxComponent : public AliHLTPHOSProcessor
29 AliHLTPHOSSandboxComponent();
30 virtual ~AliHLTPHOSSandboxComponent();
33 /* AliHLTPHOSSandboxComponent(const AliHLTPHOSSandboxComponent &);
34 AliHLTPHOSSandboxComponent & operator = (const AliHLTPHOSSandboxComponent &)
39 const char* GetComponentID();
41 void GetInputDataTypes(std::vector<AliHLTComponentDataType>& list);
43 AliHLTComponentDataType GetOutputDataType();
45 void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier);
48 int DoProcessing(const AliHLTComponentEventData&, const AliHLTComponentBlockData*,
49 AliHLTComponentTriggerData&, AliHLTUInt8_t*, AliHLTUInt32_t&,
50 std::vector<AliHLTComponentBlockData>&, AliHLTComponentEventDoneData *&);
52 int DoEvent(const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks,
53 AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr, AliHLTUInt32_t& size,
54 std::vector<AliHLTComponentBlockData>& outputBlocks);
56 AliHLTComponent* Spawn();
60 using AliHLTPHOSProcessor::DoEvent;
62 int DoInit(int argc, const char** argv);
63 virtual int Deinit(); ////////// PTH WARNING you should Define a class AliHLTPHOSModuleProcessor
65 virtual int DoDeinit();
69 Int_t fEvtCnt; //comment
70 AliHLTPHOSChannelCounter *fChannelCounterPtr; //comment
72 static const AliHLTComponentDataType fgkInputDataTypes[]; //HLT input data type