]>
Commit | Line | Data |
---|---|---|
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 | ||
15 | ClassImp(AliHBTLLWeightTheorQInvFctn) | |
16 | /*************************************************************/ | |
17 | ||
18 | AliHBTLLWeightTheorQInvFctn:: | |
19 | AliHBTLLWeightTheorQInvFctn(Int_t nbins, Double_t maxXval, Double_t minXval): | |
604034d8 | 20 | AliHBTOnePairFctn1D(nbins,maxXval,minXval) |
a6e49985 | 21 | { |
604034d8 | 22 | //ctor |
a6e49985 | 23 | } |
24 | /****************************************************************/ | |
25 | void 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 | /**************************************************************/ | |
34 | TH1* AliHBTLLWeightTheorQInvFctn::GetResult() | |
35 | { | |
604034d8 | 36 | //returns ratio of numerator and denominator |
37 | return GetRatio(Scale()); | |
a6e49985 | 38 | } |
39 |