]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGDQ/dielectron/AliDielectronBtoJPSItoEle.h
Add Mahmut's pp task
[u/mrichter/AliRoot.git] / PWGDQ / dielectron / AliDielectronBtoJPSItoEle.h
1 #ifndef ALIDIELECTRONBTOJPSITOELE_H\r
2 #define ALIDIELECTRONBTOJPSITOELE_H\r
3 /* Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. *\r
4  * See cxx source for full Copyright notice                               */\r
5 \r
6 //-------------------------------------------------------------------------\r
7 //                         Class AliDielectronBtoJPSItoEle\r
8 //                  Unbinned log-likelihood fit analysis class\r
9 //\r
10 //                             Origin: C.Di Giglio\r
11 //       Contact: Carmelo.Digiglio@ba.infn.it , giuseppe.bruno@ba.infn.it\r
12 //-------------------------------------------------------------------------\r
13 \r
14 #include "TH1F.h"\r
15 \r
16 class TNtuple ;\r
17 class AliDielectronBtoJPSItoEleCDFfitHandler ; \r
18 class AliDielectronBtoJPSItoEleCDFfitFCN ; \r
19 \r
20 class AliDielectronBtoJPSItoEle : public TNamed {\r
21         public:\r
22                 //\r
23                 AliDielectronBtoJPSItoEle();\r
24                 AliDielectronBtoJPSItoEle(const AliDielectronBtoJPSItoEle& source);\r
25                 AliDielectronBtoJPSItoEle& operator=(const AliDielectronBtoJPSItoEle& source);\r
26                 virtual ~AliDielectronBtoJPSItoEle();\r
27 \r
28                 Int_t DoMinimization(Int_t step = 0);\r
29                 void ReadCandidates(TNtuple* nt, Double_t* &x, Double_t* &m, Int_t * &typeCand, Int_t& n); // primary JPSI + secondary JPSI + bkg couples\r
30 \r
31                 void SetPtBin(Int_t BinNum) { fPtBin = BinNum ; }\r
32                 void SetCsiMC();\r
33                 void SetFitHandler(Double_t* x /*pseudoproper*/, Double_t* m /*inv mass*/, Int_t *type /*type*/, Int_t ncand /*candidates*/); \r
34                 void CloneMCtemplate(const TH1F* MCtemplate) {fMCtemplate = (TH1F*)MCtemplate->Clone("fMCtemplate");}\r
35                 void SetResTypeAnalysis(TString resType){fResType = resType;}\r
36                 Double_t* GetResolutionConstants(Double_t* resolutionConst);\r
37                 AliDielectronBtoJPSItoEleCDFfitHandler* GetCDFFitHandler() const { return fFCNfunction ; }\r
38                 Int_t GetPtBin() const { return fPtBin ; }\r
39 \r
40         private:\r
41                 //\r
42                 AliDielectronBtoJPSItoEleCDFfitHandler* fFCNfunction; //! pointer to the interface class\r
43                 Int_t fPtBin;                               // number of pt bin in which the analysis is performes\r
44                 TH1F* fMCtemplate;                          //! template of the MC distribution for the x distribution of the secondary J/psi\r
45                 TString fResType;                           // string with candidate's types considered\r
46 \r
47                 ClassDef(AliDielectronBtoJPSItoEle,1); // AliDielectronBtoJPSItoEle class\r
48 };\r
49 \r
50 #endif\r