Skip to content

Commit 9459177

Browse files
committed
Fix clang-format indentation, cppcheck const-array warning, duplicate README heading
1 parent d7ba021 commit 9459177

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

Tools/PIDFeatureExtractor/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ cuts, writes one row containing:
3333
Mode is a runtime switch - enable `processData` for real data or
3434
`processMc` for MC (reconstructed + truth), not both.
3535

36-
### Configurable options
36+
### PidFeatureExtractor options
3737

3838
| Option | Default | What it does |
3939
|---|---|---|
@@ -71,7 +71,7 @@ detector configuration - each group can be switched off independently;
7171
turning one off overrides the data for that group, the same way a genuine
7272
detector miss would look.
7373

74-
### Configurable options
74+
### PidOnnxInference options
7575

7676
| Option | Default | What it does |
7777
|---|---|---|

Tools/PIDFeatureExtractor/pidFeatureExtractor.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ struct PidFeatureExtractor {
296296
/// Bayesian PID: requires TPC (a TPC-only track still gets a real
297297
/// posterior); folds in TOF too when also present. NaN in all four
298298
/// outputs if TPC is absent or computeBayesianPid is false.
299-
void computeBayesianProbs(bool hasTpcIn, float nsTPC[4], bool hasTofIn, float nsTOF[4], float out[4]) const
299+
void computeBayesianProbs(bool hasTpcIn, const float nsTPC[4], bool hasTofIn, const float nsTOF[4], float out[4]) const
300300
{
301301
if (!computeBayesianPid.value || !hasTpcIn) {
302302
out[0] = out[1] = out[2] = out[3] = kNaN;

Tools/PIDFeatureExtractor/pidOnnxInference.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ struct GroupToggles {
115115
/// (assumed always-present in the data itself), so their toggle is the
116116
/// only way to exclude them.
117117
void runInference(std::string const& inputRootFile, std::string const& inputTreeName,
118-
std::string const& outputPath, bool exportCsv,
119-
o2::analysis::MlResponse<float>& mlResponse, GroupToggles const& groups)
118+
std::string const& outputPath, bool exportCsv,
119+
o2::analysis::MlResponse<float>& mlResponse, GroupToggles const& groups)
120120
{
121121
std::unique_ptr<TFile> inFile(TFile::Open(inputRootFile.c_str(), "READ"));
122122
if (!inFile || inFile->IsZombie()) {

0 commit comments

Comments
 (0)