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
6 //-------------------------------------------------------------------------
\r
7 // Class AliDielectronBtoJPSItoEle
\r
8 // Unbinned log-likelihood fit analysis class
\r
10 // Origin: C.Di Giglio
\r
11 // Contact: Carmelo.Digiglio@ba.infn.it , giuseppe.bruno@ba.infn.it
\r
12 //-------------------------------------------------------------------------
\r
17 class AliDielectronBtoJPSItoEleCDFfitHandler ;
\r
18 class AliDielectronBtoJPSItoEleCDFfitFCN ;
\r
20 class AliDielectronBtoJPSItoEle : public TNamed {
\r
23 AliDielectronBtoJPSItoEle();
\r
24 AliDielectronBtoJPSItoEle(const AliDielectronBtoJPSItoEle& source);
\r
25 AliDielectronBtoJPSItoEle& operator=(const AliDielectronBtoJPSItoEle& source);
\r
26 virtual ~AliDielectronBtoJPSItoEle();
\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
31 void SetPtBin(Int_t BinNum) { fPtBin = BinNum ; }
\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
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
47 ClassDef(AliDielectronBtoJPSItoEle,1); // AliDielectronBtoJPSItoEle class
\r