]>
Commit | Line | Data |
---|---|---|
c83e4f55 | 1 | #ifndef ALIHLTPHOSPROCESSOR_H |
2 | #define ALIHLTPHOSPROCESSOR_H | |
56673b84 | 3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
4 | * See cxx source for full Copyright notice */ | |
c83e4f55 | 5 | |
6 | #include "AliHLTProcessor.h" | |
d2b84453 | 7 | #include "AliHLTPHOSBase.h" |
2ef3c547 | 8 | #include "AliHLTPHOSDefinitions.h" |
9c9d15d6 | 9 | #include "AliHLTDataTypes.h" |
dabc4c35 | 10 | |
11 | using namespace PhosHLTConst; | |
c83e4f55 | 12 | |
d2b84453 | 13 | class AliHLTPHOSProcessor:public AliHLTProcessor, public AliHLTPHOSBase |
c83e4f55 | 14 | { |
9c9d15d6 | 15 | |
c83e4f55 | 16 | public: |
17 | AliHLTPHOSProcessor(); | |
18 | virtual ~AliHLTPHOSProcessor(); | |
c83e4f55 | 19 | virtual int DoInit(int argc, const char** argv) = 0; |
20 | virtual int Deinit() = 0; | |
21 | virtual const char* GetComponentID() = 0; | |
c83e4f55 | 22 | virtual void GetInputDataTypes( std::vector <AliHLTComponentDataType>& list) =0; |
23 | virtual AliHLTComponentDataType GetOutputDataType() =0; | |
24 | virtual void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier) =0; | |
25 | virtual AliHLTComponent* Spawn() = 0; | |
8efbf5fe | 26 | char lineNumber[256]; |
27 | const char *IntToChar(int number); | |
28 | /* | |
29 | *Check file and write messages to AliLog system | |
30 | */ | |
31 | bool CheckFileLog(const char *origin, const char *filename, const char *opt); | |
32 | void DoneWritingLog(const char *origin, const char *filename); | |
33 | ||
b444d727 | 34 | using AliHLTProcessor::DoEvent; |
939c67e7 | 35 | |
c83e4f55 | 36 | protected: |
939c67e7 | 37 | void ScanRunNumberFromFile(); |
25b7f84c | 38 | virtual int ScanArguments(int argc, const char** argv); |
c83e4f55 | 39 | int fPhosEventCount; /**<Global event counter for this component*/ |
c83e4f55 | 40 | AliHLTUInt8_t fModuleID; /**<ID of the module this component read data from (0-4)*/ |
c83e4f55 | 41 | Bool_t fPrintInfo; /**<wether or not to print debugg info to std out*/ |
c83e4f55 | 42 | int fPrintInfoFrequncy; /**<Defines the update frequency for information printet to std out*/ |
c83e4f55 | 43 | static const AliHLTComponentDataType fgkInputDataTypes[]; /**<List of datatypes that can be given to this component*/ |
939c67e7 | 44 | int fRunNumber; |
8efbf5fe | 45 | char fFilepath[1024]; |
46 | char fMessage[1024]; | |
47 | ||
c83e4f55 | 48 | private: |
d2b84453 | 49 | AliHLTPHOSProcessor(const AliHLTPHOSProcessor & ); |
50 | AliHLTPHOSProcessor & operator = (const AliHLTPHOSProcessor &); | |
c83e4f55 | 51 | |
52 | }; | |
53 | ||
54 | ||
55 | #endif |