]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/AliTPCcalibCosmic.h
Class for TPC dedx calibration using the selection with V0 topology.
[u/mrichter/AliRoot.git] / TPC / AliTPCcalibCosmic.h
1 #ifndef ALITPCCALIBCOSMIC_H
2 #define ALITPCCALIBCOSMIC_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 #include "AliTPCcalibBase.h"
8 #include "AliTPCCalPad.h"
9 #include "TH2F.h"
10 class TH1F;
11 class TList;
12 class AliESDEvent;
13 class AliESDtrack;
14
15 #include "TTreeStream.h"
16
17
18 class AliTPCcalibCosmic:public AliTPCcalibBase {
19 public:
20   AliTPCcalibCosmic(); 
21   AliTPCcalibCosmic(const Text_t *name, const Text_t *title);
22   virtual ~AliTPCcalibCosmic();
23   
24   virtual void      Process(AliESDEvent *event);
25   virtual Long64_t  Merge(TCollection *li);
26   virtual void      Analyze();
27   //
28   void              FindPairs(AliESDEvent *event);
29   Bool_t            IsPair(AliExternalTrackParam *tr0, AliExternalTrackParam *tr1);
30   void              SetGainMap(AliTPCCalPad *GainMap){fGainMap = GainMap;};
31   static void       CalculateBetheParams(TH2F *hist, Double_t * initialParam);
32   static Double_t   CalculateMIPvalue(TH1F * hist);
33   //
34   TH1F   *          GetHistNTracks(){return fHistNTracks;};
35   TH1F   *          GetHistClusters(){return fClusters;};
36   TH2F   *          GetHistAcorde(){return fModules;};
37   TH1F   *          GetHistPt(){return fHistPt;};
38   TH2F   *          GetHistDeDx(){return fDeDx;};
39   TH1F   *          GetHistMIP(){return fDeDxMIP;};
40   //
41   Double_t          GetMIPvalue(){return fMIPvalue;};
42   //
43   static void       BinLogX(TH1 * h);   // method for correct histogram binning
44
45
46 private:
47
48   void              FillAcordeHist(AliESDtrack *upperTrack);
49
50   AliTPCCalPad *fGainMap;         //  gain map from Krypton calibration
51   TH1F  *fHistNTracks;            //  histogram showing number of ESD tracks per event
52   TH1F  *fClusters;               //  histogram showing the number of clusters per track
53   TH2F  *fModules;                //  2d histogram of tracks which are propagated to the ACORDE scintillator array
54   TH1F  *fHistPt;                 //  Pt histogram of reconstructed tracks
55   TH2F  *fDeDx;                   //  dEdx spectrum showing the different particle types
56   TH1F  *fDeDxMIP;                //  TPC signal close to the MIP region of muons 0.4 < p < 0.45 GeV
57
58   Double_t fMIPvalue;             //  MIP value calculated via a fit to fDeDxMIP
59
60   // cuts
61   //
62   Float_t fCutMaxD;     // maximal distance in rfi ditection
63   Float_t fCutTheta;    // maximal distance in theta ditection
64   Float_t fCutMinDir;   // direction vector products
65
66   AliTPCcalibCosmic(const AliTPCcalibCosmic&); 
67   AliTPCcalibCosmic& operator=(const AliTPCcalibCosmic&); 
68
69   ClassDef(AliTPCcalibCosmic, 1); 
70 };
71
72 #endif
73