M AliTPCcalibBase.h - SetRun function
[u/mrichter/AliRoot.git] / TPC / AliTPCcalibTime.h
CommitLineData
c74c5f6c 1#ifndef ALITPCCALIBTIME_H
2#define ALITPCCALIBTIME_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"
3e0d9569 8#include "THnSparse.h" // Temporary
9#include "TH1D.h" // Temporary make code compiling for HLT in the
2811495d 10class TObjArray;
c74c5f6c 11
12class TH1F;
13class TH3F;
14class TH2F;
15class THnSparse;
3e0d9569 16class TH1D;
c74c5f6c 17class TList;
18class AliESDEvent;
19class AliESDtrack;
da6c0bc9 20class AliTPCcalibLaser;
74235403 21class TGraphErrors;
dde68d36 22class AliSplineFit;
92761e02 23class AliESDfriendTrack;
c74c5f6c 24
c74c5f6c 25class AliTPCcalibTime:public AliTPCcalibBase {
26public:
27 AliTPCcalibTime();
74235403 28 AliTPCcalibTime(const Text_t *name, const Text_t *title, UInt_t StartTime, UInt_t EndTime, Int_t deltaIntegrationTimeVdrift);
c74c5f6c 29 virtual ~AliTPCcalibTime();
30
31 virtual void Process(AliESDEvent *event);
2811495d 32 virtual Long64_t Merge(TCollection *const li);
c74c5f6c 33 virtual void Analyze();
2811495d 34 static Bool_t IsLaser (const AliESDEvent *const event);
35 static Bool_t IsCosmics (const AliESDEvent *const event);
36 static Bool_t IsBeam (const AliESDEvent *const event);
2be25cc9 37 void ProcessLaser (AliESDEvent *event);
2811495d 38 void ProcessCosmic(const AliESDEvent *const event);
39 void ProcessBeam (const AliESDEvent *const event);
c74c5f6c 40 Bool_t IsPair(AliExternalTrackParam *tr0, AliExternalTrackParam *tr1);
2811495d 41 Bool_t IsCross(AliESDtrack *const tr0, AliESDtrack *const tr1);
42 Bool_t IsSame (AliESDtrack *const tr0, AliESDtrack *const tr1);
43 void ProcessSame(AliESDtrack *const track, AliESDfriendTrack *const friendTrack, const AliESDEvent *const event);
44 void ProcessAlignITS(AliESDtrack *const track, AliESDfriendTrack *const friendTrack, const AliESDEvent *const event, AliESDfriend *const ESDfriend);
45 void ProcessAlignTRD(AliESDtrack* const track, AliESDfriendTrack *const friendTrack);
46 void ProcessAlignTOF(AliESDtrack* const track, AliESDfriendTrack *const friendTrack);
d3ce44cb 47
6ba68367 48 THnSparse* GetHistVdriftLaserA(Int_t index=1) const {return fHistVdriftLaserA[index];};
49 THnSparse* GetHistVdriftLaserC(Int_t index=1) const {return fHistVdriftLaserC[index];};
2811495d 50 THnSparse* GetHistoDrift(const char* name) const;
51 TObjArray* GetHistoDrift() const;
dde68d36 52 TGraphErrors* GetGraphDrift(const char* name);
53 TObjArray* GetGraphDrift();
54 AliSplineFit* GetFitDrift(const char* name);
55// TObjArray* GetFitDrift();
6ba68367 56 TH1F* GetCosmiMatchingHisto(Int_t index=0) const {return fCosmiMatchingHisto[index];};
c74c5f6c 57
1aa15e8d 58 void Process(AliESDtrack *track, Int_t runNo=-1){AliTPCcalibBase::Process(track,runNo);};
59 void Process(AliTPCseed *track){return AliTPCcalibBase::Process(track);}
2811495d 60 TObjArray* GetAlignITSTPC() const {return fAlignITSTPC;} // alignemnt array ITS TPC match
61 TObjArray* GetAlignTRDTPC() const {return fAlignTRDTPC;} // alignemnt array TRD TPC match
62 TObjArray* GetAlignTOFTPC() const {return fAlignTOFTPC;} // alignemnt array TOF TPC match
3e55050f 63
9112627b 64 THnSparse* GetResHistoTPCITS(Int_t index) const { return (index<5) ? fResHistoTPCITS[index]:0;} //TPC-ITS matching map
391ffdb2 65 THnSparse* GetResHistoTPCvertex(Int_t index) const { return (index<5) ? fResHistoTPCvertex[index] :0;} //TPC vertex matching map
66 THnSparse* GetResHistoTPCTRD(Int_t index) const { return (index<5) ? fResHistoTPCTRD[index]:0;} //TPC-TRD matching map
0b736a46 67 THnSparse* GetResHistoTPCTOF(Int_t index) const { return (index<5) ? fResHistoTPCTOF[index]:0;} //TPC-TOF matching map
391ffdb2 68
69 void BookDistortionMaps(); // book histograms
70 void FillResHistoTPCITS(const AliExternalTrackParam * pTPCIn, const AliExternalTrackParam * pITSOut ); // fill residual histo
71 void FillResHistoTPC(const AliESDtrack * pTrack);
72 void FillResHistoTPCTRD(const AliExternalTrackParam * pTPCOut, const AliExternalTrackParam * pTRDIn );
0b736a46 73 void FillResHistoTPCTOF(const AliExternalTrackParam * pTPCOut, const AliExternalTrackParam * pTOFIn );
3e55050f 74
c74c5f6c 75private:
da6c0bc9 76 void ResetCurrent(); // reset current values
c74c5f6c 77
da6c0bc9 78 AliTPCcalibLaser * fLaser; //! laser calibration
79 //
80 // current information
81 //
82 Float_t fDz; //! current delta z
da6c0bc9 83
c74c5f6c 84 // cuts
85 //
86 Float_t fCutMaxD; // maximal distance in rfi ditection
74235403 87 Float_t fCutMaxDz; // maximal distance in z ditection
c74c5f6c 88 Float_t fCutTheta; // maximal distance in theta ditection
89 Float_t fCutMinDir; // direction vector products
74235403 90 Int_t fCutTracks; // maximal number of tracks
c74c5f6c 91
92 AliTPCcalibTime(const AliTPCcalibTime&);
93 AliTPCcalibTime& operator=(const AliTPCcalibTime&);
94
d3ce44cb 95 TH1F* fCosmiMatchingHisto[10];
391ffdb2 96 //
97 // distortion maps
98 //
99 THnSparse* fResHistoTPCITS[5]; //TPC-ITS matching map
100 THnSparse* fResHistoTPCvertex[5]; //TPC-ITS vertex matching map
101 THnSparse* fResHistoTPCTRD[5]; //TPC-TRD matching map
0b736a46 102 THnSparse* fResHistoTPCTOF[5]; //TPC-TRD matching map
2be25cc9 103 // laser histo
74235403 104 THnSparse * fHistVdriftLaserA[3]; //Histograms for V drift from laser
105 THnSparse * fHistVdriftLaserC[3]; //Histograms for V drift from laser
2be25cc9 106 // DELTA Z histo
dde68d36 107 TObjArray* fArrayDz; // array of DZ histograms for different triggers
817766d5 108 TObjArray* fAlignITSTPC; // alignemnt array ITS TPC match
109 TObjArray* fAlignTRDTPC; // alignemnt array TRD TPC match
110 TObjArray* fAlignTOFTPC; // alignemnt array TOF TPC match
74235403 111 Int_t fTimeBins; //Bins time
112 Double_t fTimeStart; //Start time
113 Double_t fTimeEnd; //End time
114 Int_t fPtBins; //Bins pt
115 Double_t fPtStart; //Start pt
116 Double_t fPtEnd; //End pt
117 Int_t fVdriftBins; //Bins vdrift
118 Double_t fVdriftStart; //Start vdrift
119 Double_t fVdriftEnd; //End vdrift
120 Int_t fRunBins; //Bins run
121 Double_t fRunStart; //Start run
122 Double_t fRunEnd; //End run
123 Int_t fBinsVdrift[4]; //Bins for vdrift
124 Double_t fXminVdrift[4]; //Xmax for vdrift
125 Double_t fXmaxVdrift[4]; //Xmin for vdrift
0b736a46 126 ClassDef(AliTPCcalibTime, 4);
c74c5f6c 127};
128
129#endif
130
131