]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/AliHLTPHOSDigitMakerComponent.h
7143e5b93013f40f9dd3ff5c21937942ae0ca698
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSDigitMakerComponent.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 #ifndef ALIHLTPHOSDIGITMAKERCOMPONENT_H
16 #define ALIHLTPHOSDIGITMAKERCOMPONENT_H
17
18 #include "AliHLTPHOSProcessor.h"
19 //#include "AliHLTPHOSDigitMaker.h"
20 //#include "TTree.h"
21 //#include "TClonesArray.h"
22
23
24 class AliHLTPHOSDigitMaker;
25 class TTree;
26 class TClonesArray;
27 class AliHLTPHOSDigitContainerDataStruct;
28
29
30
31 class AliHLTPHOSDigitMakerComponent : public AliHLTPHOSProcessor
32 {
33 public:
34   AliHLTPHOSDigitMakerComponent();
35   virtual ~AliHLTPHOSDigitMakerComponent();
36
37   const char* GetComponentID();
38
39   void GetInputDataTypes(std::vector<AliHLTComponentDataType>& list);
40
41   AliHLTComponentDataType GetOutputDataType();
42
43   void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier);
44
45   int DoEvent(const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks,
46               AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr, AliHLTUInt32_t& size,
47               std::vector<AliHLTComponentBlockData>& outputBlocks);
48   
49   AliHLTComponent* Spawn();
50   
51 protected:
52   using AliHLTPHOSProcessor::DoEvent;
53   int DoInit(int argc, const char** argv);
54   virtual int Deinit(); ////////// PTH WARNING you should Define a class AliHLTPHOSModuleProcessor
55   
56 private:
57   AliHLTPHOSDigitMaker *fDigitMakerPtr; //comment
58   AliHLTPHOSDigitContainerDataStruct *fDigitContainerPtr; //comment
59   UInt_t fEvtCnt; //comment
60   Int_t fRunNb; //comment
61
62   static const AliHLTComponentDataType fgkInputDataTypes[];     //HLT input data type
63
64 };
65 #endif
66