////////////////////////////////////////////////////////////////////////////////
#include "AliTPCCorrection.h"
+#include "TVectorD.h"
class TCollection;
+class TTimeStamp;
class AliTPCComposedCorrection : public AliTPCCorrection {
public:
void SetOmegaTauT1T2(Float_t omegaTau,Float_t t1,Float_t t2);
TCollection* GetCorrections() const {return fCorrections;}
- void SetCorrections(TCollection *corrections) {fCorrections=corrections;}
+ void SetCorrections(const TCollection *corrections) {fCorrections=(TCollection*)corrections;}
CompositionType GetMode() const {return fMode;}
void SetMode(CompositionType mode) {fMode=mode;}
// initialization and update functions
virtual void Init();
virtual void Update(const TTimeStamp &timeStamp);
-
+ void SetWeights(TVectorD * weights){fWeights= (TVectorD*) weights->Clone();}
+ const TVectorD * GetWeights() const {return fWeights;}
private:
TCollection *fCorrections; // The corrections this one is composed of.
CompositionType fMode; // The way to apply the corrections (see general class documentation)
-
+ TVectorD *fWeights; // optional vector with weights - used for fit benchmarking
AliTPCComposedCorrection & operator = (const AliTPCComposedCorrection);
AliTPCComposedCorrection(const AliTPCComposedCorrection&); //dummy copy contructor
- ClassDef(AliTPCComposedCorrection,1);
+ ClassDef(AliTPCComposedCorrection,2);
};
#endif