]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HBTAN/AliHBTLLWeightTheorFctn.cxx
Using TMath::Abs instead of fabs
[u/mrichter/AliRoot.git] / HBTAN / AliHBTLLWeightTheorFctn.cxx
1 /* $Id$ */
2
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 //-----------------------------------------------------------
9
10 #include "AliHBTLLWeightTheorFctn.h"
11 #include "AliHBTLLWeights.h"
12
13 //--for test--AliHBTLLWeightQInvFctn* yyy= new AliHBTLLWeightQInvFctn();
14
15 ClassImp(AliHBTLLWeightTheorQInvFctn)  
16 /*************************************************************/
17
18 AliHBTLLWeightTheorQInvFctn::
19 AliHBTLLWeightTheorQInvFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
20   AliHBTOnePairFctn1D(nbins,maxXval,minXval)
21 {
22   //ctor
23 }
24 /****************************************************************/
25 void  AliHBTLLWeightTheorQInvFctn::ProcessSameEventParticles(AliHBTPair* partpair)
26 {
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);
31
32
33 /**************************************************************/
34 TH1* AliHBTLLWeightTheorQInvFctn::GetResult() 
35 {
36   //returns ratio of numerator and denominator
37   return GetRatio(Scale());
38 }                    
39