@@ -178,8 +178,8 @@ struct HfTaskDs {
178178
179179 std::vector<AxisSpec> axes = {massbins, ptbins, centralitybins};
180180 std::vector<AxisSpec> axesMl = {massbins, ptbins, centralitybins, mlscore0bins, mlscore1bins, mlscore2bins};
181- std::vector<AxisSpec> axesFd = {massbins, ptbins, centralitybins, ptBHad, flagBHad};
182- std::vector<AxisSpec> axesFdMl = {massbins, ptbins, centralitybins, mlscore0bins, mlscore1bins, mlscore2bins, ptBHad, flagBHad};
181+ std::vector<AxisSpec> axesFdWithNpv = {massbins, ptbins, centralitybins, npvcontributorsbins , ptBHad, flagBHad};
182+ std::vector<AxisSpec> axesFdWithNpvMl = {massbins, ptbins, centralitybins, mlscore0bins, mlscore1bins, mlscore2bins, npvcontributorsbins , ptBHad, flagBHad};
183183 std::vector<AxisSpec> axesWithNpv = {massbins, ptbins, centralitybins, npvcontributorsbins};
184184 std::vector<AxisSpec> axesWithNpvMl = {massbins, ptbins, centralitybins, mlscore0bins, mlscore1bins, mlscore2bins, npvcontributorsbins};
185185 std::vector<AxisSpec> axesGenPrompt = {ptbins, ybins, npvcontributorsbins, centralitybins};
@@ -188,8 +188,8 @@ struct HfTaskDs {
188188 if (storeOccupancy) {
189189 axes.insert (axes.end (), {occupancybins});
190190 axesMl.insert (axesMl.end (), {occupancybins});
191- axesFd .insert (axesFd .end (), {occupancybins});
192- axesFdMl .insert (axesFdMl .end (), {occupancybins});
191+ axesFdWithNpv .insert (axesFdWithNpv .end (), {occupancybins});
192+ axesFdWithNpvMl .insert (axesFdWithNpvMl .end (), {occupancybins});
193193 axesWithNpv.insert (axesWithNpv.end (), {occupancybins});
194194 axesWithNpvMl.insert (axesWithNpvMl.end (), {occupancybins});
195195 axesGenPrompt.insert (axesGenPrompt.end (), {occupancybins});
@@ -200,8 +200,8 @@ struct HfTaskDs {
200200 if (doprocessDataWithCentFT0C || doprocessDataWithCentFT0M || doprocessDataWithCentNTracksPV || doprocessData || doprocessMcWithCentFT0C || doprocessMcWithCentFT0M || doprocessMcWithCentNTracksPV || doprocessMc) {
201201 if (i == DataType::Data) { // If data do not fill PV contributors in sparse
202202 histosPtr[i][" hSparseMass" ] = registry.add <THnSparse>((folders[i] + " hSparseMass" ).c_str (), " THn for Ds" , HistType::kTHnSparseF , axes);
203- } else if (i == DataType::McDsNonPrompt) { // If data do not fill PV contributors in sparse
204- histosPtr[i][" hSparseMass" ] = registry.add <THnSparse>((folders[i] + " hSparseMass" ).c_str (), " THn for Ds" , HistType::kTHnSparseF , axesFd );
203+ } else if (i == DataType::McDsNonPrompt || i == DataType::McDplusNonPrompt) {
204+ histosPtr[i][" hSparseMass" ] = registry.add <THnSparse>((folders[i] + " hSparseMass" ).c_str (), " THn for Ds" , HistType::kTHnSparseF , axesFdWithNpv );
205205 } else {
206206 histosPtr[i][" hSparseMass" ] = registry.add <THnSparse>((folders[i] + " hSparseMass" ).c_str (), " THn for Ds" , HistType::kTHnSparseF , axesWithNpv);
207207 }
@@ -212,8 +212,8 @@ struct HfTaskDs {
212212
213213 if (i == DataType::Data) { // If data do not fill PV contributors in sparse
214214 histosPtr[i][" hSparseMass" ] = registry.add <THnSparse>((folders[i] + " hSparseMass" ).c_str (), " THn for Ds" , HistType::kTHnSparseF , axesMl);
215- } else if (i == DataType::McDsNonPrompt) { // If data do not fill PV contributors in sparse
216- histosPtr[i][" hSparseMass" ] = registry.add <THnSparse>((folders[i] + " hSparseMass" ).c_str (), " THn for Ds" , HistType::kTHnSparseF , axesFdMl );
215+ } else if (i == DataType::McDsNonPrompt || i == DataType::McDplusNonPrompt) {
216+ histosPtr[i][" hSparseMass" ] = registry.add <THnSparse>((folders[i] + " hSparseMass" ).c_str (), " THn for Ds" , HistType::kTHnSparseF , axesFdWithNpvMl );
217217 } else {
218218 histosPtr[i][" hSparseMass" ] = registry.add <THnSparse>((folders[i] + " hSparseMass" ).c_str (), " THn for Ds" , HistType::kTHnSparseF , axesWithNpvMl);
219219 }
@@ -453,12 +453,12 @@ struct HfTaskDs {
453453 }
454454 }
455455 if constexpr (isMc) {
456- if (dataType == DataType::McDsNonPrompt) { // If data do not fill PV contributors in sparse
456+ if (dataType == DataType::McDsNonPrompt || dataType == DataType::McDplusNonPrompt) {
457457 if (storeOccupancy) {
458- std::get<THnSparsePtr>(histosPtr[dataType][" hSparseMass" ])->Fill (mass, pt, evaluateCentralityCand<Coll>(candidate), outputMl[0 ], outputMl[1 ], outputMl[2 ], candidate.ptBhadMotherPart (), getBHadMotherFlag (candidate.pdgBhadMotherPart ()), o2::hf_occupancy::getOccupancyColl (candidate.template collision_as <Coll>(), occEstimator));
458+ std::get<THnSparsePtr>(histosPtr[dataType][" hSparseMass" ])->Fill (mass, pt, evaluateCentralityCand<Coll>(candidate), outputMl[0 ], outputMl[1 ], outputMl[2 ], candidate.template collision_as <Coll>(). numContrib (), candidate. ptBhadMotherPart (), getBHadMotherFlag (candidate.pdgBhadMotherPart ()), o2::hf_occupancy::getOccupancyColl (candidate.template collision_as <Coll>(), occEstimator));
459459 return ;
460460 } else {
461- std::get<THnSparsePtr>(histosPtr[dataType][" hSparseMass" ])->Fill (mass, pt, evaluateCentralityCand<Coll>(candidate), outputMl[0 ], outputMl[1 ], outputMl[2 ], candidate.ptBhadMotherPart (), getBHadMotherFlag (candidate.pdgBhadMotherPart ()));
461+ std::get<THnSparsePtr>(histosPtr[dataType][" hSparseMass" ])->Fill (mass, pt, evaluateCentralityCand<Coll>(candidate), outputMl[0 ], outputMl[1 ], outputMl[2 ], candidate.template collision_as <Coll>(). numContrib (), candidate. ptBhadMotherPart (), getBHadMotherFlag (candidate.pdgBhadMotherPart ()));
462462 return ;
463463 }
464464 } else {
@@ -493,12 +493,12 @@ struct HfTaskDs {
493493 }
494494 }
495495 if constexpr (isMc) {
496- if (dataType == DataType::McDsNonPrompt) { // If data do not fill PV contributors in sparse
496+ if (dataType == DataType::McDsNonPrompt || dataType == DataType::McDplusNonPrompt) {
497497 if (storeOccupancy) {
498- std::get<THnSparsePtr>(histosPtr[dataType][" hSparseMass" ])->Fill (mass, pt, evaluateCentralityCand<Coll>(candidate), candidate.ptBhadMotherPart (), getBHadMotherFlag (candidate.pdgBhadMotherPart ()), o2::hf_occupancy::getOccupancyColl (candidate.template collision_as <Coll>(), occEstimator));
498+ std::get<THnSparsePtr>(histosPtr[dataType][" hSparseMass" ])->Fill (mass, pt, evaluateCentralityCand<Coll>(candidate), candidate.template collision_as <Coll>(). numContrib (), candidate. ptBhadMotherPart (), getBHadMotherFlag (candidate.pdgBhadMotherPart ()), o2::hf_occupancy::getOccupancyColl (candidate.template collision_as <Coll>(), occEstimator));
499499 return ;
500500 } else {
501- std::get<THnSparsePtr>(histosPtr[dataType][" hSparseMass" ])->Fill (mass, pt, evaluateCentralityCand<Coll>(candidate), candidate.ptBhadMotherPart (), getBHadMotherFlag (candidate.pdgBhadMotherPart ()));
501+ std::get<THnSparsePtr>(histosPtr[dataType][" hSparseMass" ])->Fill (mass, pt, evaluateCentralityCand<Coll>(candidate), candidate.template collision_as <Coll>(). numContrib (), candidate. ptBhadMotherPart (), getBHadMotherFlag (candidate.pdgBhadMotherPart ()));
502502 return ;
503503 }
504504 } else {
0 commit comments