StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
dEdxHist.h
1 #ifndef __dEdxHits_h__
2 #define __dEdxHits_h__
3 #include "TH2.h"
4 #include "TH3.h"
5 #include "TProfile2D.h"
6 #include "StProbPidTraits.h"
7 class Hists3D {
8  private:
9  union {TH1 *hists[9]; TH3F *h3;}; // uncorrected
10  TH3F *h3C, *h3N, *h3Ne, *h3Npi, *h3NK, *h3NP, *h3Nd;
11  TProfile2D* pdX;
12  Int_t fNHist;
13  public:
14  static Int_t NtotHist;
15  Hists3D(const Char_t *Name = "SecRow3", const Char_t *Title = "<log(dEdx/Pion)>",
16  const Char_t *TitleX = "sector", const Char_t *TitleY = "row",
17  Int_t nXBins = 24,
18  Int_t nYBins = 45, Double_t ymin = 0, Double_t ymax = -1,
19  Int_t nZBins = 200, Double_t ZdEdxMin = -5., Double_t ZdEdxMax = 5.,
20  Double_t xmin = 0, Double_t xmax = -1, Int_t nh = NtotHist);
21  virtual ~Hists3D() {}
22  void Fill(Double_t x, Double_t y, Double_t *z);
23  void FillY(Double_t x, Double_t *y, Double_t *z);
24 };
25 //________________________________________________________________________________
26 class Hists2D {
27  public:
28  TH2F *dev[KPidParticles][3]; // deviation of measurement from prediction ffitZ[hyp]
29  TH2F *devT[KPidParticles][3]; // deviation of measurement from prediction ffitZ[hyp], unique
30  Hists2D(const Char_t *Name = "fit");
31  virtual ~Hists2D() {}
32 };
33 #endif