26 gSystem->AddIncludePath(
"-I${ALICE_ROOT}/include -I${ALICE_PHYSICS}/include");
27 gROOT->LoadMacro(
"AliAODTracklet.C+g");
28 gROOT->LoadMacro(
"AliTrackletWeights.C+g");
32 Double_t c2Bins[] = { 0, 2.5, 5, 7.5, 10, 20, 30,
33 40, 50, 60, 70, 80, 90, 100 };
35 TFile* strFile = TFile::Open(
"../tracklets/REWEIGHTstr.root",
"READ");
37 for (
Int_t i = 0; i < 1; i++) {
40 histName.Form(
"strWeight_%s", (pdg == 211 ?
"pi" :
46 pdg == 3322 ?
"xi" :
""));
47 TH1* hist =
static_cast<TH1*
>(strFile->Get(histName));
49 Warning(
"MakeWeight",
"strangeness histogram %s not found",
53 TH1D* out =
new TH1D(Form(
"w%d", pdg), Form(
"Strangeness %d weight", pdg),
55 for (
Int_t j = 1; j <= out->GetNbinsX(); j++) {
56 out->SetBinContent(j, hist->GetBinContent(j));
57 out->SetBinError (j, hist->GetBinError (j));
67 TFile* outW = TFile::Open(
"k0s.root",
"RECREATE");
Bool_t AddStrangenessWeight(Short_t pdg, const TH1D *h, UShort_t mode=0)
void Print(Option_t *option="") const
void Draw(Option_t *option="")