1 #ifndef ALIDIELECTRONBTOJPSITOELE_H
2 #define ALIDIELECTRONBTOJPSITOELE_H
3 /* Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 //-------------------------------------------------------------------------
7 // Class AliDielectronBtoJPSItoEle
8 // Unbinned log-likelihood fit analysis class
10 // Origin: C.Di Giglio
11 // Contact: Carmelo.Digiglio@ba.infn.it , giuseppe.bruno@ba.infn.it
12 //-------------------------------------------------------------------------
17 class AliDielectronBtoJPSItoEleCDFfitHandler ;
18 class AliDielectronBtoJPSItoEleCDFfitFCN ;
20 class AliDielectronBtoJPSItoEle : public TNamed {
23 AliDielectronBtoJPSItoEle();
24 AliDielectronBtoJPSItoEle(const AliDielectronBtoJPSItoEle& source);
25 AliDielectronBtoJPSItoEle& operator=(const AliDielectronBtoJPSItoEle& source);
26 virtual ~AliDielectronBtoJPSItoEle();
28 Int_t DoMinimization(Int_t step = 0);
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
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*/);
33 void CloneMCtemplate(const TH1F* MCtemplate) {fMCtemplate = (TH1F*)MCtemplate->Clone("fMCtemplate");}
34 void SetResTypeAnalysis(TString resType){fResType = resType;}
35 Double_t* GetResolutionConstants(Double_t* resolutionConst);
36 AliDielectronBtoJPSItoEleCDFfitHandler* GetCDFFitHandler() const { return fFCNfunction ; }
40 AliDielectronBtoJPSItoEleCDFfitHandler* fFCNfunction; //! pointer to the interface class
41 TH1F* fMCtemplate; //! template of the MC distribution for the x distribution of the secondary J/psi
42 TString fResType; // string with candidate's types considered
44 ClassDef(AliDielectronBtoJPSItoEle,1); // AliDielectronBtoJPSItoEle class