Skip to content

Commit f42f156

Browse files
Updates in sigma0 tasks
1 parent 144bfce commit f42f156

File tree

3 files changed

+1379
-383
lines changed

3 files changed

+1379
-383
lines changed

PWGLF/DataModel/LFSigmaTables.h

Lines changed: 20 additions & 1 deletion
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
{
@@ -428,7 +435,8 @@ DECLARE_SOA_DYNAMIC_COLUMN(LambdaMCPhi, lambdaMCPhi, //! Phi in the range [0, 2p
428435

429436
} // namespace sigma0MCCore
430437

431-
DECLARE_SOA_TABLE(Sigma0MCCores, "AOD", "SIGMA0MCCORES",
438+
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

@@ -854,3 +872,4 @@ DECLARE_SOA_TABLE(Pi0GenCollRef, "AOD", "PI0GENCOLLREF", //! optional table to r
854872
} // namespace o2::aod
855873

856874
#endif // PWGLF_DATAMODEL_LFSIGMATABLES_H_
875+

0 commit comments

Comments
 (0)