]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/Cal/AliTRDCalPIDRefMaker.h
Update documentation (SPD, SSD, multiplicity)
[u/mrichter/AliRoot.git] / TRD / Cal / AliTRDCalPIDRefMaker.h
CommitLineData
f4277607 1#ifndef ALITRDCALPIDREFMAKER_H
2#define ALITRDCALPIDREFMAKER_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
8///////////////////////////////////////////////////////////////////////////////
9// //
10// TRD calibration class for building reference data for PID //
11// //
12///////////////////////////////////////////////////////////////////////////////
13
14#ifndef ROOT_TObject
15#include "TObject.h"
16#endif
17
18class TH1;
19class TH2;
20class TH3;
21class TPrincipal;
22class TLinearFitter;
23
24class AliTRDCalPIDRefMaker : public TObject {
25
26public:
27 AliTRDCalPIDRefMaker();
28 AliTRDCalPIDRefMaker(const AliTRDCalPIDRefMaker &ref);
29 ~AliTRDCalPIDRefMaker();
30 AliTRDCalPIDRefMaker& operator=(const AliTRDCalPIDRefMaker &ref);
31
6c86e4be 32 Bool_t BuildLQReferences(Char_t *filename="TRDpidLQ.root", Char_t *dir =".");
33 Bool_t BuildNNReferences(Char_t *filename="TRDpidNN.root", Char_t *dir =".");
f4277607 34
35 static Double_t Estimate2D2(TH2 *h, Float_t &x, Float_t &y);
36 static Double_t Estimate2D1(TH2 *h, Float_t &x, Float_t &y, Float_t &dCT, Float_t &rmin, Float_t &rmax);
37 // Double_t Estimate3D2(TH3 *h, Float_t &x, Float_t &y, Float_t &z);
38
39private:
40 Int_t CheckProdDirTree(Char_t *dir=".");
41 void Prepare2D();
42 void Reset();
43 void SaveReferences(const Int_t mom, const char *fn);
44
45
46private:
47 TPrincipal *fPrinc[5]; // Used for principal component analysis
48 static TLinearFitter *fFitter2D2; // Working object for linear fitter
49 static TLinearFitter *fFitter2D1; // Working object for linear fitter
6c86e4be 50 TH2 *fH2dEdx[5]; // dE/dx data holders
51 TH1 *fH1TB[2]; // Max time bin data holders
f4277607 52
6c86e4be 53 ClassDef(AliTRDCalPIDRefMaker, 2) // Reference histograms builder
f4277607 54
55};
56
57#endif
58