Skip to content
Merged
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
113 changes: 62 additions & 51 deletions PWGLF/DataModel/LFCKSSpinalignmentTables.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// or submit itself to any jurisdiction.

/// \file LFCKSSpinalignmentTables.h
/// \brief DataModel for Charged KStar spin alignment
/// \brief DataModel for reduced K0s and pion tables for charged KStar analysis
///
/// \author Prottay Das <prottay.das@cern.ch>

Expand All @@ -20,7 +20,6 @@
#include <Framework/ASoA.h>
#include <Framework/AnalysisDataModel.h>

#include <cmath>
#include <cstdint>

namespace o2::aod
Expand All @@ -29,77 +28,89 @@
{
DECLARE_SOA_COLUMN(Cent, cent, float);
DECLARE_SOA_COLUMN(Posz, posz, float);
// DECLARE_SOA_COLUMN(CollIndex, collIndex, float);
DECLARE_SOA_COLUMN(PsiFT0C, psiFT0C, float);
DECLARE_SOA_COLUMN(PsiFT0A, psiFT0A, float);
DECLARE_SOA_COLUMN(PsiTPC, psiTPC, float);
} // namespace kshortpionevent

DECLARE_SOA_TABLE(KShortpionEvents, "AOD", "KSHORTPIONEVENT",
o2::soa::Index<>,
kshortpionevent::Cent,
kshortpionevent::Posz,
// kshortpionevent::CollIndex,
kshortpionevent::PsiFT0C,
kshortpionevent::PsiFT0A,
kshortpionevent::PsiTPC)
kshortpionevent::PsiTPC);

using KShortpionEvent = KShortpionEvents::iterator;

namespace kshortpionpair
// ------------------------------------------------------------
// K0s candidate table
// ------------------------------------------------------------
namespace kshorttrack
{
DECLARE_SOA_INDEX_COLUMN(KShortpionEvent, kshortpionevent);

Check failure on line 51 in PWGLF/DataModel/LFCKSSpinalignmentTables.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(V0Cospa, v0Cospa, float); //! V0 Cospa
DECLARE_SOA_COLUMN(V0Radius, v0Radius, float); //! V0 Radius
DECLARE_SOA_COLUMN(DcaPositive, dcaPositive, float); //! DCA Positive
DECLARE_SOA_COLUMN(DcaNegative, dcaNegative, float); //! DCA Negative
DECLARE_SOA_COLUMN(DcaBetweenDaughter, dcaBetweenDaughter, float); //! DCA between daughters
DECLARE_SOA_COLUMN(V0Lifetime, v0Lifetime, float); //! KShort lifetime
DECLARE_SOA_COLUMN(KShortPx, kShortPx, float); //! KShort Px
DECLARE_SOA_COLUMN(KShortPy, kShortPy, float); //! KShort Py
DECLARE_SOA_COLUMN(KShortPz, kShortPz, float); //! KShort Pz
DECLARE_SOA_COLUMN(KShortMass, kShortMass, float); //! KShort Mass
DECLARE_SOA_COLUMN(PionBachPx, pionBachPx, float); //! Bachelor Pion Px
DECLARE_SOA_COLUMN(PionBachPy, pionBachPy, float); //! Bachelor Pion Py
DECLARE_SOA_COLUMN(PionBachPz, pionBachPz, float); //! Bachelor Pion Pz
/*DECLARE_SOA_COLUMN(PionBachTPC, pionBachTPC, float); //! Bachelor Pion nsigmatpc
DECLARE_SOA_COLUMN(PionBachTOFHit, pionBachTOFHit, int); //! Bachelor Pion tof hit availability
DECLARE_SOA_COLUMN(PionBachTOF, pionBachTOF, float); //! Bachelor Pion nsigmatof*/
DECLARE_SOA_COLUMN(PionBachIndex, pionBachIndex, int); //! Bachelor Pion index
DECLARE_SOA_COLUMN(PionIndex1, pionIndex1, int); //! Daughter Pion index1
DECLARE_SOA_COLUMN(PionIndex2, pionIndex2, int); //! Daughter Pion index2
DECLARE_SOA_COLUMN(PionPidMask, pionPidMask, uint8_t); //! bitmask for PID selections
} // namespace kshortpionpair

DECLARE_SOA_COLUMN(V0Cospa, v0Cospa, float);
DECLARE_SOA_COLUMN(V0Radius, v0Radius, float);
DECLARE_SOA_COLUMN(DcaPositive, dcaPositive, float);
DECLARE_SOA_COLUMN(DcaNegative, dcaNegative, float);
DECLARE_SOA_COLUMN(DcaBetweenDaughter, dcaBetweenDaughter, float);
// DECLARE_SOA_COLUMN(V0Lifetime, v0Lifetime, float);

DECLARE_SOA_COLUMN(KShortPx, kShortPx, float);
DECLARE_SOA_COLUMN(KShortPy, kShortPy, float);
DECLARE_SOA_COLUMN(KShortPz, kShortPz, float);
DECLARE_SOA_COLUMN(KShortMass, kShortMass, float);

DECLARE_SOA_COLUMN(PionIndex1, pionIndex1, int64_t);
DECLARE_SOA_COLUMN(PionIndex2, pionIndex2, int64_t);
} // namespace kshorttrack

DECLARE_SOA_TABLE(KShortTracks, "AOD", "KSHORTTRACK",
o2::soa::Index<>,
kshortpionpair::KShortpionEventId,
kshortpionpair::V0Cospa,
kshortpionpair::V0Radius,
kshortpionpair::DcaPositive,
kshortpionpair::DcaNegative,
kshortpionpair::DcaBetweenDaughter,
kshortpionpair::V0Lifetime,
// kshortpionpair::Armenteros,
kshortpionpair::KShortPx,
kshortpionpair::KShortPy,
kshortpionpair::KShortPz,
kshortpionpair::KShortMass,
kshortpionpair::PionIndex1,
kshortpionpair::PionIndex2);
kshorttrack::KShortpionEventId,
kshorttrack::V0Cospa,
kshorttrack::V0Radius,
kshorttrack::DcaPositive,
kshorttrack::DcaNegative,
kshorttrack::DcaBetweenDaughter,
// kshorttrack::V0Lifetime,
kshorttrack::KShortPx,
kshorttrack::KShortPy,
kshorttrack::KShortPz,
kshorttrack::KShortMass,
kshorttrack::PionIndex1,
kshorttrack::PionIndex2);

using KShortTrack = KShortTracks::iterator;

// ------------------------------------------------------------
// Bachelor pion table
// ------------------------------------------------------------
namespace piontrack
{
DECLARE_SOA_INDEX_COLUMN(KShortpionEvent, kshortpionevent);

Check failure on line 92 in PWGLF/DataModel/LFCKSSpinalignmentTables.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(PionBachPx, pionBachPx, float);
DECLARE_SOA_COLUMN(PionBachPy, pionBachPy, float);
DECLARE_SOA_COLUMN(PionBachPz, pionBachPz, float);
DECLARE_SOA_COLUMN(Charge, charge, int8_t);
DECLARE_SOA_COLUMN(PionBachIndex, pionBachIndex, int64_t);
DECLARE_SOA_COLUMN(PionPidMask, pionPidMask, uint8_t);
} // namespace piontrack

DECLARE_SOA_TABLE(PionTracks, "AOD", "PIONTRACK",
o2::soa::Index<>,
kshortpionpair::KShortpionEventId,
kshortpionpair::PionBachPx,
kshortpionpair::PionBachPy,
kshortpionpair::PionBachPz,
// kshortpionpair::PionBachSign,
// kshortpionpair::PionBachTPC,
// kshortpionpair::PionBachTOFHit,
// kshortpionpair::PionBachTOF,
kshortpionpair::PionBachIndex,
kshortpionpair::PionPidMask);
piontrack::KShortpionEventId,
piontrack::PionBachPx,
piontrack::PionBachPy,
piontrack::PionBachPz,
piontrack::Charge,
piontrack::PionBachIndex,
piontrack::PionPidMask);

using PionTrack = PionTracks::iterator;

} // namespace o2::aod

#endif // PWGLF_DATAMODEL_LFCKSSPINALIGNMENTTABLES_H_
Loading
Loading