]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HBTAN/AliHBTWeightNonId3DTheorCorrFctn.h
Memory leak removed
[u/mrichter/AliRoot.git] / HBTAN / AliHBTWeightNonId3DTheorCorrFctn.h
1 #ifndef ALIHBTWEIGHTNONID3DTHEORCORRFCTN_H
2 #define ALIHBTWEIGHTNONID3DTHEORCORRFCTN_H
3
4 ///////////////////////////////////////////////////////
5 //                                                   //
6 // AliHBTWeightNonId3DCorrFctn.h                     //
7 //                                                   //
8 // Class for calculating 3D non-id correlation       //
9 // functions using method of weights                 //
10 //                                                   //
11 ///////////////////////////////////////////////////////
12
13 #include "AliHBTFunction.h"
14
15
16 class AliHBTWeights;
17
18 class AliHBTWeightNonId3DTheorCorrFctn: public AliHBTOnePairFctn1D
19 {
20   public:
21    AliHBTWeightNonId3DTheorCorrFctn(const char* name = "nonid3DCF", 
22                                const char* title= "3D Non-Id Theoretical Correlation Function");
23
24    AliHBTWeightNonId3DTheorCorrFctn(const char* name, const char* title,
25                                Int_t nbinsX, Float_t maxXval, Float_t minXval);
26    AliHBTWeightNonId3DTheorCorrFctn(const AliHBTWeightNonId3DTheorCorrFctn& in);
27
28    virtual ~AliHBTWeightNonId3DTheorCorrFctn();
29
30    void Init(); // InitFunction();
31    void ProcessSameEventParticles(AliHBTPair* partpair);
32    void ProcessDiffEventParticles(AliHBTPair* partpair);
33
34    void WriteFunction();
35    
36    TH1*     GetResult();
37    
38  protected:
39
40    Double_t GetValue(AliHBTPair* partpair) {return partpair->GetQInv();}
41    void BuildHistos(Int_t nbins, Float_t max, Float_t min);
42    
43    TH1D* fWeightNumOutP;
44    TH1D* fWeightDenOutP;
45    TH1D* fWeightRatOutP;
46    TH1D* fWeightNumOutN;
47    TH1D* fWeightDenOutN;
48    TH1D* fWeightRatOutN;
49    TH1D* fWeightRatOut;
50    TH1D* fWeightRatOutNOverP;
51
52    TH1D* fWeightNumSideP;
53    TH1D* fWeightDenSideP;
54    TH1D* fWeightRatSideP;
55    TH1D* fWeightNumSideN;
56    TH1D* fWeightDenSideN;
57    TH1D* fWeightRatSideN;
58    TH1D* fWeightRatSide;
59    TH1D* fWeightRatSideNOverP;
60
61    TH1D* fWeightNumLongP;
62    TH1D* fWeightDenLongP;
63    TH1D* fWeightRatLongP;
64    TH1D* fWeightNumLongN;
65    TH1D* fWeightDenLongN;
66    TH1D* fWeightRatLongN;
67    TH1D* fWeightRatLong;
68    TH1D* fWeightRatLongNOverP;
69    
70     
71   private:
72   
73     ClassDef(AliHBTWeightNonId3DTheorCorrFctn,1)
74 };
75
76 #endif