Skip to content

Commit 2451699

Browse files
Just to save my mods
1 parent 6cc0537 commit 2451699

3 files changed

Lines changed: 725 additions & 427 deletions

File tree

PWGLF/DataModel/LFSigmaTables.h

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,15 @@ namespace o2::aod
3636
{
3737

3838
// 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
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
4444

4545
// for real data
4646
namespace sigma0Core
4747
{
48-
DECLARE_SOA_COLUMN(PhotonV0ID, photonV0ID, int);
49-
DECLARE_SOA_COLUMN(LambdaV0ID, lambdaV0ID, int);
50-
5148
DECLARE_SOA_COLUMN(X, x, float);
5249
DECLARE_SOA_COLUMN(Y, y, float);
5350
DECLARE_SOA_COLUMN(Z, z, float);
@@ -166,8 +163,6 @@ DECLARE_SOA_DYNAMIC_COLUMN(LambdaPhi, lambdaPhi, //! Phi in the range [0, 2pi)
166163
} // namespace sigma0Core
167164

168165
DECLARE_SOA_TABLE(Sigma0Cores, "AOD", "SIGMA0CORES",
169-
// Indices for debug
170-
sigma0Core::PhotonV0ID, sigma0Core::LambdaV0ID,
171166
// Basic properties
172167
sigma0Core::X, sigma0Core::Y, sigma0Core::Z, sigma0Core::DCADaughters,
173168
sigma0Core::PhotonPx, sigma0Core::PhotonPy, sigma0Core::PhotonPz, sigma0Core::PhotonMass,
@@ -572,7 +567,6 @@ DECLARE_SOA_TABLE(Sigma0LambdaExtras, "AOD", "SIGMA0LAMBDA",
572567
// for MC
573568
namespace sigma0MCCore
574569
{
575-
DECLARE_SOA_COLUMN(ParticleIdMC, particleIdMC, int); //! V0 Particle ID
576570
DECLARE_SOA_COLUMN(MCradius, mcradius, float);
577571
DECLARE_SOA_COLUMN(PDGCode, pdgCode, int);
578572
DECLARE_SOA_COLUMN(PDGCodeMother, pdgCodeMother, int);
@@ -697,8 +691,6 @@ DECLARE_SOA_DYNAMIC_COLUMN(LambdaMCPhi, lambdaMCPhi, //! Phi in the range [0, 2p
697691
} // namespace sigma0MCCore
698692

699693
DECLARE_SOA_TABLE(Sigma0MCCores, "AOD", "SIGMA0MCCORES",
700-
// MC particle index for debug
701-
sigma0MCCore::ParticleIdMC,
702694

703695
// Basic properties
704696
sigma0MCCore::MCradius, sigma0MCCore::PDGCode, sigma0MCCore::PDGCodeMother, sigma0MCCore::MCprocess, sigma0MCCore::IsProducedByGenerator,
@@ -736,10 +728,10 @@ DECLARE_SOA_TABLE(Sigma0MCCores, "AOD", "SIGMA0MCCORES",
736728
sigma0MCCore::LambdaMCY<sigma0MCCore::LambdaMCPx, sigma0MCCore::LambdaMCPy, sigma0MCCore::LambdaMCPz>,
737729
sigma0MCCore::LambdaMCPhi<sigma0MCCore::LambdaMCPx, sigma0MCCore::LambdaMCPy>);
738730

739-
// namespace sigma0MCCore
740-
// {
741-
// DECLARE_SOA_INDEX_COLUMN(McParticle, mcParticle); //! MC particle for Sigma0
742-
// }
731+
namespace sigma0MCCore
732+
{
733+
DECLARE_SOA_INDEX_COLUMN(McParticle, mcParticle); //! MC particle for Sigma0
734+
}
743735

744736
// for MC
745737
namespace kstarMCCore
@@ -931,11 +923,11 @@ DECLARE_SOA_TABLE(KStarGens, "AOD", "KSTARGENS",
931923
DECLARE_SOA_TABLE(SigmaCollRef, "AOD", "SIGMACOLLREF", //! optional table to refer back to a collision
932924
o2::soa::Index<>, v0data::StraCollisionId);
933925

934-
// DECLARE_SOA_TABLE(SigmaIndices, "AOD", "SIGMAINDEX", //! index table when using AO2Ds
935-
// o2::soa::Index<>, sigma0Core::PhotonV0Id, sigma0Core::LambdaV0Id, o2::soa::Marker<1>);
926+
DECLARE_SOA_TABLE(SigmaIndices, "AOD", "SIGMAINDEX", //! index table when using AO2Ds
927+
o2::soa::Index<>, sigma0Core::PhotonV0Id, sigma0Core::LambdaV0Id, o2::soa::Marker<1>);
936928

937-
// DECLARE_SOA_TABLE(SigmaMCLabels, "AOD", "SIGMAMCLABEL", //! optional table to refer to mcparticles
938-
// o2::soa::Index<>, sigma0MCCore::McParticleId);
929+
DECLARE_SOA_TABLE(SigmaMCLabels, "AOD", "SIGMAMCLABEL", //! optional table to refer to mcparticles
930+
o2::soa::Index<>, sigma0MCCore::McParticleId);
939931

940932
DECLARE_SOA_TABLE(SigmaGenCollRef, "AOD", "SIGMAGENCOLLREF", //! optional table to refer back to a collision
941933
o2::soa::Index<>, v0data::StraMCCollisionId);
@@ -1317,4 +1309,4 @@ DECLARE_SOA_TABLE(Pi0GenCollRef, "AOD", "PI0GENCOLLREF", //! optional table to r
13171309

13181310
} // namespace o2::aod
13191311

1320-
#endif // PWGLF_DATAMODEL_LFSIGMATABLES_H_
1312+
#endif // PWGLF_DATAMODEL_LFSIGMATABLES_H_

0 commit comments

Comments
 (0)