]>
Commit | Line | Data |
---|---|---|
0116859c | 1 | #ifndef ALI_TPC_INVERSE_CORRECTION_H |
2 | #define ALI_TPC_INVERSE_CORRECTION_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7d855b04 | 7 | /// \class AliTPCInverseCorrection |
8 | /// \brief AliTPCInverseCorrection class | |
9 | /// | |
10 | /// This is a wrapper that inverts an AliTPCCorrection. This is done by | |
11 | /// swapping the CalculateCorrection and CalculateInverseCorrection functions. | |
12 | /// The wrapped correction is supplied as a pointer and the class relies | |
13 | /// on the fact, that this pointer keeps pointing to the right object. | |
14 | /// However, the ownership is not changed, i.e. the wrapped correction | |
15 | /// will not be deleted when this correction is destructed. | |
16 | /// | |
17 | /// \author Magnus Mager, Stefan Rossegger, Jim Thomas | |
18 | /// \date 27/04/2010 | |
0116859c | 19 | |
20 | #include "AliTPCCorrection.h" | |
21 | ||
e527a1b9 | 22 | |
0116859c | 23 | class AliTPCInverseCorrection : public AliTPCCorrection { |
24 | public: | |
25 | AliTPCInverseCorrection(); | |
26 | AliTPCInverseCorrection(AliTPCCorrection *correction); | |
27 | virtual ~AliTPCInverseCorrection(); | |
28 | ||
b1f0a2a5 | 29 | void SetCorrection(const AliTPCCorrection *correction) {fCorrection=(AliTPCCorrection*) correction;} |
30 | const AliTPCCorrection* GetCorrection() const {return fCorrection;} | |
0116859c | 31 | virtual void GetCorrection(const Float_t x[],const Short_t roc,Float_t dx[]); |
32 | virtual void GetDistortion(const Float_t x[],const Short_t roc,Float_t dx[]); | |
e527a1b9 | 33 | |
34 | // initialization and update functions | |
35 | virtual void Init(); | |
36 | virtual void Update(const TTimeStamp &timeStamp); | |
37 | ||
1b923461 | 38 | virtual void SetOmegaTauT1T2(Float_t omegaTau,Float_t t1,Float_t t2); |
7d855b04 | 39 | |
1b923461 | 40 | // convenience functions |
41 | virtual void Print(Option_t* option="") const; | |
7d855b04 | 42 | |
0116859c | 43 | private: |
7d855b04 | 44 | AliTPCCorrection *fCorrection; ///< The correction to be inverted. |
0116859c | 45 | |
3d8a9e4c | 46 | AliTPCInverseCorrection & operator = (const AliTPCInverseCorrection &); // dummy assignment operator |
0116859c | 47 | AliTPCInverseCorrection(const AliTPCInverseCorrection&); //dummy copy contructor |
48 | ||
7d855b04 | 49 | /// \cond CLASSIMP |
0116859c | 50 | ClassDef(AliTPCInverseCorrection,1); |
7d855b04 | 51 | /// \endcond |
0116859c | 52 | }; |
53 | ||
54 | #endif |