Skip to content

Commit

Permalink
Change QA options (AliceO2Group#3743)
Browse files Browse the repository at this point in the history
Co-authored-by: David Dobrigkeit Chinellato <david.dobrigkeit.chinellato.cern.ch>
  • Loading branch information
ddobrigk authored and christianreckziegel committed Nov 9, 2023
1 parent e526cae commit edb6cb9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion PWGLF/TableProducer/cascadebuilder.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1584,6 +1584,9 @@ struct cascadeBuilder {
struct cascadePreselector {
Produces<aod::CascTags> casctags; // MC tags

// for bookkeeping
HistogramRegistry histos{"Histos", {}, OutputObjHandlingPolicy::AnalysisObject};

Configurable<bool> dIfMCgenerateXiMinus{"dIfMCgenerateXiMinus", true, "if MC, generate MC true XiMinus (yes/no)"};
Configurable<bool> dIfMCgenerateXiPlus{"dIfMCgenerateXiPlus", true, "if MC, generate MC true XiPlus (yes/no)"};
Configurable<bool> dIfMCgenerateOmegaMinus{"dIfMCgenerateOmegaMinus", true, "if MC, generate MC true OmegaMinus (yes/no)"};
Expand Down Expand Up @@ -1619,7 +1622,10 @@ struct cascadePreselector {
bitdEdxOmegaPlus,
bitUsedInTrackedCascade };

void init(InitContext const&) {}
void init(InitContext const&)
{
histos.add("hPreselectorStatistics", "hPreselectorStatistics", kTH1F, {{5, -0.5f, 4.5f}});
}

//*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*
/// function to check track quality
Expand Down Expand Up @@ -1762,19 +1768,24 @@ struct cascadePreselector {
{
// parse + publish tag table now
for (int ii = 0; ii < selectionMask.size(); ii++) {
histos.fill(HIST("hPreselectorStatistics"), 0.0f); // All cascades
bool validCascade = bitcheck(selectionMask[ii], bitTrackQuality);
histos.fill(HIST("hPreselectorStatistics"), 1.0f); // pass MC assoc (if requested)
if (doprocessBuildMCAssociated || doprocessBuildValiddEdxMCAssociated)
validCascade = validCascade && ((bitcheck(selectionMask[ii], bitTrueXiMinus) && dIfMCgenerateXiMinus) ||
(bitcheck(selectionMask[ii], bitTrueXiPlus) && dIfMCgenerateXiPlus) ||
(bitcheck(selectionMask[ii], bitTrueOmegaMinus) && dIfMCgenerateOmegaMinus) ||
(bitcheck(selectionMask[ii], bitTrueOmegaPlus) && dIfMCgenerateOmegaPlus));
histos.fill(HIST("hPreselectorStatistics"), 2.0f); // pass MC assoc (if requested)
if (doprocessBuildValiddEdx || doprocessBuildValiddEdxMCAssociated)
validCascade = validCascade && ((bitcheck(selectionMask[ii], bitdEdxXiMinus) && ddEdxPreSelectXiMinus) ||
(bitcheck(selectionMask[ii], bitdEdxXiPlus) && ddEdxPreSelectXiPlus) ||
(bitcheck(selectionMask[ii], bitdEdxOmegaMinus) && ddEdxPreSelectOmegaMinus) ||
(bitcheck(selectionMask[ii], bitdEdxOmegaPlus) && ddEdxPreSelectOmegaPlus));
histos.fill(HIST("hPreselectorStatistics"), 3.0f); // pass dEdx (if requested)
if (doprocessSkipCascadesNotUsedInTrackedCascades)
validCascade = validCascade && bitcheck(selectionMask[ii], bitUsedInTrackedCascade);
histos.fill(HIST("hPreselectorStatistics"), 4.0f); // All cascades
casctags(validCascade,
bitcheck(selectionMask[ii], bitTrueXiMinus), bitcheck(selectionMask[ii], bitTrueXiPlus),
bitcheck(selectionMask[ii], bitTrueOmegaMinus), bitcheck(selectionMask[ii], bitTrueOmegaPlus),
Expand Down
2 changes: 1 addition & 1 deletion PWGLF/TableProducer/lambdakzerobuilder.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ struct lambdakzeroBuilder {
const AxisSpec axisVsPtCoarse{static_cast<int32_t>(dQANBinsPtCoarse), 0, dQAMaxPt, "#it{p}_{T} (GeV/c)"};
const AxisSpec axisGammaMass{static_cast<int32_t>(dQANBinsMass), 0.000f, 0.400f, "Inv. Mass (GeV/c^{2})"};
const AxisSpec axisK0ShortMass{static_cast<int32_t>(dQANBinsMass), 0.400f, 0.600f, "Inv. Mass (GeV/c^{2})"};
const AxisSpec axisLambdaMass{static_cast<int32_t>(dQANBinsMass), 1.01f, 1.21f, "Inv. Mass (GeV/c^{2})"};
const AxisSpec axisLambdaMass{static_cast<int32_t>(5 * dQANBinsMass), 1.01f, 2.01f, "Inv. Mass (GeV/c^{2})"};
const AxisSpec axisHypertritonMass{static_cast<int32_t>(dQANBinsMass), 2.900f, 3.300f, "Inv. Mass (GeV/c^{2})"};

registry.add("h2dGammaMass", "h2dGammaMass", kTH2F, {axisVsPtCoarse, axisGammaMass});
Expand Down

0 comments on commit edb6cb9

Please sign in to comment.