Skip to content

Commit b8f9075

Browse files
authored
Merge branch 'master' into changes_mftReasso
2 parents 07a7fc9 + 8e57973 commit b8f9075

File tree

821 files changed

+35254
-16791
lines changed

Some content is hidden

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

821 files changed

+35254
-16791
lines changed

.github/workflows/o2-linter.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Find issues in O2 code
33
name: O2 linter
44

5-
#"on": [pull_request_target, push]
5+
"on": [pull_request_target, push]
66
permissions: {}
77
env:
88
BRANCH_MAIN: master
@@ -20,12 +20,12 @@ jobs:
2020
steps:
2121
- name: Set branches
2222
run: |
23-
if [[ "${{ github.event_name }}" == "push" ]]; then
23+
if [[ "${{ github.event_name }}" == "push" || "${{ github.event_name }}" == "pull_request" ]]; then
2424
branch_head="${{ github.ref }}"
25-
branch_base="${{ env.BRANCH_MAIN }}"
25+
branch_base="origin/${{ env.BRANCH_MAIN }}"
2626
else
2727
branch_head="refs/pull/${{ github.event.pull_request.number }}/merge"
28-
branch_base="${{ github.event.pull_request.base.ref }}"
28+
branch_base="origin/${{ github.event.pull_request.base.ref }}"
2929
fi
3030
echo BRANCH_HEAD="$branch_head" >> "$GITHUB_ENV"
3131
echo BRANCH_BASE="$branch_base" >> "$GITHUB_ENV"
@@ -37,9 +37,10 @@ jobs:
3737
- name: Run tests
3838
id: linter
3939
run: |
40+
git log -n 1 --pretty='format:%ci %h %s %d%n'
4041
# Diff against the common ancestor of the source (head) branch and the target (base) branch.
4142
echo "Diffing ${{ env.BRANCH_HEAD }} against ${{ env.BRANCH_BASE }}."
42-
readarray -t files < <(git diff --diff-filter d --name-only origin/${{ env.BRANCH_BASE }}...)
43+
readarray -t files < <(git diff --diff-filter d --name-only ${{ env.BRANCH_BASE }}...)
4344
if [ ${#files[@]} -eq 0 ]; then
4445
echo "::notice::No files to lint."
4546
echo "linter_ran=0" >> "$GITHUB_OUTPUT"

ALICE3/Core/Decayer.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@
2121

2222
#include "ALICE3/Core/TrackUtilities.h"
2323

24-
#include "ReconstructionDataFormats/Track.h"
24+
#include <CommonConstants/PhysicsConstants.h>
25+
#include <MathUtils/Primitive2D.h>
26+
#include <ReconstructionDataFormats/Track.h>
2527

26-
#include <TDatabasePDG.h>
27-
#include <TDecayChannel.h>
28+
#include <TDecayChannel.h> // IWYU pragma: keep
2829
#include <TGenPhaseSpace.h>
2930
#include <TLorentzVector.h>
30-
#include <TParticlePDG.h>
3131
#include <TRandom3.h>
3232

3333
#include <array>
3434
#include <cmath>
35-
#include <string>
35+
#include <cstddef>
3636
#include <vector>
3737

3838
namespace o2

ALICE3/Core/DelphesO2LutWriter.cxx

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,27 @@
2525
#include "ALICE3/Core/FastTracker.h"
2626
#include "ALICE3/Core/TrackUtilities.h"
2727

28-
#include "TAxis.h"
29-
#include "TDatabasePDG.h"
30-
#include "TLorentzVector.h"
31-
#include "TMatrixD.h"
32-
#include "TMatrixDSymEigen.h"
33-
#include "TVectorD.h"
34-
28+
#include <Framework/Logger.h>
29+
#include <ReconstructionDataFormats/Track.h>
30+
31+
#include <TAxis.h>
32+
#include <TDatabasePDG.h>
33+
#include <TGraph.h>
34+
#include <TLorentzVector.h>
35+
#include <TMatrixD.h> // IWYU pragma: keep (do not replace with TMatrixDfwd.h)
36+
#include <TMatrixDSymEigen.h>
37+
#include <TMatrixDSymfwd.h>
38+
#include <TMatrixDfwd.h>
39+
#include <TParticlePDG.h>
40+
#include <TString.h>
41+
#include <TVectorDfwd.h>
42+
43+
#include <Rtypes.h>
44+
45+
#include <cmath>
3546
#include <cstdio>
47+
#include <cstdlib>
48+
#include <fstream>
3649
#include <string>
3750

3851
// #define USE_FWD_PARAM

ALICE3/Core/DelphesO2LutWriter.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@
2323
#include "ALICE3/Core/DelphesO2TrackSmearer.h"
2424
#include "ALICE3/Core/FastTracker.h"
2525

26-
#include "ReconstructionDataFormats/PID.h"
26+
#include <ReconstructionDataFormats/PID.h>
2727

28-
#include "TGraph.h"
28+
#include <TGraph.h>
2929

30+
#include <Rtypes.h>
31+
32+
#include <cstddef>
3033
#include <string>
3134

3235
namespace o2::fastsim

ALICE3/Core/DelphesO2TrackSmearer.cxx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,18 @@
2828
/// @author: Roberto Preghenella
2929
/// @email: preghenella@bo.infn.it
3030

31-
// #include "TrackSmearer.hh"
32-
// #include "TrackUtils.hh"
33-
// #include "TRandom.h"
34-
// #include <iostream>
35-
// #include <fstream>
36-
3731
#include "ALICE3/Core/DelphesO2TrackSmearer.h"
3832

3933
#include "ALICE3/Core/GeometryContainer.h"
4034

4135
#include <CommonConstants/PhysicsConstants.h>
4236
#include <Framework/Logger.h>
4337

44-
#include <map>
38+
#include <TRandom.h>
39+
40+
#include <cmath>
41+
#include <fstream>
42+
#include <ostream>
4543
#include <string>
4644

4745
namespace o2

ALICE3/Core/DelphesO2TrackSmearer.h

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,14 @@
2727
#include <CCDB/BasicCCDBManager.h>
2828
#include <ReconstructionDataFormats/Track.h>
2929

30-
#include <TRandom.h>
31-
30+
#include <cmath>
3231
#include <cstdio>
33-
#include <fstream>
34-
#include <iostream>
35-
#include <map>
36-
#include <string>
32+
#include <cstdlib>
3733

3834
///////////////////////////////
3935
/// DelphesO2/src/lutCovm.hh //
4036
///////////////////////////////
4137

42-
/// @author: Roberto Preghenella
43-
/// @email: preghenella@bo.infn.it
44-
45-
// #pragma // once
4638
#define LUTCOVM_VERSION 20210801
4739

4840
struct map_t {
@@ -154,17 +146,6 @@ struct lutEntry_t {
154146
/// DelphesO2/src/TrackSmearer.hh //
155147
////////////////////////////////////
156148

157-
/// @author: Roberto Preghenella
158-
/// @email: preghenella@bo.infn.it
159-
160-
// #ifndef _DelphesO2_TrackSmearer_h_
161-
// #define _DelphesO2_TrackSmearer_h_
162-
163-
// #include "ReconstructionDataFormats/Track.h"
164-
// #include "classes/DelphesClasses.h"
165-
// #include "lutCovm.hh"
166-
// #include <map>
167-
168149
using O2Track = o2::track::TrackParCov;
169150

170151
namespace o2
@@ -269,10 +250,9 @@ class TrackSmearer
269250
} // namespace delphes
270251
} // namespace o2
271252

272-
// #endif /** _DelphesO2_TrackSmearer_h_ **/
273-
274253
namespace o2::delphes
275254
{
276255
using DelphesO2TrackSmearer = TrackSmearer;
277256
}
257+
278258
#endif // ALICE3_CORE_DELPHESO2TRACKSMEARER_H_

ALICE3/Core/DetLayer.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@
2121
#include <CommonConstants/MathConstants.h>
2222
#include <Framework/Logger.h>
2323

24+
#include <TGraph.h>
25+
#include <TString.h>
26+
2427
#include <string>
25-
#include <vector>
2628

2729
namespace o2::fastsim
2830
{

ALICE3/Core/DetLayer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <TGraph.h>
2323
#include <TString.h>
2424

25+
#include <ostream>
2526
#include <string>
2627

2728
namespace o2::fastsim

ALICE3/Core/FastTracker.cxx

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,37 @@
1111

1212
#include "FastTracker.h"
1313

14-
#include "Common/Core/TableHelper.h"
15-
14+
#include "DetLayer.h"
15+
#include "GeometryContainer.h"
16+
17+
#include <CCDB/BasicCCDBManager.h>
18+
#include <CommonConstants/MathConstants.h>
19+
#include <Framework/Logger.h>
20+
#include <MathUtils/Utils.h>
21+
#include <ReconstructionDataFormats/Track.h>
1622
#include <ReconstructionDataFormats/TrackParametrization.h>
1723

18-
#include <TEnv.h>
19-
#include <THashList.h>
20-
#include <TMath.h>
21-
#include <TMatrixD.h>
24+
#include <TFile.h>
25+
#include <TGraph.h>
26+
#include <TMathBase.h>
27+
#include <TMatrixD.h> // IWYU pragma: keep (do not replace with TMatrixDfwd.h)
2228
#include <TMatrixDSymEigen.h>
29+
#include <TMatrixDSymfwd.h>
30+
#include <TMatrixDfwd.h>
2331
#include <TObject.h>
2432
#include <TRandom.h>
25-
#include <TSystem.h>
33+
#include <TString.h>
34+
#include <TVectorDfwd.h>
35+
36+
#include <Rtypes.h>
37+
#include <RtypesCore.h>
2638

27-
#include <chrono>
28-
#include <fstream>
29-
#include <map>
39+
#include <array>
40+
#include <cmath>
41+
#include <cstddef>
42+
#include <cstdint>
43+
#include <cstdlib>
3044
#include <string>
31-
#include <thread>
3245
#include <vector>
3346

3447
namespace o2

ALICE3/Core/FastTracker.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,14 @@
1616
#include "GeometryContainer.h"
1717

1818
#include <CCDB/BasicCCDBManager.h>
19-
#include <Framework/InitContext.h>
20-
#include <Framework/Logger.h>
2119
#include <ReconstructionDataFormats/Track.h>
2220

23-
#include <map>
21+
#include <TString.h>
22+
23+
#include <Rtypes.h>
24+
25+
#include <cstddef>
26+
#include <cstdint>
2427
#include <string>
2528
#include <vector>
2629

0 commit comments

Comments
 (0)