ROOT logo
#ifndef ALIH2F_H
#define ALIH2F_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
 * See cxx source for full Copyright notice                               */

/* $Id$ */

// include files and class forward declarations

#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);
//  TClonesArray * FindPeaks(Float_t threshold, Float_t noise);  
    //find peaks and write it in form of AliTPCcluster to array
  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();
  //round float values to integer values
 
  AliH2F * GetSubrange2d(Float_t xmin, Float_t xmax, 
			     Float_t ymin, Float_t ymax); 
  //create new  2D histogram 
  Float_t  GetOccupancy(Float_t th=1. , Float_t xmin=0, Float_t xmax=0, 
			     Float_t ymin=0, Float_t ymax=0);
  //calculate ration of channel over threshold to all channels
  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);
		       //generate one dim histogram of amplitudes
 
public:  

protected:  

private:
 
  ClassDef(AliH2F,1)
};

#endif /*TH2FSMOOTH_H */
 AliH2F.h:1
 AliH2F.h:2
 AliH2F.h:3
 AliH2F.h:4
 AliH2F.h:5
 AliH2F.h:6
 AliH2F.h:7
 AliH2F.h:8
 AliH2F.h:9
 AliH2F.h:10
 AliH2F.h:11
 AliH2F.h:12
 AliH2F.h:13
 AliH2F.h:14
 AliH2F.h:15
 AliH2F.h:16
 AliH2F.h:17
 AliH2F.h:18
 AliH2F.h:19
 AliH2F.h:20
 AliH2F.h:21
 AliH2F.h:22
 AliH2F.h:23
 AliH2F.h:24
 AliH2F.h:25
 AliH2F.h:26
 AliH2F.h:27
 AliH2F.h:28
 AliH2F.h:29
 AliH2F.h:30
 AliH2F.h:31
 AliH2F.h:32
 AliH2F.h:33
 AliH2F.h:34
 AliH2F.h:35
 AliH2F.h:36
 AliH2F.h:37
 AliH2F.h:38
 AliH2F.h:39
 AliH2F.h:40
 AliH2F.h:41
 AliH2F.h:42
 AliH2F.h:43
 AliH2F.h:44
 AliH2F.h:45
 AliH2F.h:46
 AliH2F.h:47
 AliH2F.h:48
 AliH2F.h:49
 AliH2F.h:50
 AliH2F.h:51
 AliH2F.h:52
 AliH2F.h:53