]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/TPCLib/AliHLTTPCCalibPedestalComponent.h
code cleanup, coding rules, eff C++
[u/mrichter/AliRoot.git] / HLT / TPCLib / AliHLTTPCCalibPedestalComponent.h
1 //-*- Mode: C++ -*-
2 #ifndef ALIHLTTPCCALIBPEDESTALCOMPONENT_H
3 #define ALIHLTTPCCALIBPEDESTALCOMPONENT_H
4
5 /* This file is property of and copyright by the ALICE HLT Project        * 
6  * ALICE Experiment at CERN, All rights reserved.                         *
7  * See cxx source for full Copyright notice                               */
8
9 /** @file   AliHLTTPCCalibPedestalComponent.h
10     @author Jochen Thaeder
11     @date   
12     @brief  A pedestal calibration component for the TPC.
13 */
14
15 #include "AliHLTCalibrationProcessor.h"
16 #include "AliHLTTPCDefinitions.h"
17
18 class AliTPCRawStream;
19 class AliRawReaderMemory;
20 class AliTPCCalibPedestal;
21
22 /**
23  * @class AliHLTTPCCalibPedestalComponent
24  * 
25  * This class is the calibration component for the AliTPCCalibPedestal class 
26  * used for pedestal calibration of the TPC. 
27  * 
28  * It inherits from the AliHLTCalibrationProcessor and uses the high-level 
29  * interface. The output is the class AliTPCCalibPedestal as a TObject.
30  *
31  * The component has the following component arguments:
32  *   -rcuformat <old/new>  : Wether to use old or new rcuformat ( default is new )
33  *   -enableanalysis       : Wether to enable analyis before shipping data to FXS
34  *
35  * @ingroup alihlt_tpc
36  */
37 class AliHLTTPCCalibPedestalComponent : public AliHLTCalibrationProcessor
38     {
39     public:
40       /** constructor */
41       AliHLTTPCCalibPedestalComponent();
42       /** destructor */
43       virtual ~AliHLTTPCCalibPedestalComponent();
44       
45       // Public functions to implement AliHLTComponent's interface.
46       // These functions are required for the registration process
47
48       const char* GetComponentID();
49       void GetInputDataTypes( vector<AliHLTComponentDataType>& list);
50       AliHLTComponentDataType GetOutputDataType();
51       virtual void GetOutputDataSize( unsigned long& constBase, double& inputMultiplier );
52       AliHLTComponent* Spawn();
53
54     protected:
55       
56       // Protected functions to implement AliHLTComponent's interface.
57       // These functions provide initialization as well as the actual processing
58       // capabilities of the component. 
59       
60       /** Initialize the calibration component. */
61       Int_t InitCalibration();
62
63       /** Scan commandline arguments of the calibration component. */
64       Int_t ScanArgument( Int_t argc, const char** argv );
65
66       /** DeInitialize the calibration component. */
67       Int_t DeinitCalibration();
68
69       /** Process the data in the calibration component. */
70       Int_t ProcessCalibration( const AliHLTComponentEventData& evtData, AliHLTComponentTriggerData& trigData );
71
72       /** Ship the data to the FXS at end of run or eventmodulo. */
73       Int_t ShipDataToFXS( const AliHLTComponentEventData& evtData, AliHLTComponentTriggerData& trigData );
74
75     private:
76       /** copy constructor prohibited */
77       AliHLTTPCCalibPedestalComponent(const AliHLTTPCCalibPedestalComponent&);
78       /** assignment operator prohibited */
79       AliHLTTPCCalibPedestalComponent& operator=(const AliHLTTPCCalibPedestalComponent&);
80
81       /** The reader object for reading from memory */
82       AliRawReaderMemory* fRawReader;                                              //!transient
83
84       /** The reader object for reading TPC raw data */  
85       AliTPCRawStream* fRawStream;                                                 //!transient
86
87       /** Pedestal Calibration class */
88       AliTPCCalibPedestal * fCalibPedestal;                                        //!transient
89       
90       /** Wether to use old RCU format */
91       Bool_t fRCUFormat;                                                           // see above
92
93       /** Minimum patch specifcation for this component */
94       AliHLTUInt8_t fMinPatch;                                                     // see above
95
96       /** Minimum patch specifcation for this component */
97       AliHLTUInt8_t fMaxPatch;                                                     // see above
98
99       /** The Specification for this component */
100       AliHLTUInt32_t fSpecification;                                               // see above
101
102       /** Analysze calibration data before shipping to FXS */
103       Bool_t fEnableAnalysis;                                                      // see above
104
105       ClassDef(AliHLTTPCCalibPedestalComponent, 1)
106
107     };
108 #endif