Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 13 additions & 15 deletions PWGLF/Tasks/QC/v0cascadesqa.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

#include <cmath>
// #include <cstdlib>
#include "PWGLF/DataModel/LFStrangenessTables.h"
#include "PWGLF/DataModel/LFStrangenessPIDTables.h"
#include "PWGLF/DataModel/LFStrangenessTables.h"

#include "Common/CCDB/ctpRateFetcher.h"
#include "Common/Core/TrackSelection.h"
Expand Down Expand Up @@ -53,7 +53,7 @@ enum ParticleType : uint8_t { kPhoton = 0,
kXiM,
kXiP,
kOmegaM,
kOmegaP};
kOmegaP };

// using DaughterTracks = soa::Join<aod::Tracks, aod::TracksExtra, aod::TracksDCA, aod::pidTOFPi, aod::pidTPCPi, aod::pidTOFPr, aod::pidTPCPr, aod::pidTOFKa, aod::pidTPCKa>;
using DaughterTracks = soa::Join<aod::TracksIU, aod::TracksExtra, aod::TracksDCA, aod::pidTPCPi, aod::pidTPCPr, aod::pidTPCKa>;
Expand Down Expand Up @@ -279,7 +279,7 @@ struct v0cascadesQA {
ConfigurableAxis axisCascDCABachToPV{"axisCascDCABachToPV", {100, -1.0f, 1.0f}, "DCA bach. to PV (cm)"};
ConfigurableAxis axisInvMassXi{"axisInvMassXi", {80, 1.28f, 1.36f}, "Inv. mass (GeV/#it{c}%{2})"};
ConfigurableAxis axisInvMassOmega{"axisInvMassOmega", {80, 1.63f, 1.71f}, "Inv. mass (GeV/#it{c}%{2})"};

} axisConfigurations;

int dauEtaFlag = 0;
Expand Down Expand Up @@ -675,7 +675,7 @@ struct v0cascadesQA {
if (negTrackExtra.itsChi2NCl() > v0Selections.maxITSchi2PerNcls)
return false;

// ITS only tag
// ITS only tag
if (v0Selections.requirePosITSonly) {
if (posTrackExtra.tpcNClsCrossedRows() > 0)
return false;
Expand All @@ -697,7 +697,7 @@ struct v0cascadesQA {
if (negTrackExtra.tpcChi2NCl() > v0Selections.maxTPCchi2PerNcls)
return false;

// check the maximum fraction of allowed shared TPC
// check the maximum fraction of allowed shared TPC
if (posTrackExtra.tpcFractionSharedCls() > v0Selections.maxFractionTPCSharedClusters)
return false;
if (negTrackExtra.tpcFractionSharedCls() > v0Selections.maxFractionTPCSharedClusters)
Expand Down Expand Up @@ -730,7 +730,7 @@ struct v0cascadesQA {
if (std::fabs(negTrackExtra.tpcNSigmaPr()) > v0Selections.tpcPidNsigmaCutLaPr)
return false;
}

// TOF Requirement checks
if (v0Selections.requirePosHasTOF && !v0.positiveHasTOF()) {
return false;
Expand Down Expand Up @@ -793,7 +793,7 @@ struct v0cascadesQA {
if (negTrackExtra.hasTRD() && negTRDhits < v0Selections.minTRDclusters) {
return false;
}

return true;
}

Expand Down Expand Up @@ -1017,7 +1017,7 @@ struct v0cascadesQA {
{
if (!v0.isPhysicalPrimary())
return false;

bool isPositiveProton = v0.pdgCodePositive() == PDG_t::kProton;
bool isPositivePion = v0.pdgCodePositive() == PDG_t::kPiPlus || (doTreatPiToMuon && v0.pdgCodePositive() == PDG_t::kMuonPlus);
bool isNegativeProton = v0.pdgCodeNegative() == PDG_t::kProtonBar;
Expand All @@ -1041,7 +1041,7 @@ struct v0cascadesQA {
{
if (!casc.isPhysicalPrimary())
return false;

bool isBachelorPionPlus = casc.pdgCodeBachelor() == PDG_t::kPiPlus || (doTreatPiToMuon && casc.pdgCodeBachelor() == PDG_t::kMuonPlus);
bool isBachelorKaonPlus = casc.pdgCodeBachelor() == PDG_t::kKPlus;
bool isBachelorPionMinus = casc.pdgCodeBachelor() == PDG_t::kPiMinus || (doTreatPiToMuon && casc.pdgCodeBachelor() == PDG_t::kMuonMinus);
Expand Down Expand Up @@ -1079,7 +1079,7 @@ struct v0cascadesQA {
histos_event.fill(HIST("hEventCounter"), 1.5);

for (auto& v0 : fullV0s) {
if (std::abs(v0.negativeeta()) > v0Selections.daughterEtaCut ||
if (std::abs(v0.negativeeta()) > v0Selections.daughterEtaCut ||
std::abs(v0.positiveeta()) > v0Selections.daughterEtaCut)
continue; // remove acceptance that's badly reproduced by MC / superfluous in future

Expand Down Expand Up @@ -1185,7 +1185,7 @@ struct v0cascadesQA {
}

for (auto& casc : fullCascades) {
if (std::abs(casc.negativeeta()) > cascSelections.daughterEtaCut ||
if (std::abs(casc.negativeeta()) > cascSelections.daughterEtaCut ||
std::abs(casc.positiveeta()) > cascSelections.daughterEtaCut ||
std::abs(casc.bacheloreta()) > cascSelections.daughterEtaCut)
continue; // remove acceptance that's badly reproduced by MC / superfluous in future
Expand Down Expand Up @@ -1240,7 +1240,6 @@ struct v0cascadesQA {
}
}
}


////////////////////////////////
////////// QA - MC /////////////
Expand All @@ -1266,7 +1265,7 @@ struct v0cascadesQA {
}

for (auto& v0 : fullV0s) {
if (std::abs(v0.negativeeta()) > v0Selections.daughterEtaCut ||
if (std::abs(v0.negativeeta()) > v0Selections.daughterEtaCut ||
std::abs(v0.positiveeta()) > v0Selections.daughterEtaCut)
continue; // remove acceptance that's badly reproduced by MC / superfluous in future

Expand All @@ -1293,7 +1292,7 @@ struct v0cascadesQA {
}

for (auto& casc : fullCascades) {
if (std::abs(casc.negativeeta()) > cascSelections.daughterEtaCut ||
if (std::abs(casc.negativeeta()) > cascSelections.daughterEtaCut ||
std::abs(casc.positiveeta()) > cascSelections.daughterEtaCut ||
std::abs(casc.bacheloreta()) > cascSelections.daughterEtaCut)
continue; // remove acceptance that's badly reproduced by MC / superfluous in future
Expand Down Expand Up @@ -1410,7 +1409,6 @@ struct v0cascadesQA {
}
}


PROCESS_SWITCH(v0cascadesQA, processReconstructed, "Process reconstructed event and V0s+cascades in data", true);
PROCESS_SWITCH(v0cascadesQA, processMonteCarlo, "Process reconstructed event and V0s+cascades in MC", false);
PROCESS_SWITCH(v0cascadesQA, processGenerated, "Process MC level event and V0s+cascades in MC", false);
Expand Down
Loading