]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HBTAN/AliHBTLLWeightFctn.h
Gray particle generator, first commit.
[u/mrichter/AliRoot.git] / HBTAN / AliHBTLLWeightFctn.h
CommitLineData
7f92929e 1//This function allows to obtain Q_inv correlation function with weights
2//calculated by Lednicky's alghorithm.
3//Numerator is filled with weighted events. Weights are attributed to reconstructed tracks.
4//Weights are calculated with corresponding simulated particles momenta.
5//Denominator is filled with mixing unweighted reconstructed tracks.
6//One needs both pairs
7//(simulated and recontructed), thus function is of class AliHBTTwoPairFctn1D.
8
9#ifndef ALIHBTLLWEIGHTFCTN_H
10#define ALIHBTLLWEIGHTFCTN_H
11#include "AliHBTFunction.h"
12
13
14class AliHBTLLWeights;
15
16class AliHBTLLWeightQInvFctn: public AliHBTTwoPairFctn1D
17{
18 friend class AliHBTOnePairFctn1D;
19
20 public:
21 AliHBTLLWeightQInvFctn(Int_t nbins = 100, Double_t maxXval = 0.15, Double_t minXval = 0.0);
22 virtual ~AliHBTLLWeightQInvFctn(){};
23 TH1* GetResult();
24
25 void ProcessSameEventParticles(AliHBTPair* trackpair, AliHBTPair* partpair);
26 void ProcessDiffEventParticles(AliHBTPair* trackpair, AliHBTPair* partpair);
27
28 Double_t GetValue(AliHBTPair* trackpair, AliHBTPair* partpair)
29 { return trackpair->GetQInv()-partpair->GetQInv();} //isn't use
30
31
32 protected:
33
34 private:
35 public:
36 ClassDef(AliHBTLLWeightQInvFctn,1)
37};
38
39#endif