Fixes for coding violations
[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 */
e0ef0ad7 6/*
7Comments to be written here:
8What do we calibrate.
9 Time dependence of gain and drift velocity in order to account for changes in: temperature, pressure, gas composition.
10*/
11
c74c5f6c 12
13#include "AliTPCcalibBase.h"
e0ef0ad7 14//#include "THnSparse.h" // Temporary
15//#include "TH1D.h" // Temporary make code compiling for HLT in the
16
2811495d 17class TObjArray;
c74c5f6c 18class TH1F;
19class TH3F;
20class TH2F;
21class THnSparse;
3e0d9569 22class TH1D;
c74c5f6c 23class TList;
24class AliESDEvent;
25class AliESDtrack;
da6c0bc9 26class AliTPCcalibLaser;
74235403 27class TGraphErrors;
dde68d36 28class AliSplineFit;
92761e02 29class AliESDfriendTrack;
c74c5f6c 30
c74c5f6c 31class AliTPCcalibTime:public AliTPCcalibBase {
32public:
33 AliTPCcalibTime();
660f0543 34 AliTPCcalibTime(const Text_t *name, const Text_t *title, UInt_t StartTime, UInt_t EndTime, Int_t deltaIntegrationTimeVdrift, Int_t memoryMode=2);
c74c5f6c 35 virtual ~AliTPCcalibTime();
36
37 virtual void Process(AliESDEvent *event);
2811495d 38 virtual Long64_t Merge(TCollection *const li);
c74c5f6c 39 virtual void Analyze();
9170f0f0 40 //static Bool_t IsLaser (const AliESDEvent *const event) const;
41 //static Bool_t IsCosmics (const AliESDEvent *const event) const;
42 //static Bool_t IsBeam (const AliESDEvent *const event) const;
2be25cc9 43 void ProcessLaser (AliESDEvent *event);
2811495d 44 void ProcessCosmic(const AliESDEvent *const event);
45 void ProcessBeam (const AliESDEvent *const event);
e0ef0ad7 46 Bool_t IsPair(const AliExternalTrackParam *tr0, const AliExternalTrackParam *tr1);
47 Bool_t IsCross(const AliESDtrack *const tr0, const AliESDtrack *const tr1);
48 Bool_t IsSame (const AliESDtrack *const tr0, const AliESDtrack *const tr1);
49 void ProcessSame(const AliESDtrack *const track, AliESDfriendTrack *const friendTrack, const AliESDEvent *const event);
50 void ProcessAlignITS(AliESDtrack *const track, const AliESDfriendTrack *const friendTrack, const AliESDEvent *const event, AliESDfriend *const ESDfriend);
51 void ProcessAlignTRD(AliESDtrack* const track, const AliESDfriendTrack *const friendTrack);
52 void ProcessAlignTOF(AliESDtrack* const track, const AliESDfriendTrack *const friendTrack);
d3ce44cb 53
6ba68367 54 THnSparse* GetHistVdriftLaserA(Int_t index=1) const {return fHistVdriftLaserA[index];};
55 THnSparse* GetHistVdriftLaserC(Int_t index=1) const {return fHistVdriftLaserC[index];};
2811495d 56 THnSparse* GetHistoDrift(const char* name) const;
57 TObjArray* GetHistoDrift() const;
dde68d36 58 TGraphErrors* GetGraphDrift(const char* name);
59 TObjArray* GetGraphDrift();
60 AliSplineFit* GetFitDrift(const char* name);
61// TObjArray* GetFitDrift();
6ba68367 62 TH1F* GetCosmiMatchingHisto(Int_t index=0) const {return fCosmiMatchingHisto[index];};
1aa15e8d 63 void Process(AliESDtrack *track, Int_t runNo=-1){AliTPCcalibBase::Process(track,runNo);};
64 void Process(AliTPCseed *track){return AliTPCcalibBase::Process(track);}
2811495d 65 TObjArray* GetAlignITSTPC() const {return fAlignITSTPC;} // alignemnt array ITS TPC match
66 TObjArray* GetAlignTRDTPC() const {return fAlignTRDTPC;} // alignemnt array TRD TPC match
67 TObjArray* GetAlignTOFTPC() const {return fAlignTOFTPC;} // alignemnt array TOF TPC match
3e55050f 68
9170f0f0 69 THnSparse * GetTPCVertexHisto(Int_t index) const { return fTPCVertex[index%12];}
70 THnSparse * GetTPCVertexHistoCorrelation(Int_t index) const { return fTPCVertexCorrelation[index%5];}
70036ef3 71
b9908d0b 72 THnSparse* GetResHistoTPCCE(Int_t index) const { return (index<5) ? fResHistoTPCCE[index]:0;} //TPC-CE matching map
9112627b 73 THnSparse* GetResHistoTPCITS(Int_t index) const { return (index<5) ? fResHistoTPCITS[index]:0;} //TPC-ITS matching map
391ffdb2 74 THnSparse* GetResHistoTPCvertex(Int_t index) const { return (index<5) ? fResHistoTPCvertex[index] :0;} //TPC vertex matching map
75 THnSparse* GetResHistoTPCTRD(Int_t index) const { return (index<5) ? fResHistoTPCTRD[index]:0;} //TPC-TRD matching map
0b736a46 76 THnSparse* GetResHistoTPCTOF(Int_t index) const { return (index<5) ? fResHistoTPCTOF[index]:0;} //TPC-TOF matching map
391ffdb2 77
78 void BookDistortionMaps(); // book histograms
b9908d0b 79 void FillResHistoTPCCE(const AliExternalTrackParam * pTPCIn, const AliExternalTrackParam * pTPCOut ); // fill residual histo
391ffdb2 80 void FillResHistoTPCITS(const AliExternalTrackParam * pTPCIn, const AliExternalTrackParam * pITSOut ); // fill residual histo
81 void FillResHistoTPC(const AliESDtrack * pTrack);
82 void FillResHistoTPCTRD(const AliExternalTrackParam * pTPCOut, const AliExternalTrackParam * pTRDIn );
0b736a46 83 void FillResHistoTPCTOF(const AliExternalTrackParam * pTPCOut, const AliExternalTrackParam * pTOFIn );
3e55050f 84
00ec4542 85 TObjArray * GetLaserArrayA() const { return fArrayLaserA;}
86 TObjArray * GetLaserArrayC() const { return fArrayLaserC;}
87
b9ab8e40 88
89 void SetCutTracks(Int_t maxTracks) { fCutTracks = maxTracks; } // set maximal number of tracks
90 Int_t GetCutTracks() const { return fCutTracks; } // retun maximal number of tracks
91
92
93
00ec4542 94protected:
da6c0bc9 95 void ResetCurrent(); // reset current values
660f0543 96 Int_t fMemoryMode; // 0 -do not fill THnSparse with residuals 1- fill only important QA THn 2 - Fill all THnsparse for calibration
da6c0bc9 97 AliTPCcalibLaser * fLaser; //! laser calibration
98 //
99 // current information
100 //
101 Float_t fDz; //! current delta z
da6c0bc9 102
c74c5f6c 103 // cuts
104 //
105 Float_t fCutMaxD; // maximal distance in rfi ditection
74235403 106 Float_t fCutMaxDz; // maximal distance in z ditection
c74c5f6c 107 Float_t fCutTheta; // maximal distance in theta ditection
108 Float_t fCutMinDir; // direction vector products
74235403 109 Int_t fCutTracks; // maximal number of tracks
c74c5f6c 110
c74c5f6c 111
e0ef0ad7 112 TH1F* fCosmiMatchingHisto[10]; // cosmic matching histogram
391ffdb2 113 //
114 // distortion maps
115 //
b9908d0b 116 THnSparse* fResHistoTPCCE[5]; //TPC-TPCE matching map
391ffdb2 117 THnSparse* fResHistoTPCITS[5]; //TPC-ITS matching map
118 THnSparse* fResHistoTPCvertex[5]; //TPC-ITS vertex matching map
119 THnSparse* fResHistoTPCTRD[5]; //TPC-TRD matching map
0b736a46 120 THnSparse* fResHistoTPCTOF[5]; //TPC-TRD matching map
2be25cc9 121 // laser histo
74235403 122 THnSparse * fHistVdriftLaserA[3]; //Histograms for V drift from laser
123 THnSparse * fHistVdriftLaserC[3]; //Histograms for V drift from laser
97d3fea0 124 TObjArray *fArrayLaserA; //Object array of driftvelocity laserA
125 TObjArray *fArrayLaserC; //Object array of driftvelocity laserC
70036ef3 126 //
127 // TPC vertex A side C side histo
128 //
b1fea14f 129 THnSparse * fTPCVertex[12]; // TPC vertex histograms A side c side - A+C -ESD
130 THnSparse * fTPCVertexCorrelation[5]; // TPC vertex correlation A side C side with TPC vertex and ITS vertex
2be25cc9 131 // DELTA Z histo
dde68d36 132 TObjArray* fArrayDz; // array of DZ histograms for different triggers
817766d5 133 TObjArray* fAlignITSTPC; // alignemnt array ITS TPC match
134 TObjArray* fAlignTRDTPC; // alignemnt array TRD TPC match
135 TObjArray* fAlignTOFTPC; // alignemnt array TOF TPC match
97d3fea0 136 Int_t fTimeKalmanBin; // width of Kalman bin - time in seconds
74235403 137 Int_t fTimeBins; //Bins time
138 Double_t fTimeStart; //Start time
139 Double_t fTimeEnd; //End time
140 Int_t fPtBins; //Bins pt
141 Double_t fPtStart; //Start pt
142 Double_t fPtEnd; //End pt
143 Int_t fVdriftBins; //Bins vdrift
144 Double_t fVdriftStart; //Start vdrift
145 Double_t fVdriftEnd; //End vdrift
146 Int_t fRunBins; //Bins run
147 Double_t fRunStart; //Start run
148 Double_t fRunEnd; //End run
149 Int_t fBinsVdrift[4]; //Bins for vdrift
150 Double_t fXminVdrift[4]; //Xmax for vdrift
151 Double_t fXmaxVdrift[4]; //Xmin for vdrift
00ec4542 152
153private:
154 AliTPCcalibTime(const AliTPCcalibTime&);
155 AliTPCcalibTime& operator=(const AliTPCcalibTime&);
156
b1fea14f 157 ClassDef(AliTPCcalibTime, 10);
c74c5f6c 158};
159
160#endif
161
162