]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGDQ/dielectron/AliDielectronBtoJPSItoEle.h
including switch to set on/off iso-track core removal, cleaning and bug fix
[u/mrichter/AliRoot.git] / PWGDQ / dielectron / AliDielectronBtoJPSItoEle.h
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                               */
5
6 //-------------------------------------------------------------------------
7 //                         Class AliDielectronBtoJPSItoEle
8 //                  Unbinned log-likelihood fit analysis class
9 //
10 //                             Origin: C.Di Giglio
11 //       Contact: Carmelo.Digiglio@ba.infn.it , giuseppe.bruno@ba.infn.it
12 //-------------------------------------------------------------------------
13
14 #include "TH1F.h"
15
16 class TNtuple ;
17 class AliDielectronBtoJPSItoEleCDFfitHandler ; 
18 class AliDielectronBtoJPSItoEleCDFfitFCN ; 
19
20 class AliDielectronBtoJPSItoEle : public TNamed {
21         public:
22                 //
23                 AliDielectronBtoJPSItoEle();
24                 AliDielectronBtoJPSItoEle(const AliDielectronBtoJPSItoEle& source);
25                 AliDielectronBtoJPSItoEle& operator=(const AliDielectronBtoJPSItoEle& source);
26                 virtual ~AliDielectronBtoJPSItoEle();
27
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
30
31                 void SetCsiMC();
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 ; }
37
38         private:
39                 //
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
43
44                 ClassDef(AliDielectronBtoJPSItoEle,1); // AliDielectronBtoJPSItoEle class
45 };
46
47 #endif