Forward declarations. Destructor made virtual.
[u/mrichter/AliRoot.git] / TPC / AliH2F.h
CommitLineData
73042f01 1#ifndef ALIH2F_H
2#define ALIH2F_H
cc80f89e 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8// include files and class forward declarations
9
10#include "TH2.h"
11#include "TMatrix.h"
12
13class TMatrix;
14class TH1F;
15class TClonesArray;
16
17class AliH2F : public TH2F {
18public:
19 AliH2F();
20 AliH2F(const Text_t *name,const Text_t *title,Int_t nbinsx,
21 Axis_t xlow,Axis_t xup,Int_t nbinsy,Axis_t ylow,Axis_t yup);
22 ~AliH2F();
23
24public:
73042f01 25 AliH2F(const AliH2F &his);
26 AliH2F & operator = (const AliH2F &his);
cc80f89e 27 TClonesArray * FindPeaks(Float_t threshold, Float_t noise);
28 //find peaks and write it in form of AliTPCcluster to array
29 void ClearSpectrum();
30 void AddGauss(Float_t x,Float_t y,Float_t sx, Float_t sy, Float_t max);
31 void AddNoise(Float_t sn);
32 void ClearUnderTh(Int_t threshold);
33 void Round();
34 //round float values to integer values
73042f01 35
cc80f89e 36 AliH2F * GetSubrange2d(Float_t xmin, Float_t xmax,
37 Float_t ymin, Float_t ymax);
38 //create new 2D histogram
39 Float_t GetOccupancy(Float_t th=1. , Float_t xmin=0, Float_t xmax=0,
40 Float_t ymin=0, Float_t ymax=0);
41 //calculate ration of channel over threshold to all channels
42 TH1F * GetAmplitudes(Float_t zmin, Float_t zmax, Float_t th=1. , Float_t xmin=0, Float_t xmax=0,
43 Float_t ymin=0, Float_t ymax=0);
44 //generate one dim histogram of amplitudes
cc80f89e 45
46public:
47
73042f01 48protected:
cc80f89e 49
50private:
73042f01 51
cc80f89e 52 ClassDef(AliH2F,1)
53};
54
55#endif /*TH2FSMOOTH_H */