Skip to content

Commit

Permalink
PWGCF / FemtoUniverse : Replacing mutnNtr with multV0M for multiplici…
Browse files Browse the repository at this point in the history
…ty estimation
  • Loading branch information
prchakra authored Oct 29, 2024
1 parent abcc778 commit 1444dbf
Showing 1 changed file with 13 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ struct femtoUniversePairTaskTrackTrack3DMultKtExtended {
Configurable<float> ConfV0MHigh{"ConfV0MHigh", 25000.0, "Upper limit for V0M multiplicity"};

Filter collV0Mfilter = ((o2::aod::femtouniversecollision::multV0M > ConfV0MLow) && (o2::aod::femtouniversecollision::multV0M < ConfV0MHigh));
// Filter trackAdditionalfilter = (nabs(aod::femtouniverseparticle::eta) < twotracksconfigs.ConfEtaMax); // example filtering on configurable
using FilteredFDCollisions = soa::Filtered<aod::FDCollisions>;
using FilteredFDCollision = soa::Filtered<aod::FDCollisions>::iterator;

/// Particle part
ConfigurableAxis ConfTempFitVarBins{"ConfDTempFitVarBins", {300, -0.15, 0.15}, "binning of the TempFitVar in the pT vs. TempFitVar plot"};
Expand Down Expand Up @@ -412,7 +413,7 @@ struct femtoUniversePairTaskTrackTrack3DMultKtExtended {
template <typename CollisionType>
void fillCollision(CollisionType col)
{
MixQaRegistry.fill(HIST("MixingQA/hSECollisionBins"), colBinning.getBin({col.posZ(), col.multNtr()}));
MixQaRegistry.fill(HIST("MixingQA/hSECollisionBins"), colBinning.getBin({col.posZ(), col.multV0M()}));
eventHisto.fillQA(col);
}

Expand Down Expand Up @@ -563,7 +564,7 @@ struct femtoUniversePairTaskTrackTrack3DMultKtExtended {
/// process function for to call doSameEvent with Data
/// \param col subscribe to the collision table (Data)
/// \param parts subscribe to the femtoUniverseParticleTable
void processSameEvent(soa::Filtered<o2::aod::FDCollisions>::iterator& col,
void processSameEvent(FilteredFDCollision& col,
FilteredFemtoFullParticles& parts)
{
fillCollision(col);
Expand All @@ -574,15 +575,15 @@ struct femtoUniversePairTaskTrackTrack3DMultKtExtended {
bool fillQA = true;

if (cfgProcessPM) {
doSameEvent<false>(thegroupPartsOne, thegroupPartsTwo, parts, col.magField(), col.multNtr(), 1, fillQA);
doSameEvent<false>(thegroupPartsOne, thegroupPartsTwo, parts, col.magField(), col.multV0M(), 1, fillQA);
}

if (cfgProcessPP) {
doSameEvent<false>(thegroupPartsOne, thegroupPartsOne, parts, col.magField(), col.multNtr(), 2, fillQA);
doSameEvent<false>(thegroupPartsOne, thegroupPartsOne, parts, col.magField(), col.multV0M(), 2, fillQA);
}

if (cfgProcessMM) {
doSameEvent<false>(thegroupPartsTwo, thegroupPartsTwo, parts, col.magField(), col.multNtr(), 3, fillQA);
doSameEvent<false>(thegroupPartsTwo, thegroupPartsTwo, parts, col.magField(), col.multV0M(), 3, fillQA);
}
}
PROCESS_SWITCH(femtoUniversePairTaskTrackTrack3DMultKtExtended, processSameEvent, "Enable processing same event", true);
Expand All @@ -603,15 +604,15 @@ struct femtoUniversePairTaskTrackTrack3DMultKtExtended {
bool fillQA = true;

if (cfgProcessPM) {
doSameEvent<false>(thegroupPartsOne, thegroupPartsTwo, parts, col.magField(), col.multNtr(), 1, fillQA);
doSameEvent<false>(thegroupPartsOne, thegroupPartsTwo, parts, col.magField(), col.multV0M(), 1, fillQA);
}

if (cfgProcessPP) {
doSameEvent<true>(thegroupPartsOne, thegroupPartsOne, parts, col.magField(), col.multNtr(), 2, fillQA);
doSameEvent<true>(thegroupPartsOne, thegroupPartsOne, parts, col.magField(), col.multV0M(), 2, fillQA);
}

if (cfgProcessMM) {
doSameEvent<true>(thegroupPartsTwo, thegroupPartsTwo, parts, col.magField(), col.multNtr(), 3, fillQA);
doSameEvent<true>(thegroupPartsTwo, thegroupPartsTwo, parts, col.magField(), col.multV0M(), 3, fillQA);
}
}
PROCESS_SWITCH(femtoUniversePairTaskTrackTrack3DMultKtExtended, processSameEventMC, "Enable processing same event for Monte Carlo", false);
Expand Down Expand Up @@ -687,12 +688,12 @@ struct femtoUniversePairTaskTrackTrack3DMultKtExtended {
/// process function for to call doMixedEvent with Data
/// @param cols subscribe to the collisions table (Data)
/// @param parts subscribe to the femtoUniverseParticleTable
void processMixedEvent(soa::Filtered<o2::aod::FDCollisions>& cols,
void processMixedEvent(FilteredFDCollisions& cols,
FilteredFemtoFullParticles& parts)
{
for (auto& [collision1, collision2] : soa::selfCombinations(colBinning, 5, -1, cols, cols)) {

const int multiplicityCol = collision1.multNtr();
const int multiplicityCol = collision1.multV0M();
MixQaRegistry.fill(HIST("MixingQA/hMECollisionBins"), colBinning.getBin({collision1.posZ(), multiplicityCol}));

const auto& magFieldTesla1 = collision1.magField();
Expand Down Expand Up @@ -731,7 +732,7 @@ struct femtoUniversePairTaskTrackTrack3DMultKtExtended {
{
for (auto& [collision1, collision2] : soa::selfCombinations(colBinning, 5, -1, cols, cols)) {

const int multiplicityCol = collision1.multNtr();
const int multiplicityCol = collision1.multV0M();
MixQaRegistry.fill(HIST("MixingQA/hMECollisionBins"), colBinning.getBin({collision1.posZ(), multiplicityCol}));

const auto& magFieldTesla1 = collision1.magField();
Expand Down

0 comments on commit 1444dbf

Please sign in to comment.