Skip to content

Commit 1e205fb

Browse files
committed
add psi(2S) and upsilon
1 parent e5ad85e commit 1e205fb

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

PWGEM/Dilepton/Tasks/lmeeLFCocktail.cxx

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ struct lmeelfcocktail {
5959
{113, {"rho/", {-1}}},
6060
{223, {"omega/", {-1, 111}}},
6161
{333, {"phi/", {-1, 111, 221}}},
62-
{443, {"Jpsi/", {-1}}}};
62+
{443, {"Jpsi/", {-1}}},
63+
{100443, {"psi2S/", {-1}}},
64+
{553, {"Upsilon/", {-1}}}};
6365

6466
std::map<TString, int> histogramId;
6567

@@ -320,12 +322,12 @@ struct lmeelfcocktail {
320322
addHistogram1D("OpAng", opAng_axis, i);
321323
addHistogram1D("Mee", mass_axis, i);
322324
addHistogram1D("Ptee", ptee_axis, i);
323-
addHistogram1D_stage("Dca", dca_axis, i, "rec/");
324-
addHistogram1D_stage("Dcaee", dcaee_axis, i, "rec/");
325+
//addHistogram1D_stage("Dca", dca_axis, i, "rec/");
326+
//addHistogram1D_stage("Dcaee", dcaee_axis, i, "rec/");
325327
i = -1;
326-
addHistogram2D_stage("DcaVsPt", dca_axis, pt_axis, i, "rec/");
327-
addHistogram2D_stage("DcaeeVsPtee", dcaee_axis, ptee_axis, i, "rec/");
328-
addHistogram2D_stage("DcaeeVsMee", dcaee_axis, mass_axis, i, "rec/");
328+
//addHistogram2D_stage("DcaVsPt", dca_axis, pt_axis, i, "rec/");
329+
//addHistogram2D_stage("DcaeeVsPtee", dcaee_axis, ptee_axis, i, "rec/");
330+
//addHistogram2D_stage("DcaeeVsMee", dcaee_axis, mass_axis, i, "rec/");
329331
i = -1;
330332
addHistogramND("MeeVsPteeVsCos2DPhiRP", std::vector<AxisSpec>{mass_axis, ptee_axis, cos2dphi_axis}, i);
331333
}
@@ -352,7 +354,7 @@ struct lmeelfcocktail {
352354
int nPos = 0;
353355

354356
ROOT::Math::PtEtaPhiMVector pEleGen, pPosGen, pEleRec, pPosRec;
355-
float weight(1.), effEle(1.), effPos(1.), dcaEle(0.), dcaPos(0.);
357+
float weight(1.), effEle(1.), effPos(1.);//, dcaEle(0.), dcaPos(0.);
356358
for (const auto& daughter : particle.daughters_as<McParticlesSmeared>()) {
357359
int temp_pdg = daughter.pdgCode();
358360
if (temp_pdg == 11) {
@@ -436,12 +438,12 @@ struct lmeelfcocktail {
436438

437439
if (s == kRec) { // dca only at rec. level
438440
if (acceptedEle) {
439-
fillHistogram1D("Dca", s, pdg, other_daughter_pdg, dcaEle, weightEle);
440-
fillHistogram2D("DcaVsPt", s, pdg, other_daughter_pdg, dcaEle, pEle.Pt(), weightEle);
441+
//fillHistogram1D("Dca", s, pdg, other_daughter_pdg, dcaEle, weightEle);
442+
//fillHistogram2D("DcaVsPt", s, pdg, other_daughter_pdg, dcaEle, pEle.Pt(), weightEle);
441443
}
442444
if (acceptedPos) {
443-
fillHistogram1D("Dca", s, pdg, other_daughter_pdg, dcaPos, weightPos);
444-
fillHistogram2D("DcaVsPt", s, pdg, other_daughter_pdg, dcaPos, pPos.Pt(), weightPos);
445+
//fillHistogram1D("Dca", s, pdg, other_daughter_pdg, dcaPos, weightPos);
446+
//fillHistogram2D("DcaVsPt", s, pdg, other_daughter_pdg, dcaPos, pPos.Pt(), weightPos);
445447
}
446448
}
447449

@@ -459,7 +461,7 @@ struct lmeelfcocktail {
459461
float ptee = p12.Pt();
460462
float opAng = o2::aod::pwgem::dilepton::utils::pairutil::getOpeningAngle(pPos.Px(), pPos.Py(), pPos.Pz(), pEle.Px(), pEle.Py(), pEle.Pz());
461463
float phiV = o2::aod::pwgem::dilepton::utils::pairutil::getPhivPair(pPos.Px(), pPos.Py(), pPos.Pz(), pEle.Px(), pEle.Py(), pEle.Pz(), 1, -1, 1);
462-
float dcaee = sqrt((pow(dcaEle, 2) + pow(dcaPos, 2)) / 2);
464+
//float dcaee = sqrt((pow(dcaEle, 2) + pow(dcaPos, 2)) / 2);
463465
float cos2dphi = std::cos(2.f * p12.Phi()); // PsiRP = 0 rad.
464466
double values[3] = {mee, ptee, cos2dphi};
465467
fillHistogramND("MeeVsPteeVsCos2DPhiRP", s, pdg, other_daughter_pdg, values, pairWeight);
@@ -468,9 +470,9 @@ struct lmeelfcocktail {
468470
fillHistogram1D("PhiV", s, pdg, other_daughter_pdg, phiV, pairWeight);
469471
fillHistogram1D("OpAng", s, pdg, other_daughter_pdg, opAng, pairWeight);
470472
if (s == kRec) { // dca only at rec. level
471-
fillHistogram1D("Dcaee", s, pdg, other_daughter_pdg, dcaee, pairWeight);
472-
fillHistogram2D("DcaeeVsPtee", s, pdg, other_daughter_pdg, dcaee, ptee, pairWeight);
473-
fillHistogram2D("DcaeeVsMee", s, pdg, other_daughter_pdg, dcaee, mee, pairWeight);
473+
//fillHistogram1D("Dcaee", s, pdg, other_daughter_pdg, dcaee, pairWeight);
474+
//fillHistogram2D("DcaeeVsPtee", s, pdg, other_daughter_pdg, dcaee, ptee, pairWeight);
475+
//fillHistogram2D("DcaeeVsMee", s, pdg, other_daughter_pdg, dcaee, mee, pairWeight);
474476
}
475477
}
476478
}

0 commit comments

Comments
 (0)