Skip to content

Commit b3a4d8d

Browse files
Update taskCharmHadronsFemtoDream.cxx
1 parent a46bcd7 commit b3a4d8d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PWGHF/HFC/Tasks/taskCharmHadronsFemtoDream.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,16 +160,16 @@ struct HfTaskCharmHadronsFemtoDream {
160160
Filter trackPtFilterLow = ifnode(aod::femtodreamparticle::partType == uint8_t(aod::femtodreamparticle::ParticleType::kTrack), aod::femtodreamparticle::pt < ptTrack1Max, true);
161161
Filter trackPtFilterUp = ifnode(aod::femtodreamparticle::partType == uint8_t(aod::femtodreamparticle::ParticleType::kTrack), aod::femtodreamparticle::pt > ptTrack1Min, true);
162162

163-
Preslice<aod::FDParticles> perCol = aod::femtodreamparticle::fdCollisionId;
164-
165163
/// Partition for particle 1
164+
Preslice<FilteredFDParticles> perCol = aod::femtodreamparticle::fdCollisionId;
166165
Partition<FilteredFDParticles> partitionTrk1 = (aod::femtodreamparticle::partType == uint8_t(aod::femtodreamparticle::ParticleType::kTrack)) && (ncheckbit(aod::femtodreamparticle::cut, cutBitTrack1)) && ifnode(aod::femtodreamparticle::pt * coshEta(aod::femtodreamparticle::eta) <= pidThresTrack1, ncheckbit(aod::femtodreamparticle::pidcut, tpcBitTrack1), ncheckbit(aod::femtodreamparticle::pidcut, tpcTofBitTrack1));
167166

168167
Partition<FilteredFDMcParts> partitionMcTrk1 = (aod::femtodreamparticle::partType == uint8_t(aod::femtodreamparticle::ParticleType::kTrack)) &&
169168
(ncheckbit(aod::femtodreamparticle::cut, cutBitTrack1)) &&
170169
ifnode(aod::femtodreamparticle::pt * coshEta(aod::femtodreamparticle::eta) <= pidThresTrack1, ncheckbit(aod::femtodreamparticle::pidcut, tpcBitTrack1), ncheckbit(aod::femtodreamparticle::pidcut, tpcTofBitTrack1));
171170

172171
/// Partition for particle 2
172+
Preslice<FilteredCharmCands> perHfByCol = aod::femtodreamparticle::fdCollisionId;
173173
Partition<FilteredCharmCands> partitionCharmHadron = aod::fdhf::bdtBkg < charmHadBkgBDTmax && aod::fdhf::bdtFD < charmHadFdBDTmax && aod::fdhf::bdtFD > charmHadFdBDTmin&& aod::fdhf::bdtPrompt<charmHadPromptBDTmax && aod::fdhf::bdtPrompt> charmHadPromptBDTmin;
174174
Partition<FilteredCharmMcCands> partitionMcCharmHadron = aod::fdhf::originMcRec == OriginRecPrompt || aod::fdhf::originMcRec == OriginRecFD;
175175

@@ -533,10 +533,10 @@ struct HfTaskCharmHadronsFemtoDream {
533533
timeStamp,
534534
col.posZ(),
535535
col.multNtr());
536-
}
537-
if ((col.bitmaskTrackOne() & bitMask) != bitMask || (col.bitmaskTrackTwo() & bitMask) != bitMask) {
536+
} else {
538537
return;
539538
}
539+
540540
doSameEvent<false>(sliceTrk1, sliceCharmHad, parts, col);
541541
}
542542
PROCESS_SWITCH(HfTaskCharmHadronsFemtoDream, processSameEvent, "Enable processing same event", false);

0 commit comments

Comments
 (0)