]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HBTAN/AliHBTLLWeightTheorFctn.cxx
Correct phi-range.
[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"
a6e49985 11
12//--for test--AliHBTLLWeightQInvFctn* yyy= new AliHBTLLWeightQInvFctn();
9714a029 13/*************************************************************/
14/*************************************************************/
15/*************************************************************/
a6e49985 16
17ClassImp(AliHBTLLWeightTheorQInvFctn)
18/*************************************************************/
19
20AliHBTLLWeightTheorQInvFctn::
21AliHBTLLWeightTheorQInvFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
604034d8 22 AliHBTOnePairFctn1D(nbins,maxXval,minXval)
a6e49985 23{
604034d8 24 //ctor
9714a029 25 fWriteNumAndDen = kTRUE;//change default behaviour
26 Rename("wqinvtheorcf","Q_{inv} Weight Theoretical Correlation Function");
a6e49985 27}
28/****************************************************************/
29void AliHBTLLWeightTheorQInvFctn::ProcessSameEventParticles(AliHBTPair* partpair)
30{
604034d8 31 //Processes Particles and tracks Same different even
a6e49985 32 partpair = CheckPair(partpair);
ce5d39b1 33 if (partpair == 0x0) return;
47d9a058 34 Double_t weight = partpair->GetLLWeight();
a6e49985 35 if(TMath::Abs(weight)<=10.) fNumerator->Fill(partpair->GetQInv(),weight);
36}
37
38/**************************************************************/
39TH1* AliHBTLLWeightTheorQInvFctn::GetResult()
40{
604034d8 41 //returns ratio of numerator and denominator
42 return GetRatio(Scale());
a6e49985 43}
44
9714a029 45/*************************************************************/
46/*************************************************************/
47/*************************************************************/
48
49ClassImp(AliHBTLLWeightTheorQOutFctn)
50/*************************************************************/
51
52AliHBTLLWeightTheorQOutFctn::
53AliHBTLLWeightTheorQOutFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
54 AliHBTOnePairFctn1D(nbins,maxXval,minXval)
55{
56 //ctor
57 fWriteNumAndDen = kTRUE;//change default behaviour
58 Rename("wqouttheorcf","Q_{out} Weight Theoretical Correlation Function");
59}
60/****************************************************************/
61void AliHBTLLWeightTheorQOutFctn::ProcessSameEventParticles(AliHBTPair* partpair)
62{
63 //Processes Particles and tracks Same different even
64 partpair = CheckPair(partpair);
ce5d39b1 65 if (partpair == 0x0) return;
47d9a058 66 Double_t weight = partpair->GetLLWeight();
9714a029 67 if(TMath::Abs(weight)<=10.) fNumerator->Fill(partpair->GetQOutCMSLC(),weight);
68}
69
70/**************************************************************/
71TH1* AliHBTLLWeightTheorQOutFctn::GetResult()
72{
73 //returns ratio of numerator and denominator
74 return GetRatio(Scale());
75}
76
77/*************************************************************/
78/*************************************************************/
79/*************************************************************/
80
81ClassImp(AliHBTLLWeightTheorQSideFctn)
82/*************************************************************/
83
84AliHBTLLWeightTheorQSideFctn::
85AliHBTLLWeightTheorQSideFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
86 AliHBTOnePairFctn1D(nbins,maxXval,minXval)
87{
88 //ctor
89 fWriteNumAndDen = kTRUE;//change default behaviour
90 Rename("wqsidetheorcf","Q_{side} Weight Theoretical Correlation Function");
91}
92/****************************************************************/
93void AliHBTLLWeightTheorQSideFctn::ProcessSameEventParticles(AliHBTPair* partpair)
94{
95 //Processes Particles and tracks Same different even
96 partpair = CheckPair(partpair);
ce5d39b1 97 if (partpair == 0x0) return;
47d9a058 98 Double_t weight = partpair->GetLLWeight();
9714a029 99 if(TMath::Abs(weight)<=10.) fNumerator->Fill(partpair->GetQSideCMSLC(),weight);
100}
101
102/**************************************************************/
103TH1* AliHBTLLWeightTheorQSideFctn::GetResult()
104{
105 //returns ratio of numerator and denominator
106 return GetRatio(Scale());
107}
108
109/*************************************************************/
110/*************************************************************/
111/*************************************************************/
112
113ClassImp(AliHBTLLWeightTheorQLongFctn)
114/*************************************************************/
115
116AliHBTLLWeightTheorQLongFctn::
117AliHBTLLWeightTheorQLongFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
118 AliHBTOnePairFctn1D(nbins,maxXval,minXval)
119{
120 //ctor
121 fWriteNumAndDen = kTRUE;//change default behaviour
122 Rename("wqlongtheorcf","Q_{long} Weight Theoretical Correlation Function");
123}
124/****************************************************************/
125void AliHBTLLWeightTheorQLongFctn::ProcessSameEventParticles(AliHBTPair* partpair)
126{
127 //Processes Particles and tracks Same different even
128 partpair = CheckPair(partpair);
ce5d39b1 129 if (partpair == 0x0) return;
47d9a058 130 Double_t weight = partpair->GetLLWeight();
9714a029 131 if(TMath::Abs(weight)<=10.) fNumerator->Fill(partpair->GetQLongCMSLC(),weight);
132}
133
134/**************************************************************/
135TH1* AliHBTLLWeightTheorQLongFctn::GetResult()
136{
137 //returns ratio of numerator and denominator
138 return GetRatio(Scale());
139}