Skip to content

Commit 95b7e1e

Browse files
committed
Merge branch 'master' into unify-derived-format
2 parents dd76354 + 8705c03 commit 95b7e1e

507 files changed

Lines changed: 57624 additions & 23985 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/mega-linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
id: ml
3939
# You can override MegaLinter flavor used to have faster performances
4040
# More info at https://megalinter.io/flavors/
41-
uses: oxsecurity/megalinter@v8.1.0
41+
uses: oxsecurity/megalinter@v8.3.0
4242
env:
4343
# All available variables are described in documentation:
4444
# https://megalinter.io/configuration/

.github/workflows/o2-linter.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
# Find issues in O2 code
3+
name: O2 linter
4+
5+
'on': [pull_request, push]
6+
permissions: {}
7+
env:
8+
MAIN_BRANCH: master
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
o2-linter:
16+
name: O2 linter
17+
runs-on: ubuntu-24.04
18+
steps:
19+
- name: Checkout Code
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0 # needed to get the full history
23+
- name: Run tests
24+
run: |
25+
# Diff against the common ancestor of the source branch and the main branch.
26+
readarray -t files < <(git diff --diff-filter d --name-only origin/${{ env.MAIN_BRANCH }}...)
27+
if [ ${#files[@]} -eq 0 ]; then
28+
echo "::notice::No files to lint."
29+
exit 0
30+
fi
31+
[ ${{ github.event_name }} == 'pull_request' ] && options="-g"
32+
# shellcheck disable=SC2086 # Ignore unquoted options.
33+
python3 Scripts/o2_linter.py $options "${files[@]}"
34+
echo "Tip: If you allow actions in your fork repository, O2 linter will run when you push commits."

ALICE3/TableProducer/OTF/onTheFlyTOFPID.cxx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ struct OnTheFlyTOFPID {
8181
Configurable<int> nBinsTrackDeltaLength{"nBinsTrackDeltaLength", 100, "number of bins in delta track length"};
8282
Configurable<int> nBinsNsigmaCorrectSpecies{"nBinsNsigmaCorrectSpecies", 200, "number of bins in Nsigma plot (correct speies)"};
8383
Configurable<int> nBinsNsigmaWrongSpecies{"nBinsNsigmaWrongSpecies", 200, "number of bins in Nsigma plot (wrong species)"};
84+
Configurable<float> minNsigmaRange{"minNsigmaRange", -10, "lower limit for the nsigma axis"};
85+
Configurable<float> maxNsigmaRange{"maxNsigmaRange", +10, "upper limit for the nsigma axis"};
8486
Configurable<int> nBinsTimeRes{"nBinsTimeRes", 400, "number of bins plots time resolution"};
8587
Configurable<int> nBinsRelativeEtaPt{"nBinsRelativeEtaPt", 400, "number of bins plots pt and eta relative errors"};
8688
Configurable<int> nBinsEta{"nBinsEta", 400, "number of bins plot relative eta error"};
@@ -138,7 +140,7 @@ struct OnTheFlyTOFPID {
138140
}
139141

140142
if (doQAplots) {
141-
const AxisSpec axisMomentum{static_cast<int>(nBinsP), 0.0f, +4.0f, "#it{p} (GeV/#it{c})"};
143+
const AxisSpec axisMomentum{static_cast<int>(nBinsP), 0.0f, +10.0f, "#it{p} (GeV/#it{c})"};
142144
const AxisSpec axisMomentumSmall{static_cast<int>(nBinsP), 0.0f, +1.0f, "#it{p} (GeV/#it{c})"};
143145
const AxisSpec axisVelocity{static_cast<int>(nBinsBeta), 0.0f, +1.1f, "Measured #beta"};
144146
const AxisSpec axisTrackLengthInner{static_cast<int>(nBinsTrackLengthInner), 0.0f, 60.0f, "Track length (cm)"};
@@ -182,11 +184,11 @@ struct OnTheFlyTOFPID {
182184
std::string name_title_inner = "h2dInnerNsigmaTrue" + particle_names2[i_true] + "Vs" + particle_names2[i_hyp] + "Hypothesis";
183185
std::string name_title_outer = "h2dOuterNsigmaTrue" + particle_names2[i_true] + "Vs" + particle_names2[i_hyp] + "Hypothesis";
184186
if (i_true == i_hyp) {
185-
const AxisSpec axisNsigmaCorrect{static_cast<int>(nBinsNsigmaCorrectSpecies), -10.0f, +10.0f, "N#sigma - True " + particle_names1[i_true] + " vs " + particle_names1[i_hyp] + " hypothesis"};
187+
const AxisSpec axisNsigmaCorrect{static_cast<int>(nBinsNsigmaCorrectSpecies), minNsigmaRange, maxNsigmaRange, "N#sigma - True " + particle_names1[i_true] + " vs " + particle_names1[i_hyp] + " hypothesis"};
186188
histos.add(name_title_inner.c_str(), name_title_inner.c_str(), kTH2F, {axisMomentum, axisNsigmaCorrect});
187189
histos.add(name_title_outer.c_str(), name_title_outer.c_str(), kTH2F, {axisMomentum, axisNsigmaCorrect});
188190
} else {
189-
const AxisSpec axisNsigmaWrong{static_cast<int>(nBinsNsigmaWrongSpecies), -10.0f, +10.0f, "N#sigma - True " + particle_names1[i_true] + " vs " + particle_names1[i_hyp] + " hypothesis"};
191+
const AxisSpec axisNsigmaWrong{static_cast<int>(nBinsNsigmaWrongSpecies), minNsigmaRange, maxNsigmaRange, "N#sigma - True " + particle_names1[i_true] + " vs " + particle_names1[i_hyp] + " hypothesis"};
190192
histos.add(name_title_inner.c_str(), name_title_inner.c_str(), kTH2F, {axisMomentum, axisNsigmaWrong});
191193
histos.add(name_title_outer.c_str(), name_title_outer.c_str(), kTH2F, {axisMomentum, axisNsigmaWrong});
192194
}

CODEOWNERS

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/ALICE3 @alibuild @njacazio @hscheid
1818
/DPG @alibuild @chiarazampolli @alcaliva @catalinristea
1919
/DPG/Tasks/AOTEvent @alibuild @ekryshen @strogolo @altsybee
20-
/DPG/Tasks/AOTTrack @alibuild @mfaggin @iouribelikov @njacazio
20+
/DPG/Tasks/AOTTrack @alibuild @mfaggin @iouribelikov @njacazio @lbariogl @f3sch
2121
/DPG/Tasks/TOF @alibuild @noferini @njacazio
2222
/DPG/Tasks/FT0 @alibuild @afurs
2323
/EventFiltering @alibuild @mpuccio @lietava
@@ -33,7 +33,7 @@
3333
/PWGCF/TableProducer @alibuild @jgrosseo @saganatt @victor-gonzalez @zchochul @lgraczykCern @prchakra @lauraser @ariedel-cern @EmilGorm @otonvd @shouqiye
3434
/PWGCF/Tasks @alibuild @jgrosseo @saganatt @victor-gonzalez @zchochul @lgraczykCern @prchakra @lauraser @ariedel-cern @EmilGorm @otonvd @shouqiye
3535
/PWGDQ @alibuild @iarsene @dsekihat @feisenhu @lucamicheletti93
36-
/PWGEM @alibuild @mikesas @rbailhac @feisenhu
36+
/PWGEM @alibuild @feisenhu @dsekihat @ivorobye
3737
/PWGEM/Dilepton @alibuild @mikesas @rbailhac @dsekihat @ivorobye @feisenhu
3838
/PWGEM/PhotonMeson @alibuild @mikesas @rbailhac @m-c-danisch @novitzky @mhemmer-cern @dsekihat
3939
/PWGHF @alibuild @vkucera @fcolamar @fgrosa @fcatalan92 @mfaggin @mmazzilli @deepathoms @NicoleBastid @hahassan7 @jpxrk @apalasciano
@@ -43,8 +43,8 @@
4343
/PWGLF/TableProducer/GlobalEventProperties @alibuild @njacazio @skundu692 @gbencedi @omvazque
4444
/PWGLF/Tasks/Nuspex @alibuild @njacazio @skundu692 @fmazzasc @chiarapinto @maciacco
4545
/PWGLF/TableProducer/Nuspex @alibuild @njacazio @skundu692 @fmazzasc @chiarapinto @maciacco
46-
/PWGLF/Tasks/Resonances @alibuild @njacazio @skundu692 @BongHwi @smaff92
47-
/PWGLF/TableProducer/Resonances @alibuild @njacazio @skundu692 @BongHwi @smaff92
46+
/PWGLF/Tasks/Resonances @alibuild @njacazio @skundu692 @dmallick2 @smaff92
47+
/PWGLF/TableProducer/Resonances @alibuild @njacazio @skundu692 @dmallick2 @smaff92
4848
/PWGLF/Tasks/Strangeness @alibuild @njacazio @skundu692 @ercolessi @ChiaraDeMartin95
4949
/PWGLF/TableProducer/Strangeness @alibuild @njacazio @skundu692 @ercolessi @ChiaraDeMartin95
5050

Common/CCDB/EventSelectionParams.cxx

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +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 EventSelectionParams.cxx
13+
/// \brief Event selection parameters
14+
///
15+
/// \author Evgeny Kryshen <evgeny.kryshen@cern.ch> and Igor Altsybeev <Igor.Altsybeev@cern.ch>
16+
17+
// o2-linter: disable=name/workflow-file
18+
1219
#include "EventSelectionParams.h"
1320

1421
namespace o2::aod::evsel
@@ -60,7 +67,11 @@ const char* selectionLabels[kNsel] = {
6067
"kNoCollInTimeRangeStandard",
6168
"kNoCollInTimeRangeVzDependent",
6269
"kNoCollInRofStrict",
63-
"kNoCollInRofStandard"};
70+
"kNoCollInRofStandard",
71+
"kNoHighMultCollInPrevRof",
72+
"kIsGoodITSLayer3",
73+
"kIsGoodITSLayer0123",
74+
"kIsGoodITSLayersAll"};
6475
} // namespace o2::aod::evsel
6576

6677
using namespace o2::aod::evsel;
@@ -165,7 +176,7 @@ EventSelectionParams::EventSelectionParams(int system, int run)
165176
}
166177
}
167178

168-
void EventSelectionParams::DisableOutOfBunchPileupCuts()
179+
void EventSelectionParams::disableOutOfBunchPileupCuts()
169180
{
170181
selectionBarrel[kNoV0MOnVsOfPileup] = 0;
171182
selectionBarrel[kNoSPDOnVsOfPileup] = 0;
@@ -183,15 +194,15 @@ void EventSelectionParams::DisableOutOfBunchPileupCuts()
183194
selectionMuonWithoutPileupCuts[kNoV0PFPileup] = 0;
184195
}
185196

186-
void EventSelectionParams::SetOnVsOfParams(float newV0MOnVsOfA, float newV0MOnVsOfB, float newSPDOnVsOfA, float newSPDOnVsOfB)
197+
void EventSelectionParams::setOnVsOfParams(float newV0MOnVsOfA, float newV0MOnVsOfB, float newSPDOnVsOfA, float newSPDOnVsOfB)
187198
{
188199
fV0MOnVsOfA = newV0MOnVsOfA;
189200
fV0MOnVsOfB = newV0MOnVsOfB;
190201
fSPDOnVsOfA = newSPDOnVsOfA;
191202
fSPDOnVsOfB = newSPDOnVsOfB;
192203
}
193204

194-
bool* EventSelectionParams::GetSelection(int iSelection)
205+
bool* EventSelectionParams::getSelection(int iSelection)
195206
{
196207
if (iSelection == 0) {
197208
return selectionBarrel;

Common/CCDB/EventSelectionParams.h

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

12+
/// \file EventSelectionParams.h
13+
/// \brief Event selection parameters
14+
///
15+
/// \author Evgeny Kryshen <evgeny.kryshen@cern.ch> and Igor Altsybeev <Igor.Altsybeev@cern.ch>
16+
1217
#ifndef COMMON_CCDB_EVENTSELECTIONPARAMS_H_
1318
#define COMMON_CCDB_EVENTSELECTIONPARAMS_H_
1419

@@ -66,6 +71,10 @@ enum EventSelectionFlags {
6671
kNoCollInTimeRangeVzDependent, // no other collisions in vZ-dependent time range near a given collision
6772
kNoCollInRofStrict, // no other collisions in this Readout Frame
6873
kNoCollInRofStandard, // no other collisions in this Readout Frame with per-collision multiplicity above threshold
74+
kNoHighMultCollInPrevRof, // veto an event if FT0C amplitude in previous ITS ROF is above threshold
75+
kIsGoodITSLayer3, // number of inactive chips on ITS layer 3 is below maximum allowed value
76+
kIsGoodITSLayer0123, // numbers of inactive chips on ITS layers 0-3 are below maximum allowed values
77+
kIsGoodITSLayersAll, // numbers of inactive chips on all ITS layers are below maximum allowed values
6978
kNsel // counter
7079
};
7180

@@ -76,10 +85,10 @@ extern const char* selectionLabels[kNsel];
7685
class EventSelectionParams
7786
{
7887
public:
79-
explicit EventSelectionParams(int system = 0, int run = 2);
80-
void DisableOutOfBunchPileupCuts();
81-
void SetOnVsOfParams(float newV0MOnVsOfA, float newV0MOnVsOfB, float newSPDOnVsOfA, float newSPDOnVsOfB);
82-
bool* GetSelection(int iSelection);
88+
explicit EventSelectionParams(int system = 0, int run = 2); // o2-linter: disable=name/function-variable
89+
void disableOutOfBunchPileupCuts();
90+
void setOnVsOfParams(float newV0MOnVsOfA, float newV0MOnVsOfB, float newSPDOnVsOfA, float newSPDOnVsOfB);
91+
bool* getSelection(int iSelection);
8392

8493
bool selectionBarrel[o2::aod::evsel::kNsel];
8594
bool selectionMuonWithPileupCuts[o2::aod::evsel::kNsel];
@@ -153,7 +162,7 @@ class EventSelectionParams
153162
int fITSROFrameStartBorderMargin = 10; // number of bcs to cut in the beginning of ITS readout frame
154163
int fITSROFrameEndBorderMargin = 20; // number of bcs to cut in the end of ITS readout frame
155164

156-
ClassDefNV(EventSelectionParams, 6)
165+
ClassDefNV(EventSelectionParams, 7)
157166
};
158167

159168
#endif // COMMON_CCDB_EVENTSELECTIONPARAMS_H_

0 commit comments

Comments
 (0)