]>
Commit | Line | Data |
---|---|---|
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 | ||
19 | class TClonesArray; //CkovAngle() | |
20 | class AliESDtrack; //CkovAngle() | |
21 | ||
22 | class AliHMPIDRecon : public TTask | |
23 | { | |
24 | public : | |
25 | AliHMPIDRecon(); | |
26 | virtual ~AliHMPIDRecon() {} | |
27 | ||
28 | ||
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 | |
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 | |
35 | void Propagate (const TVector3 dir, TVector3 &pos,Double_t z )const;//propagate photon alogn the line | |
36 | void Refract ( TVector3 &dir, Double_t n1, Double_t n2)const;//refract photon on the boundary | |
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 | |
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 | |
48 | enum ETrackingFlags {kMipDistCut=-9,kMipQdcCut=-5,kNoPhotAccept=-11}; | |
49 | ||
50 | protected: | |
51 | Double_t fRadNmean; //C6F14 mean refractive index | |
52 | Int_t fPhotCnt; // counter of photons candidate | |
53 | Int_t fPhotFlag[3000]; // flags of photon candidates | |
54 | Double_t fPhotCkov[3000]; // Ckov angles of photon candidates, [rad] | |
55 | Double_t fPhotPhi [3000]; // phis of photons candidates, [rad] | |
56 | Double_t fPhotWei [3000]; // weigths of photon candidates | |
57 | Double_t fCkovSigma2; // sigma2 of the reconstructed ring | |
58 | ||
59 | Bool_t fIsWEIGHT; // flag to consider weight procedure | |
60 | Float_t fDTheta; // Step for sliding window | |
61 | Float_t fWindowWidth; // Hough width of sliding window | |
62 | ||
63 | TVector3 fTrkDir; //track direction in LORS at RAD | |
64 | TVector2 fTrkPos; //track positon in LORS at RAD | |
65 | TVector2 fPc; //track position at PC | |
66 | ||
67 | private: | |
68 | static const Double_t fgkRadThick; //radiator thickness | |
69 | static const Double_t fgkWinThick; //window thickness | |
70 | static const Double_t fgkGapThick; //proximity gap thickness | |
71 | static const Double_t fgkWinIdx; //mean refractive index of WIN material (SiO2) | |
72 | static const Double_t fgkGapIdx; //mean refractive index of GAP material (CH4) | |
73 | ||
74 | ClassDef(AliHMPIDRecon,0) | |
75 | }; | |
76 | ||
77 | #endif // #ifdef AliHMPIDRecon_cxx | |
78 |