Skip to content

Commit f4fade1

Browse files
author
Marcello Di Costanzo
committed
Renaming
1 parent c646700 commit f4fade1

File tree

4 files changed

+19
-23
lines changed

4 files changed

+19
-23
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@ enum class InputFeatures3Prong : uint8_t {
100100
};
101101

102102
template <typename TypeOutputScore = float>
103-
class Alice3MlResponse3Prong : public MlResponse<TypeOutputScore>
103+
class MlResponse3Prong : public MlResponse<TypeOutputScore>
104104
{
105105
public:
106106
/// Default constructor
107-
Alice3MlResponse3Prong() = default;
107+
MlResponse3Prong() = default;
108108
/// Default destructor
109-
virtual ~Alice3MlResponse3Prong() = default;
109+
virtual ~MlResponse3Prong() = default;
110110

111111
/// Method to get the input features vector needed for ML inference
112112
/// \tparam T1 type of the 3-prong candidate

ALICE3/TableProducer/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ o2physics_add_dpl_workflow(alice3-correlatorddbar
4747
COMPONENT_NAME Analysis)
4848

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

5454
o2physics_add_dpl_workflow(alice3-hf-tree-creator-3prong
55-
SOURCES alice3HfTreeCreator3Prong.cxx
55+
SOURCES hfTreeCreator3Prong.cxx
5656
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2::DCAFitter
5757
COMPONENT_NAME Analysis)

ALICE3/TableProducer/alice3HfSelector3Prong.cxx renamed to ALICE3/TableProducer/hfSelector3Prong.cxx

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,19 @@
1414
///
1515
/// \author Marcello Di Costanzo <marcello.di.costanzo@cern.ch>, Polytechnic University of Turin and INFN Turin
1616

17-
#include "PWGHF/Core/SelectorCuts.h"
18-
#include "PWGHF/DataModel/CandidateReconstructionTables.h"
19-
#include "PWGHF/DataModel/CandidateSelectionTables.h"
20-
2117
#include "ALICE3/DataModel/A3DecayFinderTables.h"
2218
#include "ALICE3/DataModel/OTFPIDTrk.h"
2319
#include "ALICE3/DataModel/OTFRICH.h"
2420
#include "ALICE3/DataModel/OTFTOF.h"
2521
#include "ALICE3/DataModel/RICH.h"
26-
#include "ALICE3/ML/Alice3MlResponse3Prong.h"
2722
#include "ALICE3/Utils/utilsHfAlice3.h"
2823
#include "ALICE3/Utils/utilsSelectionsAlice3.h"
24+
#include "ALICE3/ML/MlResponse3Prong.h"
25+
26+
#include "PWGHF/Core/SelectorCuts.h"
27+
#include "PWGHF/DataModel/CandidateReconstructionTables.h"
28+
#include "PWGHF/DataModel/CandidateSelectionTables.h"
29+
2930
#include "Common/Core/TrackSelectorPID.h"
3031
#include "Common/DataModel/PIDResponseCombined.h"
3132

@@ -55,12 +56,8 @@ using namespace o2::analysis;
5556
using namespace o2::framework;
5657
using namespace o2::aod::a3_hf_sel_3prong;
5758

58-
enum Particles {
59-
Lc = 0
60-
};
61-
6259
/// Struct for applying Lc selection cuts
63-
struct Alice3Selector3Prong {
60+
struct Alice3HfSelector3Prong {
6461
Produces<aod::Alice3Sel3Ps> candSelFlags; // flags for isSelLc
6562
Produces<aod::Alice3Ml3Ps> candMlScores;
6663

@@ -105,7 +102,7 @@ struct Alice3Selector3Prong {
105102
Configurable<bool> loadModelsFromCCDB{"loadModelsFromCCDB", false, "Flag to enable or disable the loading of models from CCDB"};
106103

107104
HfHelperAlice3 hfHelper;
108-
o2::analysis::Alice3MlResponse3Prong<float> mlResponse;
105+
o2::analysis::MlResponse3Prong<float> mlResponse;
109106
o2::ccdb::CcdbApi ccdbApi;
110107

111108
using CandsLc = soa::Join<aod::Alice3Cand3Ps, aod::Alice3PidLcs>;
@@ -374,15 +371,14 @@ struct Alice3Selector3Prong {
374371

375372
/// \brief process function for cand selection
376373
/// \param cands Lc cand table
377-
/// \param tracks track table
378374
void processLc(CandsLcWMcTruth const& cands)
379375
{
380376
runSelect3Prong<CharmHadAlice3::Lc>(cands);
381377
}
382-
PROCESS_SWITCH(Alice3Selector3Prong, processLc, "Process 3 prong selection for Lc", true);
378+
PROCESS_SWITCH(Alice3HfSelector3Prong, processLc, "Process 3 prong selection for Lc", true);
383379
};
384380

385381
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
386382
{
387-
return WorkflowSpec{adaptAnalysisTask<Alice3Selector3Prong>(cfgc)};
383+
return WorkflowSpec{adaptAnalysisTask<Alice3HfSelector3Prong>(cfgc)};
388384
}

ALICE3/TableProducer/alice3HfTreeCreator3Prong.cxx renamed to ALICE3/TableProducer/hfTreeCreator3Prong.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ DECLARE_SOA_TABLE(Alice3PidPr2s, "AOD", "ALICE3PIDPR2",
240240
} // namespace o2::aod
241241

242242
/// Writes the full information in an output TTree
243-
struct Alice3TreeCreator3Prong {
243+
struct Alice3HfTreeCreator3Prong {
244244
Produces<o2::aod::Alice3CandVtxs> rowCandVtxs;
245245
Produces<o2::aod::Alice3CandTopos> rowCandTopos;
246246
Produces<o2::aod::Alice3DaugTopos> rowDaugTopos;
@@ -498,7 +498,7 @@ struct Alice3TreeCreator3Prong {
498498
fillRecoGenTables<CharmHadAlice3::Lc>(selCandsLcRec, parts);
499499
}
500500
}
501-
PROCESS_SWITCH(Alice3TreeCreator3Prong, processLc, "Process Lc", true);
501+
PROCESS_SWITCH(Alice3HfTreeCreator3Prong, processLc, "Process Lc", true);
502502

503503
void processLcWMl(CandsLcRecWMl const& selCandsLcRec,
504504
CandsMcGen const& parts,
@@ -512,10 +512,10 @@ struct Alice3TreeCreator3Prong {
512512
fillRecoGenTables<CharmHadAlice3::Lc>(selCandsLcRec, parts);
513513
}
514514
}
515-
PROCESS_SWITCH(Alice3TreeCreator3Prong, processLcWMl, "Process Lc with ML", false);
515+
PROCESS_SWITCH(Alice3HfTreeCreator3Prong, processLcWMl, "Process Lc with ML", false);
516516
};
517517

518518
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
519519
{
520-
return WorkflowSpec{adaptAnalysisTask<Alice3TreeCreator3Prong>(cfgc)};
520+
return WorkflowSpec{adaptAnalysisTask<Alice3HfTreeCreator3Prong>(cfgc)};
521521
}

0 commit comments

Comments
 (0)