]>
Commit | Line | Data |
---|---|---|
d3da6dc4 | 1 | #ifndef AliHMPIDRecon_h |
2 | #define AliHMPIDRecon_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 | // AliHMPIDRecon // | |
10 | // // | |
11 | // HMPID class to perfom pattern recognition based on Hough transfrom // | |
12 | // // | |
13 | ////////////////////////////////////////////////////////////////////////// | |
14 | ||
15 | ||
16 | #include <TTask.h> //base class | |
17 | #include <TVector3.h> //fields | |
18 | ||
59280a5a | 19 | class TClonesArray; //CkovAngle() |
20 | class AliESDtrack; //CkovAngle() | |
21 | ||
d3da6dc4 | 22 | class AliHMPIDRecon : public TTask |
23 | { | |
24 | public : | |
25 | AliHMPIDRecon(); | |
26 | virtual ~AliHMPIDRecon() {} | |
27 | ||
611e810d | 28 | |
a591e55f | 29 | void CkovAngle (AliESDtrack *pTrk,TClonesArray *pCluLst,Double_t nmean ); //reconstructed Theta Cerenkov |
30 | Bool_t FindPhotCkov (Double_t cluX,Double_t cluY,Double_t &thetaCer,Double_t &phiCer ); //find ckov angle for single photon candidate | |
d3da6dc4 | 31 | Double_t FindRingCkov (Int_t iNclus ); //best ckov for ring formed by found photon candidates |
32 | Double_t FindRingArea (Double_t ckov )const;//estimated area of ring in cm^2 | |
33 | Int_t FlagPhot (Double_t ckov ); //is photon ckov near most probable track ckov | |
34 | Double_t HoughResponse( ); //most probable track ckov angle | |
a591e55f | 35 | void Propagate (const TVector3 dir, TVector3 &pos,Double_t z )const;//propagate photon alogn the line |
d3da6dc4 | 36 | void Refract ( TVector3 &dir, Double_t n1, Double_t n2)const;//refract photon on the boundary |
a591e55f | 37 | TVector2 TracePhot (Double_t ckovTh,Double_t ckovPh )const;//trace photon created by track to PC |
38 | TVector2 TraceForward (TVector3 dirCkov )const;//tracing forward a photon from (x,y) to PC | |
39 | void RecPhot (TVector3 dirCkov,Double_t &thetaCer,Double_t &phiCer ); //theta,phi cerenkov reconstructed | |
40 | void SetTrack (Double_t xRad,Double_t yRad,Double_t theta,Double_t phi ) | |
41 | {fTrkDir.SetMagThetaPhi(1,theta,phi); fTrkPos.Set(xRad,yRad);} //set track parameter at RAD | |
42 | void SetImpPC (Double_t xPc,Double_t yPc ) | |
43 | {fPc.Set(xPc,yPc);} //set track impact to PC | |
d3da6dc4 | 44 | Double_t SigLoc (Double_t ckovTh,Double_t ckovPh,Double_t beta )const;//error due to cathode segmetation |
45 | Double_t SigGeom (Double_t ckovTh,Double_t ckovPh,Double_t beta )const;//error due to unknown photon origin | |
46 | Double_t SigCrom (Double_t ckovTh,Double_t ckovPh,Double_t beta )const;//error due to unknonw photon energy | |
47 | Double_t Sigma2 (Double_t ckovTh,Double_t ckovPh )const;//photon candidate sigma | |
59280a5a | 48 | enum ETrackingFlags {kMipDistCut=-9,kMipQdcCut=-5,kNoPhotAccept=-11}; |
611e810d | 49 | // HTA hidden track algorithm |
5b2b2013 | 50 | Bool_t CkovHiddenTrk (AliESDtrack *pTrk,TClonesArray *pCluLst,Double_t nmean); //Pattern recognition without trackinf information |
51 | Bool_t CluPreFilter (TClonesArray *pClu ); //Pre clustering filter to cut bkg clusters | |
52 | Bool_t DoRecHiddenTrk (TClonesArray *pClu ); //Calling to the fitted procedures | |
43400d2d | 53 | Bool_t FitEllipse (Double_t &phiRec ); //Fit clusters with a conical section (kTRUE only for ellipses) |
611e810d | 54 | Bool_t FitFree (Double_t phiRec ); //Fit (th,ph) of the track and ckovFit as result |
43400d2d | 55 | Double_t FunConSect (Double_t *c,Double_t x,Double_t y ); //Function of a general conical section |
5b2b2013 | 56 | void SetNClu (Int_t nclu ) {fNClu=nclu;} //Setter for # of clusters |
57 | void SetClCk (Int_t i,Bool_t what ) {fClCk[i]=what;} //Setter for cluster flags | |
43400d2d | 58 | void SetCkovFit (Double_t ckov ) {fCkovFit=ckov;} //Setter for ckof fitted |
59 | void SetTrkFit (Double_t th,Double_t ph ) {fThTrkFit = th;fPhTrkFit = ph;}//Setter for (th,ph) of the track | |
611e810d | 60 | void SetRadXY (Double_t x,Double_t y ) {fRadX = x;fRadY = y;} //Setter for (th,ph) of the track |
43400d2d | 61 | static void FunMinEl (Int_t&/* */,Double_t* /* */,Double_t &f,Double_t *par,Int_t /* */); //Fit function to find ellipes parameters |
611e810d | 62 | static void FunMinPhot(Int_t&/* */,Double_t* /* */,Double_t &f,Double_t *par,Int_t iflag); //Fit function to minimize thetaCer RMS/Sqrt(n) of n clusters |
43400d2d | 63 | Int_t IdxMip ()const {return fIdxMip;} //Getter index of MIP |
64 | Double_t MipX ()const {return fMipX;} //Getter of x MIP in LORS | |
65 | Double_t MipY ()const {return fMipY;} //Getter of y MIP in LORS | |
611e810d | 66 | Double_t MipQ ()const {return fMipQ;} //Getter of Q MIP |
67 | Double_t RadX ()const {return fRadX;} //Getter of x at RAD in LORS | |
68 | Double_t RadY ()const {return fRadY;} //Getter of y at RAD in LORS | |
43400d2d | 69 | Int_t NClu ()const {return fNClu;} //Getter of cluster multiplicity |
70 | Double_t XClu (Int_t i)const {return fXClu[i];} //Getter of x clu | |
71 | Double_t YClu (Int_t i)const {return fYClu[i];} //Getter of y clu | |
5b2b2013 | 72 | Bool_t ClCk (Int_t i)const {return fClCk[i];} //Getter of cluster flags |
43400d2d | 73 | Double_t CkovFit ()const {return fCkovFit;} //Getter of ckov angle fitted |
74 | Double_t ThTrkFit ()const {return fThTrkFit;} //Getter of theta fitted of the track | |
75 | Double_t PhTrkFit ()const {return fPhTrkFit;} //Getter of phi fitted of the track | |
76 | // | |
394d35c1 | 77 | protected: |
abb5f786 | 78 | Double_t fRadNmean; //C6F14 mean refractive index |
d3da6dc4 | 79 | Int_t fPhotCnt; // counter of photons candidate |
80 | Int_t fPhotFlag[3000]; // flags of photon candidates | |
81 | Double_t fPhotCkov[3000]; // Ckov angles of photon candidates, [rad] | |
82 | Double_t fPhotPhi [3000]; // phis of photons candidates, [rad] | |
83 | Double_t fPhotWei [3000]; // weigths of photon candidates | |
84 | Double_t fCkovSigma2; // sigma2 of the reconstructed ring | |
85 | ||
43400d2d | 86 | Bool_t fIsWEIGHT; // flag to consider weight procedure |
87 | Float_t fDTheta; // Step for sliding window | |
88 | Float_t fWindowWidth; // Hough width of sliding window | |
e0085eed | 89 | |
43400d2d | 90 | TVector3 fTrkDir; //track direction in LORS at RAD |
91 | TVector2 fTrkPos; //track positon in LORS at RAD | |
92 | TVector2 fPc; //track position at PC | |
611e810d | 93 | // HTA hidden track algorithm |
43400d2d | 94 | Double_t fMipX; //mip X position for Hidden Track Algorithm |
95 | Double_t fMipY; //mip Y position for Hidden Track Algorithm | |
611e810d | 96 | Double_t fMipQ; //mip Q for Hidden Track Algorithm |
97 | Double_t fRadX; //rad X position for Hidden Track Algorithm | |
98 | Double_t fRadY; //rad Y position for Hidden Track Algorithm | |
43400d2d | 99 | Int_t fIdxMip; //mip index in the clus list |
100 | Int_t fNClu; //n clusters to fit | |
5b2b2013 | 101 | Double_t fXClu[100]; //container for x clus position |
102 | Double_t fYClu[100]; //container for y clus position | |
103 | Bool_t fClCk[100]; //flag if cluster is used in fitting | |
43400d2d | 104 | Double_t fThTrkFit; //theta fitted of the track |
105 | Double_t fPhTrkFit; //phi fitted of the track | |
106 | Double_t fCkovFit; //estimated ring Cherenkov angle | |
107 | // | |
611e810d | 108 | private: |
e0085eed | 109 | static const Double_t fgkRadThick; //radiator thickness |
110 | static const Double_t fgkWinThick; //window thickness | |
111 | static const Double_t fgkGapThick; //proximity gap thickness | |
112 | static const Double_t fgkWinIdx; //mean refractive index of WIN material (SiO2) | |
113 | static const Double_t fgkGapIdx; //mean refractive index of GAP material (CH4) | |
611e810d | 114 | |
d3da6dc4 | 115 | ClassDef(AliHMPIDRecon,0) |
116 | }; | |
cf7e313e | 117 | |
d3da6dc4 | 118 | #endif // #ifdef AliHMPIDRecon_cxx |
119 |