Skip to content

Commit acf65ee

Browse files
committed
Add index table, fix magnetic field setting, add mixing of opposite B field d3bodys, fix GetTOFNsigma function call
1 parent 628308d commit acf65ee

File tree

8 files changed

+160
-3081
lines changed

8 files changed

+160
-3081
lines changed

PWGLF/DataModel/Vtx3BodyTables.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ namespace o2::aod
2626
{
2727
namespace vtx3body
2828
{
29+
// indices
30+
DECLARE_SOA_INDEX_COLUMN_FULL(TrackPr, trackPr, int, Tracks, "_pr"); //!
31+
DECLARE_SOA_INDEX_COLUMN_FULL(TrackPi, trackPi, int, Tracks, "_pi"); //!
32+
DECLARE_SOA_INDEX_COLUMN_FULL(TrackDe, trackDe, int, Tracks, "_de"); //!
33+
DECLARE_SOA_INDEX_COLUMN(Collision, collision); //!
34+
DECLARE_SOA_INDEX_COLUMN(Decay3Body, decay3body); //!
35+
2936
// General 3 body Vtx properties
3037
DECLARE_SOA_COLUMN(Mass, mass, float); //! candidate mass (with H3L or Anti-H3L mass hypothesis depending on deuteron charge)
3138
DECLARE_SOA_COLUMN(Sign, sign, float); //! candidate sign
@@ -177,6 +184,13 @@ DECLARE_SOA_DYNAMIC_COLUMN(TrackDePhi, trackDePhi, //! daughter2 phi
177184
[](float pxTrackDe, float pyTrackDe) -> float { return RecoDecay::phi(pxTrackDe, pyTrackDe); });
178185
} // namespace vtx3body
179186

187+
// index table
188+
DECLARE_SOA_TABLE(Decay3BodyIndices, "AOD", "3BodyINDEX", //!
189+
o2::soa::Index<>,
190+
vtx3body::Decay3BodyId,
191+
vtx3body::TrackPrId, vtx3body::TrackPiId, vtx3body::TrackDeId,
192+
vtx3body::CollisionId);
193+
180194
// reconstructed candidate table for analysis
181195
DECLARE_SOA_TABLE(Vtx3BodyDatas, "AOD", "VTX3BODYDATA", //!
182196
o2::soa::Index<>,
@@ -285,6 +299,11 @@ DECLARE_SOA_TABLE(McVtx3BodyDatas, "AOD", "MC3BODYDATA", //!
285299
vtx3body::TrackDePt<vtx3body::PxTrackDe, vtx3body::PyTrackDe>,
286300
vtx3body::TrackDeEta<vtx3body::PxTrackDe, vtx3body::PyTrackDe, vtx3body::PzTrackDe>,
287301
vtx3body::TrackDePhi<vtx3body::PxTrackDe, vtx3body::PyTrackDe>);
302+
303+
// Define joins
304+
using Vtx3BodyDatasCovs = soa::Join<Vtx3BodyDatas, Vtx3BodyCovs>;
305+
using Vtx3BodyDatasCovsIndexed = soa::Join<Vtx3BodyDatas, Vtx3BodyCovs, Decay3BodyIndices>;
306+
288307
} // namespace o2::aod
289308

290309
#endif // PWGLF_DATAMODEL_VTX3BODYTABLES_H_

PWGLF/TableProducer/Nuspex/CMakeLists.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
o2physics_add_dpl_workflow(decay3bodybuilder
1313
SOURCES decay3bodybuilder.cxx
14-
PUBLIC_LINK_LIBRARIES KFParticle::KFParticle O2Physics::AnalysisCore O2::TOFBase O2Physics::EventFilteringUtils O2::DetectorsVertexing
14+
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2::DCAFitter KFParticle::KFParticle O2::TOFBase O2Physics::EventFilteringUtils O2::DetectorsVertexing
1515
COMPONENT_NAME Analysis)
1616

1717
o2physics_add_dpl_workflow(hyhefour-builder
@@ -29,11 +29,6 @@ o2physics_add_dpl_workflow(lnn-reco-task
2929
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2::DCAFitter
3030
COMPONENT_NAME Analysis)
3131

32-
o2physics_add_dpl_workflow(hypertriton3bodyfinder
33-
SOURCES hypertriton3bodyfinder.cxx
34-
PUBLIC_LINK_LIBRARIES O2::DCAFitter O2Physics::AnalysisCore
35-
COMPONENT_NAME Analysis)
36-
3732
o2physics_add_dpl_workflow(nucleustreecreator
3833
SOURCES LFTreeCreatorNuclei.cxx
3934
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore

PWGLF/TableProducer/Nuspex/decay3bodybuilder.cxx

Lines changed: 139 additions & 157 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)