Catching up to NewIO -> Particle stores all passible PID and their probabilities
[u/mrichter/AliRoot.git] / HBTAN / AliHBTLLWeightTheorFctn.cxx
CommitLineData
604034d8 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//-----------------------------------------------------------
a6e49985 9
10#include "AliHBTLLWeightTheorFctn.h"
11#include "AliHBTLLWeights.h"
12
13//--for test--AliHBTLLWeightQInvFctn* yyy= new AliHBTLLWeightQInvFctn();
14
15ClassImp(AliHBTLLWeightTheorQInvFctn)
16/*************************************************************/
17
18AliHBTLLWeightTheorQInvFctn::
19AliHBTLLWeightTheorQInvFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
604034d8 20 AliHBTOnePairFctn1D(nbins,maxXval,minXval)
a6e49985 21{
604034d8 22 //ctor
a6e49985 23}
24/****************************************************************/
25void AliHBTLLWeightTheorQInvFctn::ProcessSameEventParticles(AliHBTPair* partpair)
26{
604034d8 27 //Processes Particles and tracks Same different even
a6e49985 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/**************************************************************/
34TH1* AliHBTLLWeightTheorQInvFctn::GetResult()
35{
604034d8 36 //returns ratio of numerator and denominator
37 return GetRatio(Scale());
a6e49985 38}
39