]>
Commit | Line | Data |
---|---|---|
ab38011b | 1 | /************************************************************************** |
2 | * This file is property of and copyright by the ALICE HLT Project * | |
3 | * All rights reserved. * | |
4 | * * | |
5 | * Primary Authors: Oystein Djuvsland * | |
6 | * * | |
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 | **************************************************************************/ | |
15 | ||
e9a545b6 | 16 | #ifndef ALIHLTPHOSSANDBOXCOMPONENT |
17 | #define ALIHLTPHOSSANDBOXCOMPONENT | |
18 | ||
ab38011b | 19 | //#include "AliHLTPHOSChannelCounter.h" |
20 | //#include "AliHLTPHOSRcuCellEnergyDataStruct.h" | |
e9a545b6 | 21 | #include "AliHLTPHOSProcessor.h" |
22 | ||
ab38011b | 23 | class AliHLTPHOSChannelCounter; |
24 | class AliHLTPHOSRcuCellEnergyDataStruct; | |
25 | ||
e9a545b6 | 26 | class AliHLTPHOSSandboxComponent : public AliHLTPHOSProcessor |
27 | { | |
28 | public: | |
29 | AliHLTPHOSSandboxComponent(); | |
ab38011b | 30 | virtual ~AliHLTPHOSSandboxComponent(); |
e9a545b6 | 31 | |
32 | ||
33 | /* AliHLTPHOSSandboxComponent(const AliHLTPHOSSandboxComponent &); | |
34 | AliHLTPHOSSandboxComponent & operator = (const AliHLTPHOSSandboxComponent &) | |
35 | { | |
36 | return *this; | |
37 | }*/ | |
38 | ||
39 | const char* GetComponentID(); | |
40 | ||
41 | void GetInputDataTypes(std::vector<AliHLTComponentDataType>& list); | |
42 | ||
43 | AliHLTComponentDataType GetOutputDataType(); | |
44 | ||
45 | void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier); | |
46 | ||
47 | /* | |
48 | int DoProcessing(const AliHLTComponentEventData&, const AliHLTComponentBlockData*, | |
49 | AliHLTComponentTriggerData&, AliHLTUInt8_t*, AliHLTUInt32_t&, | |
50 | std::vector<AliHLTComponentBlockData>&, AliHLTComponentEventDoneData *&); | |
51 | */ | |
ab38011b | 52 | int DoEvent(const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks, |
53 | AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr, AliHLTUInt32_t& size, | |
54 | std::vector<AliHLTComponentBlockData>& outputBlocks); | |
e9a545b6 | 55 | |
56 | AliHLTComponent* Spawn(); | |
57 | ||
58 | protected: | |
1804b020 | 59 | |
60 | using AliHLTPHOSProcessor::DoEvent; | |
61 | ||
e9a545b6 | 62 | int DoInit(int argc, const char** argv); |
63 | virtual int Deinit(); ////////// PTH WARNING you should Define a class AliHLTPHOSModuleProcessor | |
64 | ||
c3636802 | 65 | virtual int DoDeinit(); |
e9a545b6 | 66 | |
67 | private: | |
68 | ||
ab38011b | 69 | Int_t fEvtCnt; //comment |
70 | AliHLTPHOSChannelCounter *fChannelCounterPtr; //comment | |
e9a545b6 | 71 | |
72 | static const AliHLTComponentDataType fgkInputDataTypes[]; //HLT input data type | |
73 | }; | |
74 | #endif |