Bug fix in GetAll function: specific entries and caching were not treated
[u/mrichter/AliRoot.git] / HMPID / AliHMPIDRecon.h
d3da6dc4 1#ifndef AliHMPIDRecon_h
2#define AliHMPIDRecon_h
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
8// //
9// AliHMPIDRecon //
10// //
11// HMPID class to perfom pattern recognition based on Hough transfrom //
12// //
16#include <TTask.h> //base class
17#include <TVector3.h> //fields
59280a5a 19class TClonesArray; //CkovAngle()
20class AliESDtrack; //CkovAngle()
d3da6dc4 22class AliHMPIDRecon : public TTask
24public :
25 AliHMPIDRecon();
26 virtual ~AliHMPIDRecon() {}
394d35c1 29 void CkovAngle (Double_t xRa,Double_t yRa,AliESDtrack *pTrk,TClonesArray *pCluLst,Double_t nmean); //reconstructed Theta Cerenkov
d3da6dc4 30 Double_t FindPhotCkov (Double_t cluX,Double_t cluY ); //find ckov angle for single photon candidate
31 Double_t FindPhotPhi (Double_t cluX,Double_t cluY ); //find phi angle for single photon candidate
32 Double_t FindRingCkov (Int_t iNclus ); //best ckov for ring formed by found photon candidates
33 Double_t FindRingArea (Double_t ckov )const;//estimated area of ring in cm^2
34 Int_t FlagPhot (Double_t ckov ); //is photon ckov near most probable track ckov
35 Double_t HoughResponse( ); //most probable track ckov angle
36 void Propagate (const TVector3 &dir, TVector3 &pos,Double_t z )const;//propagate photon alogn the line
37 void Refract ( TVector3 &dir, Double_t n1, Double_t n2)const;//refract photon on the boundary
394d35c1 38 Double_t TracePhot (Double_t x,Double_t y,Double_t ckovTh,Double_t ckovPh,TVector2 &pos)const;//trace photon created by track to PC
50e69536 39 void SetTrack (Double_t x,Double_t y,Double_t theta,Double_t phi ){fTrkDir.SetMagThetaPhi(1,theta,phi); fTrkPos.Set(x,y);}//set track
d3da6dc4 40 Double_t SigLoc (Double_t ckovTh,Double_t ckovPh,Double_t beta )const;//error due to cathode segmetation
41 Double_t SigGeom (Double_t ckovTh,Double_t ckovPh,Double_t beta )const;//error due to unknown photon origin
42 Double_t SigCrom (Double_t ckovTh,Double_t ckovPh,Double_t beta )const;//error due to unknonw photon energy
43 Double_t Sigma2 (Double_t ckovTh,Double_t ckovPh )const;//photon candidate sigma
59280a5a 44 enum ETrackingFlags {kMipDistCut=-9,kMipQdcCut=-5,kNoPhotAccept=-11};
394d35c1 45
869a8c81 46 static const Double_t fgkRadThick; //radiator thickness
47 static const Double_t fgkWinThick; //window thickness
48 static const Double_t fgkGapThick; //proximity gap thickness
869a8c81 49 static const Double_t fgkWinIdx; //mean refractive index of WIN material (SiO2)
50 static const Double_t fgkGapIdx; //mean refractive index of GAP material (CH4)
394d35c1 51protected:
abb5f786 52 Double_t fRadNmean; //C6F14 mean refractive index
d3da6dc4 53 Int_t fPhotCnt; // counter of photons candidate
54 Int_t fPhotFlag[3000]; // flags of photon candidates
55 Double_t fPhotCkov[3000]; // Ckov angles of photon candidates, [rad]
56 Double_t fPhotPhi [3000]; // phis of photons candidates, [rad]
57 Double_t fPhotWei [3000]; // weigths of photon candidates
58 Double_t fCkovSigma2; // sigma2 of the reconstructed ring
60 Bool_t fIsWEIGHT; // flag to consider weight procedure
61 Float_t fDTheta; // Step for sliding window
62 Float_t fWindowWidth; // Hough width of sliding window
64 TVector3 fTrkDir; //track direction in LORS
65 TVector2 fTrkPos; //track positon in LORS at the middle of radiator
66 ClassDef(AliHMPIDRecon,0)
cf7e313e 68
d3da6dc4 69#endif // #ifdef AliHMPIDRecon_cxx