14 gROOT->LoadMacro(
"$ALICE_ROOT/PWG3/vertexingHF/LoadLibraries.C");
17 TH1F* hCsiMCPithya =
new TH1F();
18 TH1F* hCsiMCevtgen =
new TH1F();
21 TString useFile = datadir.Data();
22 useFile.Append(
"/CmpBdecayKine.root");
23 TFile *fCmpBdecayKine =
new TFile(useFile);
24 hCsiMCPithya = (TH1F*)fCmpBdecayKine->Get(
"PsproperPithya46GeV");
25 hCsiMCPithya->Scale(1./hCsiMCPithya->Integral());
26 hCsiMCevtgen = (TH1F*)fCmpBdecayKine->Get(
"PsproperEvtGen46GeV");
27 hCsiMCevtgen->Scale(1./hCsiMCevtgen->Integral());
30 AliAnalysisBtoJPSItoEle* aBtoJPSItoEle =
new AliAnalysisBtoJPSItoEle();
65 TFile *f=
new TFile(
"CdfFit_OneYear.root");
69 TNtuple *nt=(TNtuple*)f->Get(
"fNtupleJPSI46GeV");
72 aBtoJPSItoEle->ReadCandidates(nt,x,m,n);
74 Number of total candidates (prim J/psi + secondary J/psi + bkg) ---> %d candidates
77 aBtoJPSItoEle->SetFitHandler(x,m,n);
79 aBtoJPSItoEle->CloneMCtemplate(hCsiMCPithya);
84 aBtoJPSItoEle->SetCsiMC();
86 AliBtoJPSItoEleCDFfitHandler* fithandler = aBtoJPSItoEle->GetCDFFitHandler();
91 fithandler->SetErrorDef(0.5);
94 fithandler->SetPrintStatus(kTRUE);
96 fithandler->SetParamStartValues(paramInputValues);
97 fithandler->SetResolutionConstants();
98 fithandler->SetCrystalBallFunction(kTRUE);
99 fithandler->SetMassWndLow(0.6);
100 fithandler->SetMassWndHigh(0.4);
104 fithandler->SetMassWndLow(0.341696);
105 fithandler->SetMassWndHigh(0.308304);
107 aBtoJPSItoEle->DoMinimization();