Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions PWGDQ/Core/DQMlResponse.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.

Check failure on line 1 in PWGDQ/Core/DQMlResponse.h

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Provide mandatory file documentation.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
Expand All @@ -8,7 +8,7 @@
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
//

Check failure on line 11 in PWGDQ/Core/DQMlResponse.h

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \author is missing, incorrect or misplaced.

Check failure on line 11 in PWGDQ/Core/DQMlResponse.h

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \brief is missing, incorrect or misplaced.

Check failure on line 11 in PWGDQ/Core/DQMlResponse.h

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \file is missing, incorrect or misplaced.
// Contact: jseo@cern.ch
//
// Class to compute the ML response for DQ-analysis selections
Expand All @@ -27,9 +27,10 @@
// Fill the map of available input features
// the key is the feature's name (std::string)
// the value is the corresponding value in EnumInputFeatures
#define FILL_MAP(FEATURE) \
{ \
#FEATURE, static_cast<uint8_t>(InputFeatures::FEATURE)}
#define FILL_MAP(FEATURE) \
{ \
#FEATURE, static_cast<uint8_t>(InputFeatures::FEATURE) \
}

namespace o2::analysis
{
Expand Down Expand Up @@ -153,7 +154,7 @@
std::vector<float> dqInputFeatures;
dqInputFeatures.reserve(MlResponse<TypeOutputScore>::mCachedIndices.size());

for (auto idx : MlResponse<TypeOutputScore>::mCachedIndices) {

Check failure on line 157 in PWGDQ/Core/DQMlResponse.h

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
auto enumIdx = static_cast<InputFeatures>(idx);
const auto& name = gFeatureNameMap.at(enumIdx);

Expand Down
Loading