Skip to content

Commit ca5e1a1

Browse files
authored
PWGHF: Adding Lc in pKpi in the analysis workflow (#4727)
1 parent 072fda8 commit ca5e1a1

5 files changed

Lines changed: 485 additions & 0 deletions

File tree

Analysis/DataModel/include/Analysis/HFCandidateSelectionTables.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,13 @@ DECLARE_SOA_COLUMN(IsSelD0bar, isSelD0bar, int);
2121
DECLARE_SOA_TABLE(HFSelD0Candidate, "AOD", "HFSELD0CAND", hf_selcandidate::IsSelD0, hf_selcandidate::IsSelD0bar);
2222
} // namespace o2::aod
2323

24+
namespace o2::aod
25+
{
26+
namespace hf_selcandidate_lc
27+
{
28+
DECLARE_SOA_COLUMN(IsSelLc, isSelLc, int);
29+
} // namespace hf_selcandidate_lc
30+
DECLARE_SOA_TABLE(HFSelLcCandidate, "AOD", "HFSELLcCAND", hf_selcandidate_lc::IsSelLc);
31+
} // namespace o2::aod
32+
2433
#endif // O2_ANALYSIS_HFCANDIDATESELECTIONTABLES_H_

Analysis/DataModel/include/Analysis/HFSecondaryVertex.h

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,32 @@ auto InvMassDPlus(const T& candidate)
280280
{
281281
return candidate.m(array{RecoDecay::getMassPDG(kPiPlus), RecoDecay::getMassPDG(kKPlus), RecoDecay::getMassPDG(kPiPlus)});
282282
}
283+
284+
// Lc+ → p K- π+
285+
286+
template <typename T>
287+
auto CtLc(const T& candidate)
288+
{
289+
return candidate.ct(RecoDecay::getMassPDG(4122));
290+
}
291+
292+
template <typename T>
293+
auto YLc(const T& candidate)
294+
{
295+
return candidate.y(RecoDecay::getMassPDG(4122));
296+
}
297+
298+
template <typename T>
299+
auto ELc(const T& candidate)
300+
{
301+
return candidate.e(RecoDecay::getMassPDG(4122));
302+
}
303+
304+
template <typename T>
305+
auto InvMassLc(const T& candidate)
306+
{
307+
return candidate.m(array{RecoDecay::getMassPDG(kProton), RecoDecay::getMassPDG(kKPlus), RecoDecay::getMassPDG(kPiPlus)});
308+
}
283309
} // namespace hf_cand_prong3
284310

285311
// 3-prong decay candidate table

Analysis/Tasks/PWGHF/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ o2_add_dpl_workflow(hf-d0-candidate-selector
2828
PUBLIC_LINK_LIBRARIES O2::Framework O2::AnalysisDataModel O2::AnalysisCore O2::DetectorsVertexing
2929
COMPONENT_NAME Analysis)
3030

31+
o2_add_dpl_workflow(hf-lc-candidate-selector
32+
SOURCES HFLcCandidateSelector.cxx
33+
PUBLIC_LINK_LIBRARIES O2::Framework O2::AnalysisDataModel O2::AnalysisCore O2::DetectorsVertexing
34+
COMPONENT_NAME Analysis)
35+
3136
o2_add_dpl_workflow(hf-task-d0
3237
SOURCES taskD0.cxx
3338
PUBLIC_LINK_LIBRARIES O2::Framework O2::AnalysisDataModel O2::AnalysisCore O2::DetectorsVertexing
@@ -37,3 +42,8 @@ o2_add_dpl_workflow(hf-task-dplus
3742
SOURCES taskDPlus.cxx
3843
PUBLIC_LINK_LIBRARIES O2::Framework O2::AnalysisDataModel O2::AnalysisCore O2::DetectorsVertexing
3944
COMPONENT_NAME Analysis)
45+
46+
o2_add_dpl_workflow(hf-task-lc
47+
SOURCES taskLc.cxx
48+
PUBLIC_LINK_LIBRARIES O2::Framework O2::AnalysisDataModel O2::AnalysisCore O2::DetectorsVertexing
49+
COMPONENT_NAME Analysis)

0 commit comments

Comments
 (0)