]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HBTAN/AliHBTLLWeightTheorFctn.h
bug correction
[u/mrichter/AliRoot.git] / HBTAN / AliHBTLLWeightTheorFctn.h
1 #ifndef ALIHBTLLWEIGHTTHEORFCTN_H
2 #define ALIHBTLLWEIGHTTHEORFCTN_H
3 //Author: Ludmila Malinina, JINR (malinina@sunhe.jinr.ru)
4
5 #include "AliHBTFunction.h"
6
7
8 class AliHBTLLWeights;
9
10 class AliHBTLLWeightTheorQInvFctn: public AliHBTOnePairFctn1D
11 {
12 //This function allows to obtain Q_inv correlation function with weights
13 //calculated by Lednicky's alghorithm.
14 //Numerator is filled with weighted events. Weights are attributed to simulated particles.
15 //Weights are calculated with corresponding simulated particles momenta.
16 //Denominator is filled with mixing unweighted simulated particles.
17 //One needs only simulated pairs, so 
18 //this function is of class AliHBTOnePairFctn1D.
19 //Author Ludmila Malinina JINR (malinina@sunhe.jinr.ru)
20
21   public:
22     AliHBTLLWeightTheorQInvFctn(Int_t nbins = 100, Double_t maxXval = 0.15, Double_t minXval = 0.0);
23   
24     virtual  ~AliHBTLLWeightTheorQInvFctn(){};
25     TH1* GetResult(); 
26
27     void   ProcessSameEventParticles(AliHBTPair* partpair);
28       
29     Double_t GetValue(AliHBTPair* partpair){ return partpair->GetQInv();} //isn't used
30
31   protected:
32
33   private:
34   public:
35      ClassDef(AliHBTLLWeightTheorQInvFctn,1)
36 };
37   
38 #endif