]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/AliHLTPHOSSandboxComponent.h
Coding conventions and minor fixes
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSSandboxComponent.h
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
16 #ifndef ALIHLTPHOSSANDBOXCOMPONENT
17 #define ALIHLTPHOSSANDBOXCOMPONENT
18
19 //#include "AliHLTPHOSChannelCounter.h"
20 //#include "AliHLTPHOSRcuCellEnergyDataStruct.h"
21 #include "AliHLTPHOSProcessor.h"
22
23 class AliHLTPHOSChannelCounter;
24 class AliHLTPHOSRcuCellEnergyDataStruct;
25
26 class AliHLTPHOSSandboxComponent : public AliHLTPHOSProcessor
27 {
28 public:
29   AliHLTPHOSSandboxComponent();
30   virtual ~AliHLTPHOSSandboxComponent();
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   */
52   int DoEvent(const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks,
53               AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr, AliHLTUInt32_t& size,
54                    std::vector<AliHLTComponentBlockData>& outputBlocks);
55
56   AliHLTComponent* Spawn();
57   
58 protected:
59
60   using AliHLTPHOSProcessor::DoEvent;
61
62   int DoInit(int argc, const char** argv);
63   virtual int Deinit(); ////////// PTH WARNING you should Define a class AliHLTPHOSModuleProcessor
64
65   virtual int DoDeinit();
66   
67 private:
68
69   Int_t fEvtCnt; //comment
70   AliHLTPHOSChannelCounter *fChannelCounterPtr; //comment
71   
72   static const AliHLTComponentDataType fgkInputDataTypes[];     //HLT input data type
73 };
74 #endif