Skip to content

Commit 6585df1

Browse files
authored
[PWGEM] No weights for quarks (AliceO2Group#10326)
1 parent 37882e7 commit 6585df1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

PWGEM/Dilepton/Tasks/lmeeHFCocktail.cxx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,19 +76,18 @@ const char* stageNames[Nstages] = {"gen", "meas", "meas_and_acc"};
7676
template <typename T>
7777
void doQuark(T& p, std::vector<std::shared_ptr<TH1>> hRapQuark, float ptMin, float etaMax, int pdg)
7878
{
79-
float weight[Nstages] = {p.weight(), p.efficiency() * p.weight(), p.efficiency() * p.weight()};
8079
float pt[Nstages] = {p.pt(), p.ptSmeared(), p.ptSmeared()};
8180
float eta[Nstages] = {p.eta(), p.etaSmeared(), p.etaSmeared()};
8281
float cut_pt[Nstages] = {0., 0., ptMin};
8382
float cut_eta[Nstages] = {9999., 99999., etaMax};
8483
for (int i = 0; i < Nstages; i++) {
8584
if (pt[i] > cut_pt[i] && fabs(eta[i]) < cut_eta[i]) {
8685
if (pdg == 4)
87-
hRapQuark[i]->Fill(p.cQuarkRap(), weight[i]);
86+
hRapQuark[i]->Fill(p.cQuarkRap());
8887
else if (pdg == 5)
89-
hRapQuark[i]->Fill(p.bQuarkRap(), weight[i]);
88+
hRapQuark[i]->Fill(p.bQuarkRap());
9089
else
91-
hRapQuark[i]->Fill(999., weight[i]);
90+
hRapQuark[i]->Fill(999.);
9291
}
9392
}
9493
}

0 commit comments

Comments
 (0)