21 gSystem->AddIncludePath(
"-I${ALICE_ROOT}/include -I${ALICE_PHYSICS}/include");
22 gROOT->LoadMacro(
"AliAODTracklet.C+g");
23 gROOT->LoadMacro(
"AliTrackletWeights.C+g");
27 Double_t c2Bins[] = { 0, 2.5, 5, 7.5, 10, 20, 30,
28 40, 50, 60, 70, 80, 90, 100 };
30 TFile* strFile = TFile::Open(
"../tracklets/REWEIGHTstr.root",
"READ");
32 for (
Int_t i = 0; i < 1; i++) {
35 histName.Form(
"strWeight_%s", (pdg == 211 ?
"pi" :
41 pdg == 3322 ?
"xi" :
""));
42 TH1* hist =
static_cast<TH1*
>(strFile->Get(histName));
44 Warning(
"MakeWeight",
"strangeness histogram %s not found",
48 TH1D* out =
new TH1D(Form(
"w%d", pdg), Form(
"Strangeness %d weight", pdg),
50 for (
Int_t j = 1; j <= out->GetNbinsX(); j++) {
51 out->SetBinContent(j, hist->GetBinContent(j));
52 out->SetBinError (j, hist->GetBinError (j));
62 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="")