Skip to content

Commit c47594c

Browse files
[PWGLF] Updates in sigma0 tasks (#14078)
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent 8b098aa commit c47594c

File tree

3 files changed

+1347
-354
lines changed

3 files changed

+1347
-354
lines changed

PWGLF/DataModel/LFSigmaTables.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ using std::array;
3535
namespace o2::aod
3636
{
3737

38+
// Indexing
39+
namespace sigma0Core
40+
{
41+
DECLARE_SOA_INDEX_COLUMN_FULL(PhotonV0, photonV0, int, V0Cores, "_PhotonV0"); //!
42+
DECLARE_SOA_INDEX_COLUMN_FULL(LambdaV0, lambdaV0, int, V0Cores, "_LambdaV0"); //!
43+
} // namespace sigma0Core
44+
3845
// for real data
3946
namespace sigma0Core
4047
{
@@ -429,6 +436,7 @@ DECLARE_SOA_DYNAMIC_COLUMN(LambdaMCPhi, lambdaMCPhi, //! Phi in the range [0, 2p
429436
} // namespace sigma0MCCore
430437

431438
DECLARE_SOA_TABLE(Sigma0MCCores, "AOD", "SIGMA0MCCORES",
439+
432440
// Basic properties
433441
sigma0MCCore::MCradius, sigma0MCCore::PDGCode, sigma0MCCore::PDGCodeMother, sigma0MCCore::MCprocess, sigma0MCCore::IsProducedByGenerator,
434442

@@ -465,6 +473,10 @@ DECLARE_SOA_TABLE(Sigma0MCCores, "AOD", "SIGMA0MCCORES",
465473
sigma0MCCore::LambdaMCY<sigma0MCCore::LambdaMCPx, sigma0MCCore::LambdaMCPy, sigma0MCCore::LambdaMCPz>,
466474
sigma0MCCore::LambdaMCPhi<sigma0MCCore::LambdaMCPx, sigma0MCCore::LambdaMCPy>);
467475

476+
namespace sigma0MCCore
477+
{
478+
DECLARE_SOA_INDEX_COLUMN(McParticle, mcParticle); //! MC particle for Sigma0
479+
}
468480
namespace sigma0Gen
469481
{
470482
DECLARE_SOA_COLUMN(IsSigma0, isSigma0, bool); // true: sigma0, false: antisigma0
@@ -481,6 +493,12 @@ DECLARE_SOA_TABLE(Sigma0Gens, "AOD", "SIGMA0GENS",
481493
DECLARE_SOA_TABLE(SigmaCollRef, "AOD", "SIGMACOLLREF", //! optional table to refer back to a collision
482494
o2::soa::Index<>, v0data::StraCollisionId);
483495

496+
DECLARE_SOA_TABLE(SigmaIndices, "AOD", "SIGMAINDEX", //! index table when using AO2Ds
497+
o2::soa::Index<>, sigma0Core::PhotonV0Id, sigma0Core::LambdaV0Id, o2::soa::Marker<1>);
498+
499+
DECLARE_SOA_TABLE(SigmaMCLabels, "AOD", "SIGMAMCLABEL", //! optional table to refer to mcparticles
500+
o2::soa::Index<>, sigma0MCCore::McParticleId);
501+
484502
DECLARE_SOA_TABLE(SigmaGenCollRef, "AOD", "SIGMAGENCOLLREF", //! optional table to refer back to a collision
485503
o2::soa::Index<>, v0data::StraMCCollisionId);
486504

0 commit comments

Comments
 (0)