]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/AliTPCcalibLaser.h
fixing warnings (Federico C.)
[u/mrichter/AliRoot.git] / TPC / AliTPCcalibLaser.h
CommitLineData
c6914c83 1#ifndef ALITPCCALIBLASER_H
2#define ALITPCCALIBLASER_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7////
8////
9////
10
11#include "TObject.h"
12#include "TObjArray.h"
13#include "TLinearFitter.h"
14#include "AliTPCcalibBase.h"
15#include "TH1.h"
be113f6e 16#include "TH2F.h"
d3ce44cb 17#include "THnSparse.h"
c6914c83 18
c18f4385 19
c6914c83 20class AliExternalTrackParam;
21class AliESDtrack;
e9f38a4b 22class AliESDEvent;
23class AliESDfriend;
c6914c83 24class TGraphErrors;
1fd56785 25class TTree;
be113f6e 26class TH2F;
27class AliTPCLaserTrack;
592a0c8f 28class TCut;
c18f4385 29
c6914c83 30class AliTPCcalibLaser:public AliTPCcalibBase {
31public:
32 AliTPCcalibLaser();
3ac724f0 33 AliTPCcalibLaser(const Text_t *name, const Text_t *title, Bool_t full=kTRUE);
be113f6e 34 AliTPCcalibLaser(const AliTPCcalibLaser& laser);
35 AliTPCcalibLaser & operator=(const AliTPCcalibLaser& calibLaser);
c6914c83 36 virtual ~AliTPCcalibLaser();
e9f38a4b 37 virtual void Process(AliESDEvent *event);
592a0c8f 38 Int_t GetNtracks(){return fNtracks;}
c6914c83 39 virtual void Analyze();
c03e3250 40 virtual Long64_t Merge(TCollection *li);
57dc06f2 41 virtual void DumpMeanInfo(Float_t bfield, Int_t run=-1);
592a0c8f 42 static void DumpScanInfo(TTree * tree, const char * cutUser="entries>300&&(gz2<0.15&&gphi2<0.1&&gp42<0.02&&abs(gp41)<0.03)");
e5c59218 43 static void DumpFitInfo(TTree * chainFit, Int_t id);
be113f6e 44 static TH1* GetLaserProjection(TH2F* his, Int_t laser){return his->ProjectionY("aaa",laser+1,laser+1);}
e9f38a4b 45 //
46 //
47 virtual void DumpLaser(Int_t id);
61ae0623 48 virtual void RefitLaserJW(Int_t id);
c18f4385 49 void FitDriftV();
f6220766 50 Bool_t FitDriftV(Float_t minFraction);
51 //
be113f6e 52 void MakeDistHisto(Int_t id);
61ae0623 53 void AddCut(Double_t xcut, Double_t ycut, Double_t ncl){fEdgeXcuts[fNcuts]=xcut; fEdgeYcuts[fNcuts]=ycut; fNClCuts[fNcuts]=ncl; fNcuts++;}
54
e9f38a4b 55 Int_t FindMirror(AliESDtrack *track, AliTPCseed *seed);
c18f4385 56 Bool_t AcceptLaser(Int_t id);
be113f6e 57 Float_t GetDistance(AliExternalTrackParam *track, AliTPCLaserTrack *ltrp);
58 void MakeFitHistos();
59 void MergeFitHistos(AliTPCcalibLaser * add);
1aa15e8d 60 void Process(AliESDtrack *track, Int_t runNo=-1){AliTPCcalibBase::Process(track,runNo);};
61 void Process(AliTPCseed *track){return AliTPCcalibBase::Process(track);}
62 //
7af539c6 63 void SetBeamParameters(TVectorD& meanOffset, TVectorD& meanSlope,
64 TVectorD& sectorArray, Int_t option);
be113f6e 65
e9f38a4b 66 AliESDEvent * fESD; //! ESD event - not OWNER
67 AliESDfriend * fESDfriend; //! ESD event - not OWNER
592a0c8f 68 Int_t fNtracks; //! counter of associated laser tracks
69 //
e9f38a4b 70 TObjArray fTracksMirror; //! tracks with mirror information
71 TObjArray fTracksEsd; //! tracks with reconstructed information -
72 // not owner ESD
73 TObjArray fTracksEsdParam; //! tracks with reconstructed information -
74 // is owner ESD at mirror
75 TObjArray fTracksTPC; //! tracks with reconstructed information - TPC
be113f6e 76 Int_t fCounter[336]; //! counter of usage
77 Float_t fClusterCounter[336]; //!couter of clusters in "sensitive are"
78 Float_t fClusterSatur[336]; //!couter of saturated clusters in "sensitive are"
3ac724f0 79 Bool_t fFullCalib; // do full calibrration
be113f6e 80 Float_t fFitZ[336]; //fitted z position
c18f4385 81 //
2b35e8e6 82 TObjArray fDeltaZ; //-> array of histograms of delta z for each track
be113f6e 83 TObjArray fDeltaP3; //-> array of histograms of P3 for each track
84 TObjArray fDeltaP4; //-> array of histograms of P4 for each track
592a0c8f 85 TObjArray fDeltaPhi; //-> array of histograms of delta Phi for each track
86 TObjArray fDeltaPhiP; //-> array of histograms of delta Phi direction for each track
2b35e8e6 87 TObjArray fSignals; //->Array of dedx signals
7af539c6 88
95a0e09b 89 //
be113f6e 90 // Refit residuals histogram
91 //
d3ce44cb 92 THnSparseS *fHisLaser; // N dim histogram of laser
be113f6e 93 TH2F *fHisNclIn; //->Number of clusters inner
94 TH2F *fHisNclOut; //->Number of clusters outer
95 TH2F *fHisNclIO; //->Number of cluster inner outer
96 TH2F *fHisLclIn; //->Level arm inner
97 TH2F *fHisLclOut; //->Level arm outer
98 TH2F *fHisLclIO; //->Level aram inner outer
99
100 TH2F *fHisdEdx; //->dEdx histo
101 TH2F *fHisdZfit; //->distance to the mirror after linear fit
102 //
103 //
104 TH2F *fHisChi2YIn1; //->chi2 y inner - line
105 TH2F *fHisChi2YOut1; //->chi2 y inner - line
106 TH2F *fHisChi2YIn2; //->chi2 y inner - parabola
107 TH2F *fHisChi2YOut2; //->chi2 y inner - parabola
108 TH2F *fHisChi2YIO1; //->chi2 y IO - common
109 TH2F *fHisChi2ZIn1; //->chi2 z inner - line
110 TH2F *fHisChi2ZOut1; //->chi2 z inner - line
111 TH2F *fHisChi2ZIn2; //->chi2 z inner - parabola
112 TH2F *fHisChi2ZOut2; //->chi2 z inner - parabola
113 TH2F *fHisChi2ZIO1; //->chi2 z IO - common
114 //
115 //
116 TH2F *fHisPy1vP0; //-> delta y P0outer-P0inner - line
117 TH2F *fHisPy2vP0; //-> delta y P0outer-P0inner - parabola
118 TH2F *fHisPy3vP0; //-> delta y P0outer-P0inner - common parabola
119 TH2F *fHisPy1vP1; //-> delta ky P1outer-P1inner - line
120 TH2F *fHisPy2vP1; //-> delta ky P1outer-P1inner - parabola
121 TH2F *fHisPy3vP1; //-> delta ky P1outer-P1inner - common parabola
122 TH2F *fHisPy2vP2In; //-> Curv P2inner - parabola
123 TH2F *fHisPy2vP2Out; //-> Curv P2outer - parabola
124 TH2F *fHisPy3vP2IO; //-> Curv P2outerinner - common parabola
125 //
126 //
127 TH2F *fHisPz1vP0; //-> delta z P0outer-P0inner - line
128 TH2F *fHisPz2vP0; //-> delta z P0outer-P0inner - parabola
129 TH2F *fHisPz3vP0; //-> delta z P0outer-P0inner - common parabola
130 TH2F *fHisPz1vP1; //-> delta kz P1outer-P1inner - line
131 TH2F *fHisPz2vP1; //-> delta kz P1outer-P1inner - parabola
132 TH2F *fHisPz3vP1; //-> delta kz P1outer-P1inner - common parabola
133 TH2F *fHisPz2vP2In; //-> Curv P2inner - parabola
134 TH2F *fHisPz2vP2Out; //-> Curv P2outer - parabola
135 TH2F *fHisPz3vP2IO; //-> Curv P2outerinner - common parabola
136 //
95a0e09b 137 // Residual histograms
138 //
139 TObjArray fDeltaYres; //-> array of histograms of delta y residuals for each track
140 TObjArray fDeltaZres; //-> array of histograms of delta z residuals for each track
108953e9 141 TObjArray fDeltaYres2; //-> array of histograms of delta y residuals for each track
142 TObjArray fDeltaZres2; //-> array of histograms of delta z residuals for each track
7af539c6 143 TObjArray fDeltaYresAbs; //-> array of histograms of absolute delta y residuals for each track
144 TObjArray fDeltaZresAbs; //-> array of histograms of absolute delta z residuals for each track
108953e9 145 // TObjArray fDeltaYres3; //-> array of histograms of delta y residuals for each track
146 //TObjArray fDeltaZres3; //-> array of histograms of delta z residuals for each track
147
95a0e09b 148 //
c18f4385 149 TVectorD* fFitAside; //! drift fit - A side
150 TVectorD* fFitCside; //! drift fit - C- side
108953e9 151 TVectorD* fFitACside; //! drift fit - A+C- side
c18f4385 152 //
61ae0623 153 TVectorD fEdgeXcuts; //! cuts in local x direction; used in the refit of the laser tracks
154 TVectorD fEdgeYcuts; //! cuts in local y direction; used in the refit of the laser tracks
155 TVectorD fNClCuts; //! cuts on the number of clusters per tracklet; used in the refit of the laser tracks
156 Int_t fNcuts; //! number of cuts
7af539c6 157 TVectorD fBeamSectorOuter; //! sector map for beams in outer sector
158 TVectorD fBeamSectorInner; //! sector map for beams in inner sector
159 TVectorD fBeamOffsetYOuter; //! absolute y beam offset in outer sector
160 TVectorD fBeamSlopeYOuter; //! absolute y beam slope in outer sector
161 TVectorD fBeamOffsetYInner; //! absolute y beam offset in inner sector
162 TVectorD fBeamSlopeYInner; //! absolute y beam slope in inner sector
163 TVectorD fBeamOffsetZOuter; //! absolute z beam offset in outer sectror
164 TVectorD fBeamSlopeZOuter; //! absolute z beam slope in outer sector
165 TVectorD fBeamOffsetZInner; //! absolute z beam offset in inner sectror
166 TVectorD fBeamSlopeZInner; //! absolute z beam slope in inner sector
167 Bool_t fInverseSlopeZ; //! invert slope in z - mismatch between database and lasers
61ae0623 168 //
c18f4385 169private:
d3ce44cb 170 ClassDef(AliTPCcalibLaser,4)
c6914c83 171};
172
173
174
175
176
177#endif