- virtual ~AliTRDCalROC();
- AliTRDCalROC &operator=(const AliTRDCalROC &c);
- virtual void Copy(TObject &c) const;
-
- Int_t GetNrows() const { return fNrows; };
- Int_t GetNcols() const { return fNcols; };
-
- Int_t GetChannel(Int_t c, Int_t r) { return r+c*fNrows; };
- Int_t GetNchannels() const { return fNchannels; };
-
- Float_t GetValue(Int_t ich) const { return (Float_t) fData[ich] / 10000; };
- Float_t GetValue(Int_t col, Int_t row) { return GetValue(GetChannel(col,row)); };
-
- void SetValue(Int_t ich, Float_t value) { fData[ich] = (UShort_t) (value * 10000); };
- void SetValue(Int_t col, Int_t row, Float_t value) { SetValue(GetChannel(col,row), value); };
-
- void Scale(Float_t value);
-
+ virtual ~AliTRDCalROC();
+ AliTRDCalROC &operator=(const AliTRDCalROC &c);
+ virtual void Copy(TObject &c) const;
+
+ Int_t GetNrows() const { return fNrows; };
+ Int_t GetNcols() const { return fNcols; };
+
+ Int_t GetChannel(Int_t c, Int_t r) const { return r+c*fNrows; };
+ Int_t GetNchannels() const { return fNchannels; };
+
+ Float_t GetValue(Int_t ich) const { return (Float_t) fData[ich] / 10000; };
+ Float_t GetValue(Int_t col, Int_t row) { return GetValue(GetChannel(col,row)); };
+
+ void SetValue(Int_t ich, Float_t value) { fData[ich] = (UShort_t) (value * 10000); };
+ void SetValue(Int_t col, Int_t row, Float_t value)
+ { SetValue(GetChannel(col,row), value); };
+
+ // statistic
+ //
+ Double_t GetMean(AliTRDCalROC * const outlierROC=0) const;
+ Double_t GetRMS(AliTRDCalROC * const outlierROC=0) const;
+ Double_t GetMedian(AliTRDCalROC * const outlierROC=0) const;
+ Double_t GetLTM(Double_t *sigma=0, Double_t fraction=0.9, AliTRDCalROC * const outlierROC=0);
+
+ // algebra
+ Bool_t Add(Float_t c1);
+ Bool_t Multiply(Float_t c1);
+ Bool_t Add(const AliTRDCalROC * roc, Double_t c1 = 1);
+ Bool_t Multiply(const AliTRDCalROC * roc);
+ Bool_t Divide(const AliTRDCalROC * roc);
+
+ // noise
+ Bool_t Unfold();
+
+ //Plots
+ TH2F * MakeHisto2D(Float_t min, Float_t max,Int_t type, Float_t mu = 1.0);
+ TH1F * MakeHisto1D(Float_t min, Float_t max,Int_t type, Float_t mu = 1.0);
+