o updates for PbPb analysis of B->J/psi (Fiorella)
[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, Double_t* &pt, Int_t * &typeCand, Int_t& n,Double_t massLow = -1., Double_t massUp = -1., Double_t ptLow = -1., Double_t ptUp = -1.); // primary JPSI + secondary JPSI + bkg couples\r
30 \r
31                 void SetCsiMC();\r
32                 void SetFitHandler(Double_t* x /*pseudoproper*/, Double_t* m /*inv mass*/, Double_t *pt /*transverse momentum */, Int_t *type /*type*/, Int_t ncand /*candidates*/); \r
33                 void CloneMCtemplate(const TH1F* MCtemplate) {fMCtemplate = (TH1F*)MCtemplate->Clone("fMCtemplate");}\r
34                 void SetResTypeAnalysis(TString resType){fResType = resType;}\r
35                 Double_t* GetResolutionConstants(Double_t* resolutionConst);\r
36                 AliDielectronBtoJPSItoEleCDFfitHandler* GetCDFFitHandler() const { return fFCNfunction ; }\r
37 \r
38         private:\r
39                 //\r
40                 AliDielectronBtoJPSItoEleCDFfitHandler* fFCNfunction; //! pointer to the interface class\r
41                 TH1F* fMCtemplate;                          //! template of the MC distribution for the x distribution of the secondary J/psi\r
42                 TString fResType;                           // string with candidate's types considered\r
43 \r
44                 ClassDef(AliDielectronBtoJPSItoEle,1); // AliDielectronBtoJPSItoEle class\r
45 };\r
46 \r
47 #endif\r