@@ -33,6 +33,7 @@ using namespace o2::aod;
3333using namespace o2 ::framework;
3434using MyCollisions = soa::Join<aod::Collisions, aod::McCollisionLabels, aod::EvSels>;
3535using McMuons = soa::Join<aod::FwdTracks, aod::McFwdTrackLabels, aod::FwdTracksDCA>;
36+ using McMFTs = soa::Join<aod::MFTTracks, aod::McMFTTrackLabels>;
3637
3738namespace
3839{
@@ -95,15 +96,16 @@ struct HfTaskSingleMuonSource {
9596 AxisSpec axisChi2{500 , 0 ., 100 ., " #chi^{2} of MCH-MFT matching" };
9697 AxisSpec axisPt{200 , 0 ., 100 ., " #it{p}_{T,reco} (GeV/#it{c})" };
9798 AxisSpec axisDeltaPt{1000 , -50 ., 50 ., " #Delta #it{p}_{T} (GeV/#it{c})" };
99+ AxisSpec axisMftNC{10 , 0 ., 11 ., " Number of clusters in MFT" };
98100
99101 HistogramConfigSpec h2PtDCA{HistType::kTH2F , {axisPt, axisDCA}};
100102 HistogramConfigSpec h2PtChi2{HistType::kTH2F , {axisPt, axisChi2}};
101- HistogramConfigSpec h2PtDeltaPt {HistType::kTH2F , {axisPt, axisDeltaPt}};
103+ HistogramConfigSpec h3PtDeltaPtMftNC {HistType::kTH3F , {axisPt, axisDeltaPt, axisMftNC }};
102104
103105 for (const auto & src : muonSources) {
104106 registry.add (Form (" h2%sPtDCA" , src.Data ()), " " , h2PtDCA);
105107 registry.add (Form (" h2%sPtChi2" , src.Data ()), " " , h2PtChi2);
106- registry.add (Form (" h2%sPtDeltaPt " , src.Data ()), " " , h2PtDeltaPt );
108+ registry.add (Form (" h3%sPtDeltaPtMftNC " , src.Data ()), " " , h3PtDeltaPtMftNC );
107109 }
108110 }
109111
@@ -244,41 +246,48 @@ struct HfTaskSingleMuonSource {
244246 const auto muonType3 = muon.matchMCHTrack_as <McMuons>();
245247 const auto deltaPt = muonType3.pt () - pt;
246248
249+ if (!muon.has_matchMFTTrack ()) {
250+ return ;
251+ }
252+ const auto mft = muon.matchMFTTrack_as <McMFTs>();
253+ const auto mftNC = mft.nClusters ();
254+
247255 singleMuonSource (pt, dca, mask);
248256
249257 if (isBeautyDecayMu (mask)) {
250258 registry.fill (HIST (" h2BeautyDecayMuPtDCA" ), pt, dca);
251259 registry.fill (HIST (" h2BeautyDecayMuPtChi2" ), pt, chi2);
252- registry.fill (HIST (" h2BeautyDecayMuPtDeltaPt " ), pt, deltaPt);
260+ registry.fill (HIST (" h3BeautyDecayMuPtDeltaPtMftNC " ), pt, deltaPt, mftNC );
253261 } else if (isNonpromptCharmMu (mask)) {
254262 registry.fill (HIST (" h2NonpromptCharmMuPtDCA" ), pt, dca);
255263 registry.fill (HIST (" h2NonpromptCharmMuPtChi2" ), pt, chi2);
256- registry.fill (HIST (" h2NonpromptCharmMuPtDeltaPt " ), pt, deltaPt);
264+ registry.fill (HIST (" h3NonpromptCharmMuPtDeltaPtMftNC " ), pt, deltaPt, mftNC );
257265 } else if (isPromptCharmMu (mask)) {
258266 registry.fill (HIST (" h2PromptCharmMuPtDCA" ), pt, dca);
259267 registry.fill (HIST (" h2PromptCharmMuPtChi2" ), pt, chi2);
260- registry.fill (HIST (" h2PromptCharmMuPtDeltaPt " ), pt, deltaPt);
268+ registry.fill (HIST (" h3PromptCharmMuPtDeltaPtMftNC " ), pt, deltaPt, mftNC );
261269 } else if (isLightDecayMu (mask)) {
262270 registry.fill (HIST (" h2LightDecayMuPtDCA" ), pt, dca);
263271 registry.fill (HIST (" h2LightDecayMuPtChi2" ), pt, chi2);
264- registry.fill (HIST (" h2LightDecayMuPtDeltaPt " ), pt, deltaPt);
272+ registry.fill (HIST (" h3LightDecayMuPtDeltaPtMftNC " ), pt, deltaPt, mftNC );
265273 } else if (isSecondaryMu (mask)) {
266274 registry.fill (HIST (" h2SecondaryMuPtDCA" ), pt, dca);
267275 registry.fill (HIST (" h2SecondaryMuPtChi2" ), pt, chi2);
268- registry.fill (HIST (" h2SecondaryMuPtDeltaPt " ), pt, deltaPt);
276+ registry.fill (HIST (" h3SecondaryMuPtDeltaPtMftNC " ), pt, deltaPt, mftNC );
269277 } else if (isHadron (mask)) {
270278 registry.fill (HIST (" h2HadronPtDCA" ), pt, dca);
271279 registry.fill (HIST (" h2HadronPtChi2" ), pt, chi2);
272- registry.fill (HIST (" h2HadronPtDeltaPt " ), pt, deltaPt);
280+ registry.fill (HIST (" h3HadronPtDeltaPtMftNC " ), pt, deltaPt, mftNC );
273281 } else if (isUnidentified (mask)) {
274282 registry.fill (HIST (" h2UnidentifiedPtDCA" ), pt, dca);
275283 registry.fill (HIST (" h2UnidentifiedPtChi2" ), pt, chi2);
276- registry.fill (HIST (" h2UnidentifiedPtDeltaPt " ), pt, deltaPt);
284+ registry.fill (HIST (" h3UnidentifiedPtDeltaPtMftNC " ), pt, deltaPt, mftNC );
277285 }
278286 }
279287
280288 void process (MyCollisions::iterator const & collision,
281289 McMuons const & muons,
290+ McMFTs const &,
282291 aod::McParticles const &)
283292 {
284293 // event selections
0 commit comments