@@ -1363,7 +1363,6 @@ DECLARE_SOA_TABLE(Pi0Gens, "AOD", "PI0GENS",
13631363DECLARE_SOA_TABLE (Pi0GenCollRef, " AOD" , " PI0GENCOLLREF" , // ! optional table to refer back to a collision
13641364 o2::soa::Index<>, v0data::StraMCCollisionId);
13651365
1366-
13671366// ___________________________________________________________________________
13681367// Xi0
13691368namespace Xi0Core
@@ -1418,11 +1417,11 @@ DECLARE_SOA_DYNAMIC_COLUMN(P, p, //! Total momentum in GeV/c
14181417
14191418DECLARE_SOA_DYNAMIC_COLUMN (Xi0Mass, xi0Mass,
14201419 [](float photon1Px, float photon1Py, float photon1Pz, float photon2Px, float photon2Py, float photon2Pz, float lambdaPx, float lambdaPy, float lambdaPz) -> float {
1421- std::array<float , 3 > pVecPi0{photon1Px+ photon2Px, photon1Py+ photon2Py, photon1Pz+ photon2Pz};
1420+ std::array<float , 3 > pVecPi0{photon1Px + photon2Px, photon1Py + photon2Py, photon1Pz + photon2Pz};
14221421 std::array<float , 3 > pVecLambda{lambdaPx, lambdaPy, lambdaPz};
14231422 auto arrMom = std::array{pVecPi0, pVecLambda};
14241423 return RecoDecay::m (arrMom, std::array{o2::constants::physics::MassPi0, o2::constants::physics::MassXi0});
1425- });
1424+ });
14261425
14271426DECLARE_SOA_DYNAMIC_COLUMN (PxPi0, pxPi0, // ! Pi0 px
14281427 [](float photon1Px, float photon2Px) -> float { return photon1Px + photon2Px; });
@@ -1456,11 +1455,11 @@ DECLARE_SOA_DYNAMIC_COLUMN(Radius, radius, //! Xi0 decay radius (2D, centered at
14561455 [](float x, float y) -> float { return RecoDecay::sqrtSumOfSquares (x, y); });
14571456
14581457DECLARE_SOA_DYNAMIC_COLUMN (RadiusPi0, radiusPi0, // ! Pi0 decay radius (2D, centered at zero)
1459- [](float x, float y) -> float { return RecoDecay::sqrtSumOfSquares (x, y); });
1458+ [](float x, float y) -> float { return RecoDecay::sqrtSumOfSquares (x, y); });
14601459
14611460DECLARE_SOA_DYNAMIC_COLUMN (RadiusLambda, radiusLambda, // ! Pi0 decay radius (2D, centered at zero)
1462- [](float x, float y) -> float { return RecoDecay::sqrtSumOfSquares (x, y); });
1463-
1461+ [](float x, float y) -> float { return RecoDecay::sqrtSumOfSquares (x, y); });
1462+
14641463// CosPAs
14651464DECLARE_SOA_DYNAMIC_COLUMN (Pi0CosPA, pi0CosPA, // !
14661465 [](float xPi0, float yPi0, float zPi0, float pxGamma1, float pyGamma1, float pzGamma1, float pxGamma2, float pyGamma2, float pzGamma2, float pvX, float pvY, float pvZ) -> float {
@@ -1479,14 +1478,14 @@ DECLARE_SOA_DYNAMIC_COLUMN(DCALambdaToPV, dcaLambdaToPV, //!
14791478 [](float X, float Y, float Z, float px, float py, float pz, float pvX, float pvY, float pvZ) -> float {
14801479 return std::sqrt ((std::pow ((pvY - Y) * pz - (pvZ - Z) * py, 2 ) + std::pow ((pvX - X) * pz - (pvZ - Z) * px, 2 ) + std::pow ((pvX - X) * py - (pvY - Y) * px, 2 )) / (px * px + py * py + pz * pz));
14811480 });
1482-
1481+
14831482DECLARE_SOA_DYNAMIC_COLUMN (DCAPi0ToPV, dcaPi0ToPV, // !
14841483 [](float X, float Y, float Z, float pxGamma1, float pyGamma1, float pzGamma1, float pxGamma2, float pyGamma2, float pzGamma2, float pvX, float pvY, float pvZ) -> float {
14851484 float px = pxGamma1 + pxGamma2;
14861485 float py = pyGamma1 + pyGamma2;
14871486 float pz = pzGamma1 + pzGamma2;
14881487 return std::sqrt ((std::pow ((pvY - Y) * pz - (pvZ - Z) * py, 2 ) + std::pow ((pvX - X) * pz - (pvZ - Z) * px, 2 ) + std::pow ((pvX - X) * py - (pvY - Y) * px, 2 )) / (px * px + py * py + pz * pz));
1489- });
1488+ });
14901489
14911490DECLARE_SOA_DYNAMIC_COLUMN (Photon1Pt, photon1Pt, // ! Transverse momentum in GeV/c
14921491 [](float photon1Px, float photon1Py) -> float {
@@ -1555,12 +1554,12 @@ DECLARE_SOA_DYNAMIC_COLUMN(LambdaY, lambdaY, //! Rapidity
15551554 });
15561555
15571556DECLARE_SOA_DYNAMIC_COLUMN (LambdaPhi, lambdaPhi, // ! Phi in the range [0, 2pi)
1558- [](float lambdaPx, float lambdaPy) -> float { return RecoDecay::phi (lambdaPx, lambdaPy); });
1557+ [](float lambdaPx, float lambdaPy) -> float { return RecoDecay::phi (lambdaPx, lambdaPy); });
15591558
1560- } // namespace Pi0Core
1559+ } // namespace Xi0Core
15611560
15621561DECLARE_SOA_TABLE (Xi0Cores, " AOD" , " XI0CORES" ,
1563- Xi0Core::X, Xi0Core::Y, Xi0Core::Z,
1562+ Xi0Core::X, Xi0Core::Y, Xi0Core::Z,
15641563 Xi0Core::XPi0, Xi0Core::YPi0, Xi0Core::ZPi0,
15651564 Xi0Core::XLambda, Xi0Core::YLambda, Xi0Core::ZLambda,
15661565 Xi0Core::DCADaughters, Xi0Core::DCADaughtersPi0, Xi0Core::DCAXYCascToPV, Xi0Core::DCAZCascToPV,
@@ -1619,15 +1618,14 @@ DECLARE_SOA_TABLE(Xi0CollRefs, "AOD", "XI0COLLREFS", //! optional table to refer
16191618 o2::soa::Index<>, v0data::StraCollisionId);
16201619
16211620DECLARE_SOA_TABLE (Xi0Indices, " AOD" , " XI0INDICES" , // ! optional table to refer back to V0Cores
1622- o2::soa::Index<>, Xi0Core::Photon1Index, Xi0Core::Photon2Index, Xi0Core::LambdaIndex);
1623-
1624-
1621+ o2::soa::Index<>, Xi0Core::Photon1Index, Xi0Core::Photon2Index, Xi0Core::LambdaIndex);
1622+
16251623// for MC
16261624namespace Xi0MCCore
16271625{
16281626DECLARE_SOA_COLUMN (Photon1Index, photon1Index, int );
16291627DECLARE_SOA_COLUMN (Photon2Index, photon2Index, int );
1630- DECLARE_SOA_COLUMN (LambdaIndex, lambdaIndex, int );
1628+ DECLARE_SOA_COLUMN (LambdaIndex, lambdaIndex, int );
16311629
16321630DECLARE_SOA_COLUMN (Photon1MCPx, photon1mcpx, float );
16331631DECLARE_SOA_COLUMN (Photon1MCPy, photon1mcpy, float );
@@ -1700,13 +1698,13 @@ DECLARE_SOA_DYNAMIC_COLUMN(MCPhi, mcPhi, //! Phi in the range [0, 2pi)
17001698DECLARE_SOA_DYNAMIC_COLUMN (MCEta, mcEta, // ! Pseudorapidity
17011699 [](float photon1MCPx, float photon1MCPy, float photon1MCPz, float photon2MCPx, float photon2MCPy, float photon2MCPz, float lambdaMCPx, float lambdaMCPy, float lambdaMCPz) -> float {
17021700 return RecoDecay::eta (std::array{photon1MCPx + photon2MCPx + lambdaMCPx, photon1MCPy + photon2MCPy + lambdaMCPy, photon1MCPz + photon2MCPz + lambdaMCPz});
1703- });
1704-
1701+ });
1702+
17051703DECLARE_SOA_DYNAMIC_COLUMN (MCRadius, mcRadius, // ! Xi0 decay radius (2D, centered at zero)
17061704 [](float x, float y) -> float { return RecoDecay::sqrtSumOfSquares (x, y); });
17071705
17081706DECLARE_SOA_DYNAMIC_COLUMN (MCRadiusPi0, mcRadiusPi0, // ! Pi0 decay radius (2D, centered at zero)
1709- [](float x, float y) -> float { return RecoDecay::sqrtSumOfSquares (x, y); });
1707+ [](float x, float y) -> float { return RecoDecay::sqrtSumOfSquares (x, y); });
17101708
17111709DECLARE_SOA_DYNAMIC_COLUMN (Pi0MCPx, pi0mcpx, // ! Pi0 MC px
17121710 [](float photon1MCPx, float photon2MCPx) -> float { return photon1MCPx + photon2MCPx; });
@@ -1820,9 +1818,9 @@ DECLARE_SOA_DYNAMIC_COLUMN(LambdaMCY, lambdaMCY, //! Rapidity
18201818 });
18211819
18221820DECLARE_SOA_DYNAMIC_COLUMN (LambdaMCPhi, lambdaMCPhi, // ! Phi in the range [0, 2pi)
1823- [](float lambdaMCPx, float lambdaMCPy) -> float { return RecoDecay::phi (lambdaMCPx, lambdaMCPy); });
1821+ [](float lambdaMCPx, float lambdaMCPy) -> float { return RecoDecay::phi (lambdaMCPx, lambdaMCPy); });
18241822
1825- } // namespace Xi0CoreMC
1823+ } // namespace Xi0MCCore
18261824
18271825DECLARE_SOA_TABLE (Xi0MCCores, " AOD" , " XI0MCCORES" ,
18281826 // Basic properties
@@ -1839,7 +1837,7 @@ DECLARE_SOA_TABLE(Xi0MCCores, "AOD", "XI0MCCORES",
18391837 Xi0MCCore::IsPi0Primary, Xi0MCCore::Pi0MCprocess, Xi0MCCore::Pi0PDGCode,
18401838
18411839 Xi0MCCore::MCx, Xi0MCCore::MCy, Xi0MCCore::MCz,
1842- Xi0MCCore::IsPhysicalPrimary, Xi0MCCore::MCprocess, Xi0MCCore::PDGCode, Xi0MCCore::PDGCodeMother,
1840+ Xi0MCCore::IsPhysicalPrimary, Xi0MCCore::MCprocess, Xi0MCCore::PDGCode, Xi0MCCore::PDGCodeMother,
18431841
18441842 // Dynamic columns
18451843 Xi0MCCore::MCPx<Xi0MCCore::Photon1MCPx, Xi0MCCore::Photon2MCPx, Xi0MCCore::LambdaMCPx>,
@@ -1876,7 +1874,7 @@ DECLARE_SOA_TABLE(Xi0MCCores, "AOD", "XI0MCCORES",
18761874 Xi0MCCore::Photon2MCEta<Xi0MCCore::Photon2MCPx, Xi0MCCore::Photon2MCPy, Xi0MCCore::Photon2MCPz>,
18771875 Xi0MCCore::Photon2MCY<Xi0MCCore::Photon2MCPx, Xi0MCCore::Photon2MCPy, Xi0MCCore::Photon2MCPz>,
18781876 Xi0MCCore::Photon2MCPhi<Xi0MCCore::Photon2MCPx, Xi0MCCore::Photon2MCPy>,
1879-
1877+
18801878 Xi0MCCore::LambdaMCPt<Xi0MCCore::LambdaMCPx, Xi0MCCore::LambdaMCPy>,
18811879 Xi0MCCore::LambdaMCP<Xi0MCCore::LambdaMCPx, Xi0MCCore::LambdaMCPy, Xi0MCCore::LambdaMCPz>,
18821880 Xi0MCCore::LambdaMCEta<Xi0MCCore::LambdaMCPx, Xi0MCCore::LambdaMCPy, Xi0MCCore::LambdaMCPz>,
@@ -1887,7 +1885,7 @@ DECLARE_SOA_TABLE(Xi0MCCollRefs, "AOD", "XI0MCCOLLREFS", //! optional table to r
18871885 o2::soa::Index<>, v0data::StraMCCollisionId);
18881886
18891887DECLARE_SOA_TABLE (Xi0MCIndices, " AOD" , " XI0MCINDICES" , // ! optional table to refer back to V0MCCores
1890- o2::soa::Index<>, Xi0MCCore::Photon1Index, Xi0MCCore::Photon2Index, Xi0MCCore::LambdaIndex);
1888+ o2::soa::Index<>, Xi0MCCore::Photon1Index, Xi0MCCore::Photon2Index, Xi0MCCore::LambdaIndex);
18911889
18921890} // namespace o2::aod
18931891
0 commit comments