3 //-----------------------------------------------------------
4 // This class introduces the weights calculated according
5 // with functions of efficiency of identification (TPC+TOF)
6 // (calculated by B.V. Batyunia).
7 // Author: Ludmila Malinina, JINR (malinina@sunhe.jinr.ru)
8 //-----------------------------------------------------------
10 #include "AliHBTLLWeightTheorFctn.h"
11 #include "AliHBTLLWeights.h"
13 //--for test--AliHBTLLWeightQInvFctn* yyy= new AliHBTLLWeightQInvFctn();
15 ClassImp(AliHBTLLWeightTheorQInvFctn)
16 /*************************************************************/
18 AliHBTLLWeightTheorQInvFctn::
19 AliHBTLLWeightTheorQInvFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
20 AliHBTOnePairFctn1D(nbins,maxXval,minXval)
24 /****************************************************************/
25 void AliHBTLLWeightTheorQInvFctn::ProcessSameEventParticles(AliHBTPair* partpair)
27 //Processes Particles and tracks Same different even
28 partpair = CheckPair(partpair);
29 Double_t weight = AliHBTLLWeights::Instance()->GetWeight(partpair);
30 if(TMath::Abs(weight)<=10.) fNumerator->Fill(partpair->GetQInv(),weight);
33 /**************************************************************/
34 TH1* AliHBTLLWeightTheorQInvFctn::GetResult()
36 //returns ratio of numerator and denominator
37 return GetRatio(Scale());