]>
Commit | Line | Data |
---|---|---|
1b41ab20 | 1 | //-*- Mode: C++ -*- |
2 | // $Id$ | |
3 | ||
7062c30e | 4 | #ifndef ALIHLTPHOSCALIBRATIONCOMPONENT_H |
5 | #define ALIHLTPHOSCALIBRATIONCOMPONENT_H | |
6 | ||
7 | #include "AliHLTCalibrationProcessor.h" | |
8 | ||
9 | class AliHLTPHOSEmcCalibData; | |
10 | ||
11 | class AliHLTPHOSCalibrationComponent: public AliHLTCalibrationProcessor | |
12 | //class AliHLTPHOSCalibrationComponent: public AliHLTPHOSBase, public AliHLTProcessor | |
13 | { | |
14 | public: | |
15 | ||
16 | /** constructor */ | |
17 | AliHLTPHOSCalibrationComponent(); | |
18 | /** not a valid copy constructor, defined according to effective C++ style */ | |
19 | AliHLTPHOSCalibrationComponent(const AliHLTPHOSCalibrationComponent&); | |
20 | /** not a valid assignment op, but defined according to effective C++ style */ | |
21 | AliHLTPHOSCalibrationComponent& operator=(const AliHLTPHOSCalibrationComponent&); | |
22 | /** destructor */ | |
23 | virtual ~AliHLTPHOSCalibrationComponent(); | |
24 | ||
25 | // Public functions to implement AliHLTComponent's interface. | |
26 | // These functions are required for the registration process | |
27 | ||
28 | const char* GetComponentID(); | |
29 | void GetInputDataTypes( vector<AliHLTComponentDataType>& list); | |
30 | AliHLTComponentDataType GetOutputDataType(); | |
31 | virtual void GetOutputDataSize( unsigned long& constBase, double& inputMultiplier ); | |
32 | AliHLTComponent* Spawn(); | |
33 | ||
34 | protected: | |
35 | ||
36 | // Protected functions to implement AliHLTComponent's interface. | |
37 | // These functions provide initialization as well as the actual processing | |
38 | // capabilities of the component. | |
39 | ||
40 | /** Initialize the calibration component. */ | |
41 | Int_t InitCalibration(); | |
42 | ||
43 | /** Scan commandline arguments of the calibration component. */ | |
44 | Int_t ScanArgument( Int_t argc, const char** argv ); | |
45 | ||
46 | /** DeInitialize the calibration component. */ | |
47 | Int_t DeinitCalibration(); | |
48 | ||
49 | /** Process the data in the calibration component. */ | |
50 | //Int_t ProcessCalibration( const AliHLTComponentEventData& evtData, AliHLTComponentTriggerData& trigData ); | |
51 | virtual Int_t ProcessCalibration(const AliHLTComponent_EventData& evtData, | |
52 | const AliHLTComponent_BlockData* blocks, | |
53 | AliHLTComponent_TriggerData& trigData, AliHLTUInt8_t* outputPtr, | |
54 | AliHLTUInt32_t& size, | |
55 | vector<AliHLTComponent_BlockData>& outputBlocks); | |
56 | ||
57 | /** Ship the data to the FXS at end of run or eventmodulo. */ | |
58 | Int_t ShipDataToFXS( const AliHLTComponentEventData& evtData, AliHLTComponentTriggerData& trigData ); | |
59 | ||
60 | private: | |
61 | ||
62 | AliHLTPHOSEmcCalibData *fEmcCalibData; | |
63 | ||
64 | }; | |
65 | ||
66 | #endif |