Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PWGLF] V0 analysis vs multiplicity: remove unbound index #9630

Merged
merged 2 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
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
5 changes: 2 additions & 3 deletions PWGLF/DataModel/v0qaanalysis.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.

Check warning on line 1 in PWGLF/DataModel/v0qaanalysis.h

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Provide mandatory file documentation.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
Expand All @@ -11,7 +11,7 @@
///
/// \brief QA task for V0 analysis using derived data
///
/// \author Francesca Ercolessi ([email protected])

Check warning on line 14 in PWGLF/DataModel/v0qaanalysis.h

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \file is missing, incorrect or misplaced.

#ifndef PWGLF_DATAMODEL_V0QAANALYSIS_H_
#define PWGLF_DATAMODEL_V0QAANALYSIS_H_
Expand All @@ -22,15 +22,14 @@
namespace myv0candidates
{

DECLARE_SOA_INDEX_COLUMN(Collision, collision);
DECLARE_SOA_COLUMN(V0Pt, v0pt, float);

Check warning on line 25 in PWGLF/DataModel/v0qaanalysis.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-column]

Use UpperCamelCase for names of O2 columns and matching lowerCamelCase names for their getters.
DECLARE_SOA_COLUMN(RapLambda, raplambda, float);

Check warning on line 26 in PWGLF/DataModel/v0qaanalysis.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-column]

Use UpperCamelCase for names of O2 columns and matching lowerCamelCase names for their getters.
DECLARE_SOA_COLUMN(RapK0Short, rapk0short, float);

Check warning on line 27 in PWGLF/DataModel/v0qaanalysis.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-column]

Use UpperCamelCase for names of O2 columns and matching lowerCamelCase names for their getters.
DECLARE_SOA_COLUMN(MassLambda, masslambda, float);

Check warning on line 28 in PWGLF/DataModel/v0qaanalysis.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-column]

Use UpperCamelCase for names of O2 columns and matching lowerCamelCase names for their getters.
DECLARE_SOA_COLUMN(MassAntiLambda, massantilambda, float);

Check warning on line 29 in PWGLF/DataModel/v0qaanalysis.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-column]

Use UpperCamelCase for names of O2 columns and matching lowerCamelCase names for their getters.
DECLARE_SOA_COLUMN(MassK0Short, massk0short, float);

Check warning on line 30 in PWGLF/DataModel/v0qaanalysis.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-column]

Use UpperCamelCase for names of O2 columns and matching lowerCamelCase names for their getters.
DECLARE_SOA_COLUMN(V0Radius, v0radius, float);

Check warning on line 31 in PWGLF/DataModel/v0qaanalysis.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-column]

Use UpperCamelCase for names of O2 columns and matching lowerCamelCase names for their getters.
DECLARE_SOA_COLUMN(V0CosPA, v0cospa, float);

Check warning on line 32 in PWGLF/DataModel/v0qaanalysis.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-column]

Use UpperCamelCase for names of O2 columns and matching lowerCamelCase names for their getters.
DECLARE_SOA_COLUMN(V0DCAPosToPV, v0dcapostopv, float);
DECLARE_SOA_COLUMN(V0DCANegToPV, v0dcanegtopv, float);
DECLARE_SOA_COLUMN(V0DCAV0Daughters, v0dcav0daughters, float);
Expand Down Expand Up @@ -66,8 +65,8 @@

} // namespace myv0candidates

DECLARE_SOA_TABLE(MyV0Candidates, "AOD", "MYV0CANDIDATES", o2::soa::Index<>,
myv0candidates::CollisionId, myv0candidates::V0Pt, myv0candidates::RapLambda, myv0candidates::RapK0Short,
DECLARE_SOA_TABLE(MyV0Candidates, "AOD", "MYV0CANDIDATES",
myv0candidates::V0Pt, myv0candidates::RapLambda, myv0candidates::RapK0Short,
myv0candidates::MassLambda, myv0candidates::MassAntiLambda, myv0candidates::MassK0Short,
myv0candidates::V0Radius, myv0candidates::V0CosPA, myv0candidates::V0DCAPosToPV,
myv0candidates::V0DCANegToPV, myv0candidates::V0DCAV0Daughters,
Expand Down
4 changes: 2 additions & 2 deletions PWGLF/TableProducer/Strangeness/v0qaanalysis.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ struct LfV0qaanalysis {
TMath::Abs(v0.negTrack_as<DauTracks>().eta()) < etadau) {

// Fill table
myv0s(v0.globalIndex(), v0.pt(), v0.yLambda(), v0.yK0Short(),
myv0s(v0.pt(), v0.yLambda(), v0.yK0Short(),
v0.mLambda(), v0.mAntiLambda(), v0.mK0Short(),
v0.v0radius(), v0.v0cosPA(),
v0.dcapostopv(), v0.dcanegtopv(), v0.dcaV0daughters(),
Expand Down Expand Up @@ -363,7 +363,7 @@ struct LfV0qaanalysis {
) {

// Fill table
myv0s(v0.globalIndex(), v0.pt(), v0.yLambda(), v0.yK0Short(),
myv0s(v0.pt(), v0.yLambda(), v0.yK0Short(),
v0.mLambda(), v0.mAntiLambda(), v0.mK0Short(),
v0.v0radius(), v0.v0cosPA(),
v0.dcapostopv(), v0.dcanegtopv(), v0.dcaV0daughters(),
Expand Down
11 changes: 8 additions & 3 deletions PWGLF/Tasks/Strangeness/v0postprocessing.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ struct v0postprocessing {
Configurable<float> ntpcsigma{"ntpcsigma", 5, "N sigma TPC"};
Configurable<float> ntpcsigmaMC{"ntpcsigmaMC", 100, "N sigma TPC for MC"};
Configurable<float> etadau{"etadau", 0.8, "Eta Daughters"};
Configurable<float> minITShits{"minITShits", 2, "min ITS hits"};
Configurable<bool> isMC{"isMC", 1, "isMC"};
Configurable<bool> evSel{"evSel", 1, "evSel"};
Configurable<bool> hasTOF2Leg{"hasTOF2Leg", 0, "hasTOF2Leg"};
Expand Down Expand Up @@ -131,6 +132,10 @@ struct v0postprocessing {
continue;
if (TMath::Abs(candidate.v0negeta()) > etadau)
continue;
if (TMath::Abs(candidate.v0positshits()) < minITShits)
continue;
if (TMath::Abs(candidate.v0negitshits()) < minITShits)
continue;
if (TMath::Abs(candidate.v0dcanegtopv()) < dcanegtopv)
continue;
if (TMath::Abs(candidate.v0dcapostopv()) < dcapostopv)
Expand Down Expand Up @@ -244,7 +249,7 @@ struct v0postprocessing {
TMath::Abs(candidate.masslambda() - o2::constants::physics::MassLambda0) > v0rejK0s &&
TMath::Abs(candidate.ntpcsigmanegpi()) <= ntpcsigmaMC &&
TMath::Abs(candidate.ntpcsigmapospi()) <= ntpcsigmaMC &&
(candidate.pdgcode() == 310)) {
(candidate.pdgcode() == 310) && candidate.isdauk0short()) {

registry.fill(HIST("hArmenterosPodolanski"), candidate.alpha(), candidate.qtarm());

Expand Down Expand Up @@ -275,7 +280,7 @@ struct v0postprocessing {
if (TMath::Abs(candidate.ntpcsigmanegpi()) <= ntpcsigmaMC && TMath::Abs(candidate.ntpcsigmapospr()) <= ntpcsigmaMC &&
candidate.ctaulambda() < ctauLambda &&
TMath::Abs(candidate.masslambda() - o2::constants::physics::MassLambda0) < 0.075 &&
candidate.pdgcode() == 3122) {
candidate.pdgcode() == 3122 && candidate.isdaulambda()) {

registry.fill(HIST("hMassLambda_MC"), candidate.masslambda());
registry.fill(HIST("hMassVsPtLambda_MC"), candidate.v0pt(), candidate.multft0m(), candidate.masslambda());
Expand All @@ -295,7 +300,7 @@ struct v0postprocessing {
if (TMath::Abs(candidate.ntpcsigmanegpr()) <= ntpcsigmaMC && TMath::Abs(candidate.ntpcsigmapospi()) <= ntpcsigmaMC &&
candidate.ctauantilambda() < ctauLambda &&
TMath::Abs(candidate.massantilambda() - o2::constants::physics::MassLambda0) < 0.075 &&
candidate.pdgcode() == -3122) {
candidate.pdgcode() == -3122 && candidate.isdauantilambda()) {

registry.fill(HIST("hMassAntiLambda_MC"), candidate.massantilambda());
registry.fill(HIST("hMassVsPtAntiLambda_MC"), candidate.v0pt(), candidate.multft0m(), candidate.massantilambda());
Expand Down
Loading