Skip to content

Commit e66df35

Browse files
[PWGHF] remove collision id infos of the derived table of Cd and use TPC inne… (#15650)
1 parent 33aaed9 commit e66df35

File tree

1 file changed

+23
-19
lines changed

1 file changed

+23
-19
lines changed

PWGHF/D2H/Tasks/taskCd.cxx

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ namespace full
6565
// Candidate kinematics
6666
DECLARE_SOA_COLUMN(M, m, float); //! Invariant mass of candidate (GeV/c^2)
6767
DECLARE_SOA_COLUMN(Pt, pt, float); //! Transverse momentum of candidate (GeV/c)
68+
DECLARE_SOA_COLUMN(Eta, eta, float); //! eta of candidate (GeV/c)
69+
DECLARE_SOA_COLUMN(Phi, phi, float); //! phi of candidate (GeV/c)
6870
DECLARE_SOA_COLUMN(PtProng0, ptProng0, float); //! Transverse momentum of prong 0 (GeV/c)
6971
DECLARE_SOA_COLUMN(PtProng1, ptProng1, float); //! Transverse momentum of prong 1 (GeV/c)
7072
DECLARE_SOA_COLUMN(PtProng2, ptProng2, float); //! Transverse momentum of prong 2 (GeV/c)
@@ -100,6 +102,8 @@ DECLARE_SOA_COLUMN(TimeStamp, timeStamp, int64_t); //! Timestamp fo
100102
DECLARE_SOA_TABLE(HfCandCd, "AOD", "HFCANDCD",
101103
full::M,
102104
full::Pt,
105+
full::Eta,
106+
full::Phi,
103107
full::PtProng0,
104108
full::PtProng1,
105109
full::PtProng2,
@@ -120,9 +124,7 @@ DECLARE_SOA_TABLE(HfCandCd, "AOD", "HFCANDCD",
120124
full::NTpcSignalsKa,
121125
full::NItsSignalsDe,
122126
full::CandidateSelFlag,
123-
full::Cent,
124-
full::GIndexCol,
125-
full::TimeStamp);
127+
full::Cent);
126128
} // namespace o2::aod
127129

128130
struct HfTaskCd {
@@ -268,15 +270,17 @@ struct HfTaskCd {
268270
auto thisCollId = collision.globalIndex();
269271
auto groupedCdCandidates = candidates.sliceBy(candCdPerCollision, thisCollId);
270272
auto numPvContributors = collision.numContrib();
271-
auto bc = collision.template bc_as<BcType>();
272-
int64_t timeStamp = bc.timestamp();
273+
// auto bc = collision.template bc_as<BcType>();
274+
// int64_t timeStamp = bc.timestamp();
273275

274276
for (const auto& candidate : groupedCdCandidates) {
275277
if (!TESTBIT(candidate.hfflag(), aod::hf_cand_3prong::DecayType::CdToDeKPi)) {
276278
continue;
277279
}
278280

279281
const auto pt = candidate.pt();
282+
const auto eta = candidate.eta();
283+
const auto phi = candidate.phi();
280284
const auto ptProng0 = candidate.ptProng0();
281285
const auto ptProng1 = candidate.ptProng1();
282286
const auto ptProng2 = candidate.ptProng2();
@@ -323,10 +327,10 @@ struct HfTaskCd {
323327
registry.fill(HIST("Data/hCPAxyVsPt"), cpaXY, pt);
324328
registry.fill(HIST("Data/hDca2"), chi2PCA);
325329
registry.fill(HIST("Data/hDca2VsPt"), chi2PCA, pt);
326-
registry.fill(HIST("Data/hEta"), candidate.eta());
327-
registry.fill(HIST("Data/hEtaVsPt"), candidate.eta(), pt);
328-
registry.fill(HIST("Data/hPhi"), candidate.phi());
329-
registry.fill(HIST("Data/hPhiVsPt"), candidate.phi(), pt);
330+
registry.fill(HIST("Data/hEta"), eta);
331+
registry.fill(HIST("Data/hEtaVsPt"), eta, pt);
332+
registry.fill(HIST("Data/hPhi"), phi);
333+
registry.fill(HIST("Data/hPhiVsPt"), phi, pt);
330334
registry.fill(HIST("hSelectionStatus"), candidate.isSelCdToDeKPi(), pt);
331335
registry.fill(HIST("hSelectionStatus"), candidate.isSelCdToPiKDe(), pt);
332336
registry.fill(HIST("Data/hImpParErrProng0"), candidate.errorImpactParameter0(), pt);
@@ -386,8 +390,8 @@ struct HfTaskCd {
386390

387391
if (selDeKPi) {
388392
candFlag = 1;
389-
pSignedDe = prong0.p() * prong0.sign();
390-
pSignedPi = prong2.p() * prong2.sign();
393+
pSignedDe = prong0.tpcInnerParam() * prong0.sign();
394+
pSignedPi = prong2.tpcInnerParam() * prong2.sign();
391395
nSigmaTpcDe = candidate.nSigTpcDe0();
392396
nSigmaTofDe = candidate.nSigTofDe0();
393397
nSigmaTpcPi = candidate.nSigTpcPi2();
@@ -401,8 +405,8 @@ struct HfTaskCd {
401405
itsSignalsDe = itsSignal(prong0);
402406
} else if (selPiKDe) {
403407
candFlag = -1;
404-
pSignedDe = prong2.p() * prong2.sign();
405-
pSignedPi = prong0.p() * prong0.sign();
408+
pSignedDe = prong2.tpcInnerParam() * prong2.sign();
409+
pSignedPi = prong0.tpcInnerParam() * prong0.sign();
406410
nSigmaTpcDe = candidate.nSigTpcDe2();
407411
nSigmaTofDe = candidate.nSigTofDe2();
408412
nSigmaTpcPi = candidate.nSigTpcPi0();
@@ -422,16 +426,18 @@ struct HfTaskCd {
422426
registry.fill(HIST("Data/hNsigmaITSDeVsP"), pSignedDe, nSigmaItsDe);
423427
registry.fill(HIST("Data/hTPCSignalDeVsP"), pSignedDe, tpcSignalsDe);
424428
registry.fill(HIST("Data/hTPCSignalPiVsP"), pSignedPi, tpcSignalsPi);
425-
registry.fill(HIST("Data/hTPCSignalKaVsP"), prong1.p() * prong1.sign(), tpcSignalsKa);
429+
registry.fill(HIST("Data/hTPCSignalKaVsP"), prong1.tpcInnerParam() * prong1.sign(), tpcSignalsKa);
426430
registry.fill(HIST("Data/hITSSignalDeVsP"), pSignedDe, itsSignalsDe);
427431
registry.fill(HIST("Data/hNsigmaTPCPiVsP"), pSignedPi, nSigmaTpcPi);
428432
registry.fill(HIST("Data/hNsigmaTOFPiVsP"), pSignedPi, nSigmaTofPi);
429-
registry.fill(HIST("Data/hNsigmaTPCKaVsP"), prong1.p() * prong1.sign(), nSigmaTpcKa);
430-
registry.fill(HIST("Data/hNsigmaTOFKaVsP"), prong1.p() * prong1.sign(), nSigmaTofKa);
433+
registry.fill(HIST("Data/hNsigmaTPCKaVsP"), prong1.tpcInnerParam() * prong1.sign(), nSigmaTpcKa);
434+
registry.fill(HIST("Data/hNsigmaTOFKaVsP"), prong1.tpcInnerParam() * prong1.sign(), nSigmaTofKa);
431435

432436
rowCandCd(
433437
invMassCd,
434438
pt,
439+
eta,
440+
phi,
435441
ptProng0,
436442
ptProng1,
437443
ptProng2,
@@ -452,9 +458,7 @@ struct HfTaskCd {
452458
tpcSignalsKa,
453459
itsSignalsDe,
454460
candFlag,
455-
cent,
456-
collision.globalIndex(),
457-
timeStamp);
461+
cent);
458462
}
459463
}
460464
}

0 commit comments

Comments
 (0)