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