#ifndef ALIH2F_H
#define ALIH2F_H
#include "TH2.h"
class TH1F;
class TClonesArray;
class AliH2F : public TH2F {
public:
AliH2F();
AliH2F(const Text_t *name,const Text_t *title,Int_t nbinsx,
Axis_t xlow,Axis_t xup,Int_t nbinsy,Axis_t ylow,Axis_t yup);
~AliH2F();
public:
AliH2F(const AliH2F &his);
AliH2F & operator = (const AliH2F &his);
void ClearSpectrum();
void AddGauss(Float_t x,Float_t y,Float_t sx, Float_t sy, Float_t max);
void AddNoise(Float_t sn);
void ClearUnderTh(Int_t threshold);
void Round();
AliH2F * GetSubrange2d(Float_t xmin, Float_t xmax,
Float_t ymin, Float_t ymax);
Float_t GetOccupancy(Float_t th=1. , Float_t xmin=0, Float_t xmax=0,
Float_t ymin=0, Float_t ymax=0);
TH1F * GetAmplitudes(Float_t zmin, Float_t zmax, Float_t th=1. , Float_t xmin=0, Float_t xmax=0,
Float_t ymin=0, Float_t ymax=0);
public:
protected:
private:
ClassDef(AliH2F,1)
};
#endif /*TH2FSMOOTH_H */