Skip to content

Commit 730648c

Browse files
[PWGCF,PWGHF] added table for sys studies (#11102)
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent 1d603fd commit 730648c

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

PWGCF/DataModel/FemtoDerived.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,13 @@ DECLARE_SOA_TABLE(FDResultsHF, "AOD", "FDRESULTSHF", //! table to store results
323323
fdhf::FlagMc,
324324
fdhf::OriginMcRec);
325325

326+
DECLARE_SOA_TABLE(FDResultsHFTrkInfo, "AOD", "FDRESULTSHFTRKINFO", //! table to store results for HF femtoscopy
327+
femtodreamparticle::TPCNClsFound,
328+
track::TPCNClsFindable,
329+
femtodreamparticle::TPCNClsCrossedRows,
330+
femtodreamparticle::TPCNSigmaPr,
331+
femtodreamparticle::TOFNSigmaPr);
332+
326333
DECLARE_SOA_TABLE(FDHfCandMC, "AOD", "FDHFCANDMC", //! Table for reconstructed MC charm hadron candidates
327334
o2::soa::Index<>,
328335
fdhf::FlagMc,

PWGHF/HFC/TableProducer/femtoDreamProducer.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,8 @@ struct HfFemtoDreamProducer {
434434
bool isSelectedMlLcToPKPi = true;
435435
bool isSelectedMlLcToPiKP = true;
436436
for (const auto& candidate : candidates) {
437-
437+
outputMlPKPi = {-1.0f, -1.0f, -1.0f};
438+
outputMlPiKP = {-1.0f, -1.0f, -1.0f};
438439
auto trackPos1 = candidate.template prong0_as<TrackType>(); // positive daughter (negative for the antiparticles)
439440
auto trackNeg = candidate.template prong1_as<TrackType>(); // negative daughter (positive for the antiparticles)
440441
auto trackPos2 = candidate.template prong2_as<TrackType>(); // positive daughter (negative for the antiparticles)

PWGHF/HFC/Tasks/taskCharmHadronsFemtoDream.cxx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ struct HfTaskCharmHadronsFemtoDream {
196196
SliceCache cache;
197197
Preslice<aod::FDParticles> perCol = aod::femtodreamparticle::fdCollisionId;
198198
Produces<o2::aod::FDResultsHF> fillFemtoResult;
199+
Produces<o2::aod::FDResultsHFTrkInfo> fillFemtoResultTrkInfo;
199200

200201
void init(InitContext& /*context*/)
201202
{
@@ -242,6 +243,17 @@ struct HfTaskCharmHadronsFemtoDream {
242243
registryMixQa.fill(HIST("MixingQA/hSECollisionPool"), col.posZ(), col.multNtr());
243244
}
244245

246+
template <typename Part1>
247+
void fillTableTrkInfo(Part1 const& p1)
248+
{
249+
fillFemtoResultTrkInfo(
250+
p1.tpcNClsFound(),
251+
p1.tpcNClsFindable(),
252+
p1.tpcNClsCrossedRows(),
253+
p1.tpcNSigmaPr(),
254+
p1.tofNSigmaPr());
255+
}
256+
245257
/// This function processes the same event and takes care of all the histogramming
246258
template <bool isMc, typename PartitionType, typename CandType, typename TableTracks, typename Collision>
247259
void doSameEvent(PartitionType& sliceTrk1, CandType& sliceCharmHad, TableTracks const& parts, Collision const& col)
@@ -331,6 +343,7 @@ struct HfTaskCharmHadronsFemtoDream {
331343
processType,
332344
charmHadMc,
333345
originType);
346+
fillTableTrkInfo(p1);
334347

335348
sameEventCont.setPair<isMc, true>(p1, p2, col.multNtr(), col.multV0M(), use4D, extendedPlots, smearingByOrigin);
336349
}
@@ -427,6 +440,7 @@ struct HfTaskCharmHadronsFemtoDream {
427440
processType,
428441
charmHadMc,
429442
originType);
443+
fillTableTrkInfo(p1);
430444

431445
// if constexpr (!isMc) mixedEventCont.setPair<isMc, true>(p1, p2, collision1.multNtr(), collision1.multV0M(), use4D, extendedPlots, smearingByOrigin);
432446
mixedEventCont.setPair<isMc, true>(p1, p2, collision1.multNtr(), collision1.multV0M(), use4D, extendedPlots, smearingByOrigin);

0 commit comments

Comments
 (0)