AliRoot Core  3dc7879 (3dc7879)
AliH2F.h
Go to the documentation of this file.
1 #ifndef ALIH2F_H
2 #define ALIH2F_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 /* $Id$ */
7 
10 
11 #include "TH2.h"
12 
13 class TH1F;
14 class TClonesArray;
15 
16 class AliH2F : public TH2F {
17 public:
18  AliH2F();
19  AliH2F(const Text_t *name,const Text_t *title,Int_t nbinsx,
20  Axis_t xlow,Axis_t xup,Int_t nbinsy,Axis_t ylow,Axis_t yup);
21  ~AliH2F();
22 
23 public:
24  AliH2F(const AliH2F &his);
25  AliH2F & operator = (const AliH2F &his);
26 // TClonesArray * FindPeaks(Float_t threshold, Float_t noise);
27  //find peaks and write it in form of AliTPCcluster to array
28  void ClearSpectrum();
29  void AddGauss(Float_t x,Float_t y,Float_t sx, Float_t sy, Float_t max);
30  void AddNoise(Float_t sn);
31  void ClearUnderTh(Int_t threshold);
32  void Round();
33  //round float values to integer values
34 
35  AliH2F * GetSubrange2d(Float_t xmin, Float_t xmax,
36  Float_t ymin, Float_t ymax);
37  //create new 2D histogram
38  Float_t GetOccupancy(Float_t th=1. , Float_t xmin=0, Float_t xmax=0,
39  Float_t ymin=0, Float_t ymax=0);
40  //calculate ration of channel over threshold to all channels
41  TH1F * GetAmplitudes(Float_t zmin, Float_t zmax, Float_t th=1. , Float_t xmin=0, Float_t xmax=0,
42  Float_t ymin=0, Float_t ymax=0);
43  //generate one dim histogram of amplitudes
44 
45 public:
46 
47 protected:
48 
49 private:
50 
52  ClassDef(AliH2F,1)
54 };
55 
56 #endif /*TH2FSMOOTH_H */
void ClearUnderTh(Int_t threshold)
Definition: AliH2F.cxx:151
~AliH2F()
Definition: AliH2F.cxx:53
void AddGauss(Float_t x, Float_t y, Float_t sx, Float_t sy, Float_t max)
Definition: AliH2F.cxx:122
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)
Definition: AliH2F.cxx:231
void Round()
Definition: AliH2F.cxx:166
void ClearSpectrum()
Definition: AliH2F.cxx:88
Float_t GetOccupancy(Float_t th=1., Float_t xmin=0, Float_t xmax=0, Float_t ymin=0, Float_t ymax=0)
Definition: AliH2F.cxx:274
AliH2F & operator=(const AliH2F &his)
Definition: AliH2F.cxx:66
void AddNoise(Float_t sn)
Definition: AliH2F.cxx:103
AliH2F()
Definition: AliH2F.cxx:38
Definition: AliH2F.h:16
AliH2F * GetSubrange2d(Float_t xmin, Float_t xmax, Float_t ymin, Float_t ymax)
Definition: AliH2F.cxx:183