Skip to content
Closed
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
90 changes: 90 additions & 0 deletions PWGLF/DataModel/LFAntinCexTables.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
#ifndef PWGLF_DATAMODEL_LFANTINCEXTABLES_H_

Check failure on line 1 in PWGLF/DataModel/LFAntinCexTables.h

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Provide mandatory file documentation.
#define PWGLF_DATAMODEL_LFANTINCEXTABLES_H_

#include "Framework/AnalysisDataModel.h"
#include "Framework/ASoAHelpers.h"

namespace o2::aod
{
namespace antinCexNS
{

Check failure on line 10 in PWGLF/DataModel/LFAntinCexTables.h

View workflow job for this annotation

GitHub Actions / PR formatting / copyright headers

Missing or malformed copyright notice

This source file is missing the correct copyright notice.
// Etiqueta/metadata básica

Check failure on line 11 in PWGLF/DataModel/LFAntinCexTables.h

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \author is missing, incorrect or misplaced.

Check failure on line 11 in PWGLF/DataModel/LFAntinCexTables.h

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \brief is missing, incorrect or misplaced.

Check failure on line 11 in PWGLF/DataModel/LFAntinCexTables.h

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \file is missing, incorrect or misplaced.
DECLARE_SOA_COLUMN(IsCex, isCex, bool); // 1=CEX (from antin), 0=BG

Check failure on line 12 in PWGLF/DataModel/LFAntinCexTables.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(MotherPdg, motherPdg, int32_t); // mother PDG

Check failure on line 13 in PWGLF/DataModel/LFAntinCexTables.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(ColId, colId, int32_t); // mcCollisionId

Check failure on line 14 in PWGLF/DataModel/LFAntinCexTables.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(PId, pId, int32_t); // proton MC id

Check failure on line 15 in PWGLF/DataModel/LFAntinCexTables.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(AntipId, antipId, int32_t); // antiproton MC id

Check failure on line 16 in PWGLF/DataModel/LFAntinCexTables.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.

// MC (par)
DECLARE_SOA_COLUMN(McPairP, mcPairP, float);

Check failure on line 19 in PWGLF/DataModel/LFAntinCexTables.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(McPairPt, mcPairPt, float);
DECLARE_SOA_COLUMN(McPairPz, mcPairPz, float);
DECLARE_SOA_COLUMN(McDplane, mcDplane, float);
DECLARE_SOA_COLUMN(McAngleDeg, mcAngleDeg, float);
DECLARE_SOA_COLUMN(McVtxX, mcVtxX, float);
DECLARE_SOA_COLUMN(McVtxY, mcVtxY, float);
DECLARE_SOA_COLUMN(McVtxZ, mcVtxZ, float);

// Tracks (par, del fitter)
DECLARE_SOA_COLUMN(TrkPairP, trkPairP, float);
DECLARE_SOA_COLUMN(TrkPairPt, trkPairPt, float);
DECLARE_SOA_COLUMN(TrkPairPz, trkPairPz, float);
DECLARE_SOA_COLUMN(TrkAngleDeg, trkAngleDeg, float);
DECLARE_SOA_COLUMN(TrkVtxfitDcaPair,trkVtxfitDcaPair,float);
DECLARE_SOA_COLUMN(TrkVtxfitR, trkVtxfitR, float);
DECLARE_SOA_COLUMN(TrkVtxfitDistToPv,trkVtxfitDistToPv,float);
DECLARE_SOA_COLUMN(TrkVtxfitSecVtxX,trkVtxfitSecVtxX,float);
DECLARE_SOA_COLUMN(TrkVtxfitSecVtxY,trkVtxfitSecVtxY,float);
DECLARE_SOA_COLUMN(TrkVtxfitSecVtxZ,trkVtxfitSecVtxZ,float);

// Calidad del fit y residuales (fit − MC)
DECLARE_SOA_COLUMN(VtxfitChi2, vtxfitChi2, float);
DECLARE_SOA_COLUMN(VtxfitStatus, vtxfitStatus, int32_t);
DECLARE_SOA_COLUMN(NCand, nCand, int32_t);
DECLARE_SOA_COLUMN(VtxfitDX, vtxfitDX, float);
DECLARE_SOA_COLUMN(VtxfitDY, vtxfitDY, float);
DECLARE_SOA_COLUMN(VtxfitDZ, vtxfitDZ, float);
DECLARE_SOA_COLUMN(VtxfitD3D, vtxfitD3D, float);

// Track del protón
DECLARE_SOA_COLUMN(PTrkP, pTrkP, float);
DECLARE_SOA_COLUMN(PTrkPx, pTrkPx, float);
DECLARE_SOA_COLUMN(PTrkPy, pTrkPy, float);
DECLARE_SOA_COLUMN(PTrkPz, pTrkPz, float);
DECLARE_SOA_COLUMN(PTrkEta, pTrkEta, float);
DECLARE_SOA_COLUMN(PTrkTpcSignal, pTrkTpcSignal, float);
DECLARE_SOA_COLUMN(PTrkNClsIts, pTrkNClsIts, int16_t);

// Track del antiprotón
DECLARE_SOA_COLUMN(AntipTrkP, antipTrkP, float);
DECLARE_SOA_COLUMN(AntipTrkPx, antipTrkPx, float);
DECLARE_SOA_COLUMN(AntipTrkPy, antipTrkPy, float);
DECLARE_SOA_COLUMN(AntipTrkPz, antipTrkPz, float);
DECLARE_SOA_COLUMN(AntipTrkEta, antipTrkEta, float);
DECLARE_SOA_COLUMN(AntipTrkTpcSignal, antipTrkTpcSignal, float);
DECLARE_SOA_COLUMN(AntipTrkNClsIts, antipTrkNClsIts, int16_t);

// (Opcional pero útil) Máscara de selección por cortes
DECLARE_SOA_COLUMN(SelMask, selMask, uint32_t); // bits de cortes superados
} // namespace antinCexNS

// Tabla única para CEX y BG (flag isCex)
DECLARE_SOA_TABLE(antinCexPairs, "AOD", "ANTINCEX",
antinCexNS::IsCex,
antinCexNS::MotherPdg, antinCexNS::ColId, antinCexNS::PId, antinCexNS::AntipId,
antinCexNS::McPairP, antinCexNS::McPairPt, antinCexNS::McPairPz,
antinCexNS::McDplane, antinCexNS::McAngleDeg, antinCexNS::McVtxX, antinCexNS::McVtxY, antinCexNS::McVtxZ,
antinCexNS::TrkPairP, antinCexNS::TrkPairPt, antinCexNS::TrkPairPz, antinCexNS::TrkAngleDeg,
antinCexNS::TrkVtxfitDcaPair, antinCexNS::TrkVtxfitR, antinCexNS::TrkVtxfitDistToPv,
antinCexNS::TrkVtxfitSecVtxX, antinCexNS::TrkVtxfitSecVtxY, antinCexNS::TrkVtxfitSecVtxZ,
antinCexNS::VtxfitChi2, antinCexNS::VtxfitStatus, antinCexNS::NCand,
antinCexNS::VtxfitDX, antinCexNS::VtxfitDY, antinCexNS::VtxfitDZ, antinCexNS::VtxfitD3D,
antinCexNS::PTrkP, antinCexNS::PTrkPx, antinCexNS::PTrkPy, antinCexNS::PTrkPz, antinCexNS::PTrkEta, antinCexNS::PTrkTpcSignal, antinCexNS::PTrkNClsIts,
antinCexNS::AntipTrkP, antinCexNS::AntipTrkPx, antinCexNS::AntipTrkPy, antinCexNS::AntipTrkPz, antinCexNS::AntipTrkEta, antinCexNS::AntipTrkTpcSignal, antinCexNS::AntipTrkNClsIts,
antinCexNS::SelMask
)

} // namespace o2::aod

#endif // PWGLF_DATAMODEL_LFANTINCEXTABLES_H_

5 changes: 5 additions & 0 deletions PWGLF/TableProducer/Nuspex/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,8 @@ o2physics_add_dpl_workflow(he3-lambda-analysis
SOURCES he3LambdaAnalysis.cxx
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2Physics::EventFilteringUtils
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(nuclei-antineutron-cex
SOURCES nucleiAntineutronCex.cxx
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
COMPONENT_NAME Analysis)
Loading
Loading