]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/AliH2F.h
When geometry is loaded, the call to MeanMaterialBudget will lead to AliFatal
[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
7553a22f 10#include "TH2.h"
cc80f89e 11
cc80f89e 12class TH1F;
13class TClonesArray;
14
15class AliH2F : public TH2F {
16public:
17 AliH2F();
18 AliH2F(const Text_t *name,const Text_t *title,Int_t nbinsx,
19 Axis_t xlow,Axis_t xup,Int_t nbinsy,Axis_t ylow,Axis_t yup);
20 ~AliH2F();
21
22public:
73042f01 23 AliH2F(const AliH2F &his);
24 AliH2F & operator = (const AliH2F &his);
88cb7938 25// TClonesArray * FindPeaks(Float_t threshold, Float_t noise);
cc80f89e 26 //find peaks and write it in form of AliTPCcluster to array
27 void ClearSpectrum();
28 void AddGauss(Float_t x,Float_t y,Float_t sx, Float_t sy, Float_t max);
29 void AddNoise(Float_t sn);
30 void ClearUnderTh(Int_t threshold);
31 void Round();
32 //round float values to integer values
73042f01 33
cc80f89e 34 AliH2F * GetSubrange2d(Float_t xmin, Float_t xmax,
35 Float_t ymin, Float_t ymax);
36 //create new 2D histogram
37 Float_t GetOccupancy(Float_t th=1. , Float_t xmin=0, Float_t xmax=0,
38 Float_t ymin=0, Float_t ymax=0);
39 //calculate ration of channel over threshold to all channels
40 TH1F * GetAmplitudes(Float_t zmin, Float_t zmax, Float_t th=1. , Float_t xmin=0, Float_t xmax=0,
41 Float_t ymin=0, Float_t ymax=0);
42 //generate one dim histogram of amplitudes
cc80f89e 43
44public:
45
73042f01 46protected:
cc80f89e 47
48private:
73042f01 49
cc80f89e 50 ClassDef(AliH2F,1)
51};
52
53#endif /*TH2FSMOOTH_H */