]>
Commit | Line | Data |
---|---|---|
c83e4f55 | 1 | #ifndef ALIHLTPHOSPROCESSOR_H |
2 | #define ALIHLTPHOSPROCESSOR_H | |
3 | ||
4 | #include "AliHLTProcessor.h" | |
dabc4c35 | 5 | #include "AliHLTPHOSConstants.h" |
6 | #include "AliHLTPHOSCommonDefs.h" | |
2ef3c547 | 7 | #include "TString.h" |
8 | #include "AliHLTPHOSDefinitions.h" | |
dabc4c35 | 9 | |
10 | using namespace PhosHLTConst; | |
c83e4f55 | 11 | |
12 | class AliHLTPHOSProcessor:public AliHLTProcessor | |
13 | { | |
14 | public: | |
15 | AliHLTPHOSProcessor(); | |
16 | virtual ~AliHLTPHOSProcessor(); | |
17 | AliHLTPHOSProcessor(const AliHLTPHOSProcessor & ); | |
18 | AliHLTPHOSProcessor & operator = (const AliHLTPHOSProcessor &) | |
19 | { | |
20 | return *this; | |
21 | }; | |
22 | ||
23 | virtual int DoInit(int argc, const char** argv) = 0; | |
24 | virtual int Deinit() = 0; | |
25 | virtual const char* GetComponentID() = 0; | |
26 | const AliHLTUInt16_t GetEquippmentID() const; | |
27 | virtual void GetInputDataTypes( std::vector <AliHLTComponentDataType>& list) =0; | |
28 | virtual AliHLTComponentDataType GetOutputDataType() =0; | |
29 | virtual void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier) =0; | |
30 | virtual AliHLTComponent* Spawn() = 0; | |
31 | protected: | |
32 | int fPhosEventCount; /**<Global event counter for this component*/ | |
33 | const AliHLTUInt16_t fkEquippmentID; /**<Equippment ID as defined by ALICE*/ | |
34 | AliHLTUInt8_t fModuleID; /**<ID of the module this component read data from (0-4)*/ | |
35 | AliHLTUInt8_t fRcuX; /**<X position of RCU the data from this Equippment comes from (0 or 1)*/ | |
36 | AliHLTUInt8_t fRcuZ; /**<Z position of RCU the data from this Equippment comes from (0 or 1)*/ | |
37 | AliHLTUInt8_t fRcuZOffset; /**<offset in therms of towers in the Z direction relative to the module*/ | |
38 | AliHLTUInt8_t fRcuXOffset; /**<offset in therms of towers in the X direction relative to the module*/ | |
39 | Bool_t fPrintInfo; /**<wether or not to print debugg info to std out*/ | |
40 | Bool_t fIsSetEquippmentID; /**<wether or not the EquippmentID is set*/ | |
41 | int fPrintInfoFrequncy; /**<Defines the update frequency for information printet to std out*/ | |
42 | void SetEquippmentID(AliHLTUInt16_t id); | |
43 | void SetCoordinates(AliHLTUInt16_t equippmentID); | |
44 | int ScanArguments(int argc, const char** argv); | |
45 | static const AliHLTComponentDataType fgkInputDataTypes[]; /**<List of datatypes that can be given to this component*/ | |
46 | private: | |
47 | ||
48 | ||
49 | }; | |
50 | ||
51 | ||
52 | #endif |