Cuts in 2 pair functions only on reconstructed pair
[u/mrichter/AliRoot.git] / HBTAN / AliHBTNonId3DCorrFctn.h
1 #ifndef ALIHBTNONID3DCORRFCTN_H
2 #define ALIHBTNONID3DCORRFCTN_H
3
4 ///////////////////////////////////////////////////////
5 //                                                   //
6 // AliHBTNonId3DCorrFctn.h                           //
7 //                                                   //
8 // Class for calculating 3D non-id correlation       //
9 // functions                                         //
10 //                                                   //
11 ///////////////////////////////////////////////////////
12
13 #include "AliHBTFunction.h"
14
15
16 class AliHBTNonId3DCorrFctn: public AliHBTOnePairFctn1D
17 {
18   public:
19    AliHBTNonId3DCorrFctn(const char* name = "nonid3DCF", 
20                          const char* title= "3D Non-Id Correlation Function");
21
22    AliHBTNonId3DCorrFctn(const char* name, const char* title,
23                          Int_t nbins, Float_t maxXval, Float_t minXval);
24    AliHBTNonId3DCorrFctn(const AliHBTNonId3DCorrFctn& in);
25
26    virtual ~AliHBTNonId3DCorrFctn();
27
28    void Init();
29    void ProcessSameEventParticles(AliHBTPair* pair);
30    void ProcessDiffEventParticles(AliHBTPair* pair);
31
32    void WriteFunction();
33    
34    TH1*     GetResult();
35    
36  protected:
37
38    Double_t GetValue(AliHBTPair* pair) const {return pair->GetQInv();}
39    void BuildHistos(Int_t nbins, Float_t max, Float_t min);
40    
41    TH1D* fNumOutP;
42    TH1D* fDenOutP;
43    TH1D* fRatOutP;
44    TH1D* fNumOutN;
45    TH1D* fDenOutN;
46    TH1D* fRatOutN;
47    TH1D* fRatOut;
48    TH1D* fRatOutNOverP;
49
50    TH1D* fNumSideP;
51    TH1D* fDenSideP;
52    TH1D* fRatSideP;
53    TH1D* fNumSideN;
54    TH1D* fDenSideN;
55    TH1D* fRatSideN;
56    TH1D* fRatSide;
57    TH1D* fRatSideNOverP;
58
59    TH1D* fNumLongP;
60    TH1D* fDenLongP;
61    TH1D* fRatLongP;
62    TH1D* fNumLongN;
63    TH1D* fDenLongN;
64    TH1D* fRatLongN;
65    TH1D* fRatLong;
66    TH1D* fRatLongNOverP;
67    
68     
69   private:
70   
71     ClassDef(AliHBTNonId3DCorrFctn,1)
72 };
73
74 #endif