Skip to content

Commit 88c7e67

Browse files
author
Marcello Di Costanzo
committed
Renamings and documentation fixes
1 parent ca57e84 commit 88c7e67

File tree

7 files changed

+52
-52
lines changed

7 files changed

+52
-52
lines changed
Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12-
/// \file alice3-mlresponse3prong.h
13-
/// \brief Class to compute the ML response for Lc+ → p K- π+ analysis selections
12+
/// \file Alice3MlRResponse3Prong.h
13+
/// \brief Class to compute the ML response for HF 3-prong candidates
1414
/// \author Marcello Di Costanzo <marcello.di.costanzo@cern.ch>, Polytechnic University of Turin and INFN Turin
1515

16-
#ifndef ALICE3_ML_ALICE3_MLRESPONSE3PRONG_H_
17-
#define ALICE3_ML_ALICE3_MLRESPONSE3PRONG_H_
16+
#ifndef ALICE3_MLRESPONSE3PRONG_H_
17+
#define ALICE3_MLRESPONSE3PRONG_H_
1818

1919
#include "PWGHF/DataModel/CandidateReconstructionTables.h"
2020

@@ -109,10 +109,8 @@ class Alice3MlResponse3Prong : public MlResponse<TypeOutputScore>
109109
virtual ~Alice3MlResponse3Prong() = default;
110110

111111
/// Method to get the input features vector needed for ML inference
112-
/// \param candidate is the Lc candidate
113-
/// \param prong0 is the candidate's prong0
114-
/// \param prong1 is the candidate's prong1
115-
/// \param prong2 is the candidate's prong2
112+
/// \tparam T1 type of the 3-prong candidate
113+
/// \param candidate is the 3-prong candidate
116114
/// \return inputFeatures vector
117115
template <typename T1>
118116
std::vector<float> getInputFeatures(T1 const& candidate)
@@ -224,7 +222,5 @@ class Alice3MlResponse3Prong : public MlResponse<TypeOutputScore>
224222

225223
#undef FILL_MAP_3PRONG
226224
#undef CHECK_AND_FILL_ML_ALICE3
227-
#undef CHECK_AND_FILL_ML_ALICE3_HFHELPER
228-
#undef CHECK_AND_FILL_ML_ALICE3_OBJECT_SIGNED
229225

230-
#endif // ALICE3_ML_ALICE3_MLRESPONSE3PRONG_H_
226+
#endif // ALICE3_MLRESPONSE3PRONG_H_

ALICE3/TableProducer/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ o2physics_add_dpl_workflow(alice3-correlatorddbar
4646
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2::DCAFitter
4747
COMPONENT_NAME Analysis)
4848

49-
o2physics_add_dpl_workflow(alice3-selector-3prong
50-
SOURCES alice3-selector3prong.cxx
49+
o2physics_add_dpl_workflow(alice3-hf-selector-3prong
50+
SOURCES alice3HfSelector3Prong.cxx
5151
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2::DCAFitter O2Physics::MLCore
5252
COMPONENT_NAME Analysis)
5353

54-
o2physics_add_dpl_workflow(alice3-tree-creator-3prong
55-
SOURCES alice3-treecreator3prong.cxx
56-
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2::DCAFitter O2Physics::MLCore
54+
o2physics_add_dpl_workflow(alice3-hf-tree-creator-3prong
55+
SOURCES alice3HfTreeCreator3Prong.cxx
56+
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2::DCAFitter
5757
COMPONENT_NAME Analysis)

ALICE3/TableProducer/alice3-selector3prong.cxx renamed to ALICE3/TableProducer/alice3HfSelector3Prong.cxx

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12-
/// \file candSelectorLc.cxx
13-
/// \brief Λc± → p± K∓ π± selection task
12+
/// \file alice3HfSelector3prong.cxx
13+
/// \brief 3-prong candidates selection task
1414
///
1515
/// \author Marcello Di Costanzo <marcello.di.costanzo@cern.ch>, Polytechnic University of Turin and INFN Turin
1616

1717
#include "ALICE3/Utils/utilsHfAlice3.h"
18-
#include "ALICE3/Utils/utilsSelections.h"
18+
#include "ALICE3/Utils/utilsSelectionsAlice3.h"
1919
#include "PWGHF/Core/SelectorCuts.h"
2020
#include "PWGHF/DataModel/CandidateReconstructionTables.h"
2121
#include "PWGHF/DataModel/CandidateSelectionTables.h"
@@ -25,7 +25,7 @@
2525
#include "ALICE3/DataModel/OTFRICH.h"
2626
#include "ALICE3/DataModel/OTFTOF.h"
2727
#include "ALICE3/DataModel/RICH.h"
28-
#include "ALICE3/ML/alice3-mlresponse3prong.h"
28+
#include "ALICE3/ML/Alice3MlResponse3Prong.h"
2929
#include "Common/Core/TrackSelectorPID.h"
3030
#include "Common/DataModel/PIDResponseCombined.h"
3131

@@ -150,7 +150,9 @@ struct Alice3Selector3Prong {
150150
}
151151

152152
/// Conjugate-independent topological cuts
153+
/// \tparam T is candidate type
153154
/// \param cand is cand
155+
/// \param candPt is candidate pT
154156
/// \return true if cand passes all cuts
155157
template <typename T>
156158
bool selectionTopol(const T& cand, float candPt)
@@ -206,6 +208,13 @@ struct Alice3Selector3Prong {
206208
return true;
207209
}
208210

211+
/// Candidate mass selection
212+
/// \tparam CharmHad is the charm hadron type
213+
/// \tparam SwapHypo indicates whether to swap mass hypothesis or not
214+
/// \tparam TCandidate is candidate type
215+
/// \param ptBin is candidate pT bin
216+
/// \param cand is candidate
217+
/// \return true if candidate passes mass selection
209218
template <CharmHadAlice3 CharmHad, bool SwapHypo, typename TCandidate>
210219
bool selectionCandidateMass(int const ptBin, const TCandidate& cand)
211220
{
@@ -219,6 +228,7 @@ struct Alice3Selector3Prong {
219228
}
220229

221230
/// Single-track dca_xy and dca_z cuts
231+
/// \tparam T1 is candidate type
222232
/// \param cand is the Lc cand
223233
/// \return true if all the prongs pass the selections
224234
template <typename T1>
@@ -230,9 +240,10 @@ struct Alice3Selector3Prong {
230240
}
231241

232242
/// Apply PID selection
233-
/// \param pidTrack0 is the PID status of proton cand track
234-
/// \param pidTrack1 is the PID status of kaon cand track
235-
/// \param pidTrack2 is the PID status of pion cand track
243+
/// \tparam CharmHad is charm hadron type
244+
/// \tparam TCand is candidate type
245+
/// \param cand is candidate
246+
/// \param pidMask is bitmask to be configured
236247
template <CharmHadAlice3 CharmHad, typename TCand>
237248
void configurePidMask(const TCand& cand, uint32_t& pidMask)
238249
{
@@ -275,8 +286,9 @@ struct Alice3Selector3Prong {
275286
}
276287

277288
/// \brief function to apply Lc selections
278-
/// \param cands Lc cand table
279-
/// \param tracks track table
289+
/// \tparam CharmHad is charm hadron type
290+
/// \tparam CandType is candidate type
291+
/// \param cands are 3-prong candidates
280292
template <CharmHadAlice3 CharmHad, typename CandType>
281293
void runSelect3Prong(CandType const& cands)
282294
{

ALICE3/TableProducer/alice3-treecreator3prong.cxx renamed to ALICE3/TableProducer/alice3HfTreeCreator3Prong.cxx

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12-
/// \file treeCreatorDplusToPiKPi.cxx
13-
/// \brief Writer of D+ → π+ K- π+ cands in the form of flat tables to be stored in TTrees.
12+
/// \file alice3HfTreeCreator3Prong.cxx
13+
/// \brief Writer of 3-prong candidates in the form of flat tables to be stored in TTrees.
1414
/// Intended for debug, local optimization of analysis on small samples or ML training.
15-
/// In this file are defined and filled the output tables
1615
///
1716
/// \author Marcello Di Costanzo <marcello.di.costanzo@cern.ch>, Turin Polytechnic University and INFN Turin
1817

@@ -309,33 +308,24 @@ struct Alice3TreeCreator3Prong {
309308
template <typename TCand>
310309
void reserveTables(size_t nCands, const TCand& cand)
311310
{
312-
if (fillTables.fillCandVtxInfo) {
311+
if (fillTables.fillCandVtxInfo)
313312
rowCandVtxs.reserve(nCands);
314-
}
315-
if (fillTables.fillCandTopoInfo) {
313+
if (fillTables.fillCandTopoInfo)
316314
rowCandTopos.reserve(nCands);
317-
}
318-
if (fillTables.fillDaugTopoInfo) {
315+
if (fillTables.fillDaugTopoInfo)
319316
rowDaugTopos.reserve(nCands);
320-
}
321-
if (fillTables.fillMlScoreInfo) {
317+
if (fillTables.fillMlScoreInfo)
322318
rowCandMls.reserve(nCands);
323-
}
324-
if (fillTables.fillCandKineInfo) {
319+
if (fillTables.fillCandKineInfo)
325320
rowCandKine3Ps.reserve(nCands);
326-
}
327-
if (fillTables.fillCandGenKineInfo) {
321+
if (fillTables.fillCandGenKineInfo)
328322
rowCand3PGen.reserve(nCands);
329-
}
330-
if (fillTables.fillDaugKineInfo) {
323+
if (fillTables.fillDaugKineInfo)
331324
rowDaugMoms.reserve(nCands);
332-
}
333-
if (fillTables.fillMcMatchRecoInfo) {
325+
if (fillTables.fillMcMatchRecoInfo)
334326
rowCand3PMcMatchRec.reserve(nCands);
335-
}
336-
if (fillTables.fillMcMatchGenInfo) {
327+
if (fillTables.fillMcMatchGenInfo)
337328
rowCand3PMcMatchGen.reserve(nCands);
338-
}
339329
// PID tables
340330
if (fillTables.fillPid) {
341331
if constexpr (requires { cand.nSigTrkPi0(); })
@@ -361,6 +351,7 @@ struct Alice3TreeCreator3Prong {
361351

362352
/// Fill reconstructed candidate tables
363353
/// \tparam CharmHadAlice3: charm hadron type
354+
/// \tparam IsSwapMassHypo: whether to swap mass hypothesis or not
364355
/// \tparam T: candidate type
365356
/// \param cand: candidate to be used to fill the tables
366357
template <CharmHadAlice3 CharmHad, bool IsSwapMassHypo, typename T>
@@ -468,6 +459,7 @@ struct Alice3TreeCreator3Prong {
468459

469460
/// Function to fill both reco and gen tables
470461
/// from any candidate collection
462+
/// \tparam CharmHad Type of 3prong particle
471463
/// \tparam TCandsRec Type of reconstructed candidates collection
472464
/// \tparam TCandsGen Type of generated candidates collection
473465
/// \param candsRec Reconstructed candidates collection

ALICE3/Tasks/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ o2physics_add_dpl_workflow(alice3-multicharm
6464
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2Physics::MLCore
6565
COMPONENT_NAME Analysis)
6666

67-
o2physics_add_dpl_workflow(alice3-task-3prong
68-
SOURCES alice3-task3prong.cxx
67+
o2physics_add_dpl_workflow(alice3-hf-task-3prong
68+
SOURCES alice3HfTask3Prong.cxx
6969
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2Physics::SGCutParHolder O2Physics::MLCore
7070
COMPONENT_NAME Analysis)
7171

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12-
/// \file alice3-task3prong.cxx
12+
/// \file alice3HfTask3Prong.cxx
1313
/// \brief 3-prong candidates analysis task for ALICE 3 simulation studies
1414
/// \author Marcello Di Costanzo <marcello.di.costanzo@cern.ch>, Polytechnic University of Turin and INFN Turin
1515

1616
#include "PWGHF/Core/DecayChannels.h"
1717
#include "ALICE3/Utils/utilsHfAlice3.h"
18-
#include "ALICE3/Utils/utilsSelections.h"
18+
#include "ALICE3/Utils/utilsSelectionsAlice3.h"
1919
#include "PWGHF/DataModel/CandidateSelectionTables.h"
2020

2121
#include "ALICE3/DataModel/A3DecayFinderTables.h"
@@ -49,7 +49,7 @@
4949
#include <numeric>
5050
#include <string>
5151
#include <string_view>
52-
#include <vector> // std::vector
52+
#include <vector>
5353

5454
using namespace o2;
5555
using namespace o2::analysis;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12-
/// \file utilsSelections.h
12+
/// \file utilsSelectionsAlice3s.h
1313
/// \brief Default pT bins and cut arrays for selections in ALICE3 performance analysis tasks
1414
///
1515
/// \author Marcello Di Costanzo <marcello.di.costanzo@cern.ch>, Polytechnic University of Turin and INFN Turin

0 commit comments

Comments
 (0)