1 #ifndef ALIHBTCORRECTOSLCORRELFCTN_H
2 #define ALIHBTCORRECTOSLCORRELFCTN_H
4 ///////////////////////////////////////////////////////
6 // AliHBTCorrectQ3DCorrelFctn //
8 // Class for calculating Q Invariant correlation //
9 // taking to the account resolution of the //
10 // detector and coulomb effects. //
12 // N[meas] N[ideal]/D[ideal]
13 // C(Q) = ------- * -----------------
14 // D[meas] N[smear]/D[smear]
16 // if smeared is eqal to the measured than we get ideal.
17 ///////////////////////////////////////////////////////
19 #include "AliHBTCorrectQInvCorrelFctn.h"
22 class AliHBTCorrectOSLCorrelFctn: public AliHBTOnePairFctn3D, public AliHBTCorrectedCorrelFctn
25 AliHBTCorrectOSLCorrelFctn(const char* name = "qoslcorrectedCF",
26 const char* title= "Corrected Q_{out}-Q_{side}-Q_{long} Correlation Fonction");
28 AliHBTCorrectOSLCorrelFctn(const Char_t *name, const Char_t *title,
29 Int_t nXbins, Double_t maxXval, Double_t minXval,
30 Int_t nYbins, Double_t maxYval, Double_t minYval,
31 Int_t nZbins, Double_t maxZval, Double_t minZval);
33 AliHBTCorrectOSLCorrelFctn(const AliHBTCorrectOSLCorrelFctn& in);
34 virtual ~AliHBTCorrectOSLCorrelFctn();
36 void ProcessSameEventParticles(AliHBTPair* pair);//process particles from same event (real pair)
37 void ProcessDiffEventParticles(AliHBTPair* pair);//process particles coming from different events (mixed pairs)
39 void SetInitialValues(Double_t lambda, Double_t rout, Double_t rside, Double_t rlong);
41 Int_t WriteFunction();//overloaded
43 TH1* GetResult();//returns the result histogram
44 void GetValues(AliHBTPair* pair, Double_t& x, Double_t& y, Double_t& z) const ;
46 Double_t GetModelValue(Double_t qout, Double_t qside, Double_t qlong) const;
51 void BuildHistos(Int_t nxbins, Float_t xmax, Float_t xmin,
52 Int_t nybins, Float_t ymax, Float_t ymin,
53 Int_t nzbins, Float_t zmax, Float_t zmin);
54 virtual void BuildHistos() {AliHBTFunction3D::BuildHistos();}
56 TH3F* fMeasCorrelFctn; //!Measured correlation function
58 TH3F* fSmearedNumer; //! Numerator of smeard q
59 TH3F* fSmearedDenom; //! Denominator of smeard q
60 TH3F* fMeasNumer; //! Numerator of ideal q calculated on basis of model equation
61 TH3F* fMeasDenom; //! Denominator of ideal q calculated on basis of model equation
70 ClassDef(AliHBTCorrectOSLCorrelFctn,1)
73 inline Double_t AliHBTCorrectOSLCorrelFctn::GetModelValue(Double_t qout, Double_t qside, Double_t qlong) const
75 //returns model value of the cf
76 return 1.0 + fLambda*TMath::Exp(( fROutSq*qout*qout + fRSideSq*qside*qside + fRLongSq*qlong*qlong) / (-0.038936366329));