AliRoot Core  d69033e (d69033e)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliTPCComposedCorrection.h
Go to the documentation of this file.
1 #ifndef ALI_TPC_COMPOSED_CORRECTION_H
2 #define ALI_TPC_COMPOSED_CORRECTION_H
3 
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice */
6 
26 
27 #include "AliTPCCorrection.h"
28 #include "TVectorD.h"
29 
30 class TCollection;
31 class TTimeStamp;
32 
34 public:
36 
38  AliTPCComposedCorrection(TCollection *corrections,CompositionType mode);
39  virtual ~AliTPCComposedCorrection();
40  virtual Bool_t AddCorrectionCompact(AliTPCCorrection* corr, Double_t weight);
41  void SetOmegaTauT1T2(Float_t omegaTau,Float_t t1,Float_t t2);
42 
43  TCollection* GetCorrections() const {return fCorrections;}
44  void SetCorrections(const TCollection *corrections) {fCorrections=(TCollection*)corrections;}
45  CompositionType GetMode() const {return fMode;}
46  void SetMode(CompositionType mode) {fMode=mode;}
47 
48  virtual void GetCorrection(const Float_t x[],const Short_t roc,Float_t dx[]);
49  virtual void GetDistortion(const Float_t x[],const Short_t roc,Float_t dx[]);
50  virtual AliTPCCorrection * GetSubCorrection(Int_t ipos);
51  virtual AliTPCCorrection * GetSubCorrection(const char * cname);
52 
53  virtual void Print(Option_t* option="") const;
54 
55  // initialization and update functions
56  virtual void Init();
57  virtual void Update(const TTimeStamp &timeStamp);
58  void SetWeights(TVectorD * weights){fWeights= (TVectorD*) weights->Clone();}
59  const TVectorD * GetWeights() const {return fWeights;}
60 
61 private:
62  TCollection *fCorrections;
64  TVectorD *fWeights;
65  AliTPCComposedCorrection & operator = (const AliTPCComposedCorrection &); // dummy assignment operator
66  AliTPCComposedCorrection(const AliTPCComposedCorrection&); //dummy copy contructor
67 
69  ClassDef(AliTPCComposedCorrection,2);
71 };
72 
73 
74 #endif
virtual Bool_t AddCorrectionCompact(AliTPCCorrection *corr, Double_t weight)
virtual void GetCorrection(const Float_t x[], const Short_t roc, Float_t dx[])
void SetOmegaTauT1T2(Float_t omegaTau, Float_t t1, Float_t t2)
AliTPCCorrection class.
AliTPCComposedCorrection class.
void SetCorrections(const TCollection *corrections)
const TVectorD * GetWeights() const
CompositionType GetMode() const
virtual void GetDistortion(const Float_t x[], const Short_t roc, Float_t dx[])
virtual void Update(const TTimeStamp &timeStamp)
TCollection * GetCorrections() const
virtual AliTPCCorrection * GetSubCorrection(Int_t ipos)
CompositionType fMode
The way to apply the corrections (see general class documentation)
AliTPCComposedCorrection & operator=(const AliTPCComposedCorrection &)
TCollection * fCorrections
The corrections this one is composed of.
void SetMode(CompositionType mode)
void SetWeights(TVectorD *weights)
TVectorD * fWeights
optional vector with weights - used for fit benchmarking
virtual void Print(Option_t *option="") const