]>
Commit | Line | Data |
---|---|---|
7b54a483 | 1 | #ifndef ALIBTOJPSITOELECDFFITHANDLER_H\r |
2 | #define ALIBTOJPSITOELECDFFITHANDLER_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 AliBtoJPSItoEleCDFfitHandler\r | |
8 | // Class to perform unbinned log-likelihood fit\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 <TNamed.h>\r | |
15 | #include "TMath.h"\r | |
16 | #include "AliBtoJPSItoEleCDFfitFCN.h"\r | |
17 | //#include "AliLog.h"\r | |
18 | \r | |
19 | class AliBtoJPSItoEleCDFfitHandler : public TNamed {\r | |
20 | public:\r | |
21 | //\r | |
22 | AliBtoJPSItoEleCDFfitHandler();\r | |
23 | AliBtoJPSItoEleCDFfitHandler& operator= (const AliBtoJPSItoEleCDFfitHandler& c);\r | |
24 | AliBtoJPSItoEleCDFfitHandler(const AliBtoJPSItoEleCDFfitHandler& c);\r | |
25 | AliBtoJPSItoEleCDFfitHandler(Double_t* decaytime, Double_t* invariantmass, Int_t ncand);\r | |
26 | ~AliBtoJPSItoEleCDFfitHandler(); \r | |
27 | Double_t Up() const { return fUp*TMath::Sqrt(fLikely->GetIntegral()); }\r | |
28 | void SetErrorDef(Double_t up) {fUp = up;}\r | |
29 | \r | |
30 | Double_t operator()(const Double_t* par) const ;\r | |
31 | void CdfFCN(Int_t & /* npar */, Double_t * /* gin */, Double_t &f, Double_t *par, Int_t /* iflag */);\r | |
32 | \r | |
33 | Double_t* Decaytime() const { return fX; }\r | |
34 | Double_t* InvariantMass() const { return fM; }\r | |
35 | AliBtoJPSItoEleCDFfitFCN* LikelihoodPointer() const { return fLikely; }\r | |
36 | Int_t DoMinimization();\r | |
37 | \r | |
38 | private:\r | |
39 | //\r | |
40 | Double_t fUp; //error definition \r | |
41 | Double_t* fX; //pseudo-proper decay time X\r | |
42 | Double_t* fM; //invariant mass M\r | |
43 | AliBtoJPSItoEleCDFfitFCN* fLikely; //Log likelihood function\r | |
44 | Int_t fNcand; //number of candidates\r | |
45 | //\r | |
46 | ClassDef(AliBtoJPSItoEleCDFfitHandler,0);\r | |
47 | \r | |
48 | }; \r | |
49 | #endif\r |