-
Notifications
You must be signed in to change notification settings - Fork 526
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'AliceO2Group:master' into MlData
- Loading branch information
Showing
202 changed files
with
16,957 additions
and
6,853 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
# Find issues in O2 code | ||
name: O2 linter | ||
|
||
'on': [pull_request, push] | ||
permissions: {} | ||
env: | ||
MAIN_BRANCH: master | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
o2-linter: | ||
name: O2 linter | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # needed to get the full history | ||
- name: Run tests | ||
run: | | ||
# Diff against the common ancestor of the source branch and the main branch. | ||
readarray -t files < <(git diff --diff-filter d --name-only origin/${{ env.MAIN_BRANCH }}...) | ||
if [ ${#files[@]} -eq 0 ]; then | ||
echo "::notice::No files to lint." | ||
exit 0 | ||
fi | ||
[ ${{ github.event_name }} == 'pull_request' ] && options="-g" | ||
# shellcheck disable=SC2086 # Ignore unquoted options. | ||
python3 Scripts/o2_linter.py $options "${files[@]}" | ||
echo "Tip: If you allow actions in your fork repository, O2 linter will run when you push commits." |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
// Copyright 2019-2020 CERN and copyright holders of ALICE O2. | ||
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders. | ||
// All rights not expressly granted are reserved. | ||
// | ||
// This software is distributed under the terms of the GNU General Public | ||
// License v3 (GPL Version 3), copied verbatim in the file "COPYING". | ||
// | ||
// 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. | ||
#include <limits> | ||
|
||
#include "Framework/runDataProcessing.h" | ||
#include "Framework/AnalysisTask.h" | ||
#include "Framework/AnalysisDataModel.h" | ||
|
||
using namespace o2; | ||
using namespace o2::framework; | ||
|
||
struct trackQAConverter { | ||
Produces<aod::TracksQA_001> tracksQA_001; | ||
|
||
void process(aod::TracksQA_000 const& tracksQA_000) | ||
{ | ||
for (const auto& trackQA : tracksQA_000) { | ||
tracksQA_001( | ||
trackQA.trackId(), | ||
trackQA.tpcTime0(), | ||
trackQA.tpcdcaR(), | ||
trackQA.tpcdcaZ(), | ||
trackQA.tpcClusterByteMask(), | ||
trackQA.tpcdEdxMax0R(), | ||
trackQA.tpcdEdxMax1R(), | ||
trackQA.tpcdEdxMax2R(), | ||
trackQA.tpcdEdxMax3R(), | ||
trackQA.tpcdEdxTot0R(), | ||
trackQA.tpcdEdxTot1R(), | ||
trackQA.tpcdEdxTot2R(), | ||
trackQA.tpcdEdxTot3R(), | ||
// dummy values, not available in _000 | ||
std::numeric_limits<int8_t>::min(), // deltaRefContParamY | ||
std::numeric_limits<int8_t>::min(), // deltaRefContParamZ | ||
std::numeric_limits<int8_t>::min(), // deltaRefContParamSnp | ||
std::numeric_limits<int8_t>::min(), // deltaRefContParamTgl | ||
std::numeric_limits<int8_t>::min(), // deltaRefContParamQ2Pt | ||
std::numeric_limits<int8_t>::min(), // deltaRefGloParamY | ||
std::numeric_limits<int8_t>::min(), // deltaRefGloParamZ | ||
std::numeric_limits<int8_t>::min(), // deltaRefGloParamSnp | ||
std::numeric_limits<int8_t>::min(), // deltaRefGloParamTgl | ||
std::numeric_limits<int8_t>::min()); // deltaRefGloParamQ2Pt | ||
} | ||
} | ||
}; | ||
|
||
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc) | ||
{ | ||
return WorkflowSpec{ | ||
adaptAnalysisTask<trackQAConverter>(cfgc), | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.