Skip to content

Commit 2447381

Browse files
authored
Merge branch 'AliceO2Group:master' into Update2
2 parents c4f99bf + 4d13940 commit 2447381

File tree

793 files changed

+78682
-34342
lines changed

Some content is hidden

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

793 files changed

+78682
-34342
lines changed

.clang-format

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,60 @@ PenaltyBreakFirstLessLess: 120
3939
PenaltyBreakString: 1000
4040
PenaltyExcessCharacter: 1000000
4141
PenaltyReturnTypeOnItsOwnLine: 200
42-
SortIncludes: false
42+
SortIncludes: CaseSensitive
43+
IncludeBlocks: Regroup
44+
IncludeCategories:
45+
# O2Physics, PWG
46+
- Regex: ^(<|")PWG[A-Z]{2}/.*\.h
47+
Priority: 2
48+
CaseSensitive: true
49+
# O2Physics, non-PWG
50+
- Regex: ^(<|")(Common|ALICE3|DPG|EventFiltering|Tools|Tutorials)/.*\.h
51+
Priority: 3
52+
CaseSensitive: true
53+
# O2
54+
- Regex: ^(<|")(Algorithm|CCDB|Common[A-Z]|DataFormats|DCAFitter|Detectors|EMCAL|Field|Framework|FT0|FV0|GlobalTracking|ITS|MathUtils|MFT|MCH|MID|PHOS|PID|ReconstructionDataFormats|SimulationDataFormat|TOF|TPC|ZDC).*/.*\.h
55+
Priority: 4
56+
CaseSensitive: true
57+
# ROOT
58+
- Regex: ^(<|")(T[A-Z]|Math/|Roo[A-Z])[[:alnum:]/]+\.h
59+
Priority: 5
60+
CaseSensitive: true
61+
# known third-party: KFParticle
62+
- Regex: ^(<|")KF[A-Z][[:alnum:]]+\.h
63+
Priority: 6
64+
CaseSensitive: true
65+
# known third-party: FastJet
66+
- Regex: ^(<|")fastjet/
67+
Priority: 6
68+
CaseSensitive: true
69+
# known third-party: ONNX runtime
70+
- Regex: ^(<|")onnxruntime
71+
Priority: 6
72+
CaseSensitive: true
73+
# incomplete path to DataModel
74+
- Regex: ^(<|").*DataModel/
75+
Priority: 1
76+
CaseSensitive: true
77+
# other third-party
78+
- Regex: ^(<|")([[:alnum:]_]+/)+[[:alnum:]_]+\.h
79+
Priority: 6
80+
CaseSensitive: true
81+
# other local-looking file
82+
- Regex: ^".*\.
83+
Priority: 1
84+
CaseSensitive: true
85+
# C system
86+
- Regex: ^(<|")[[:lower:]_]+\.h(>|")
87+
Priority: 102
88+
CaseSensitive: true
89+
# C++ system
90+
- Regex: ^(<|")[[:lower:]_/]+(>|")
91+
Priority: 101
92+
CaseSensitive: true
93+
# rest
94+
- Regex: .*
95+
Priority: 100
4396
SpaceBeforeAssignmentOperators: true
4497
SpaceBeforeParens: ControlStatements
4598
SpaceInEmptyParentheses: false

.clang-tidy

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
11
CheckOptions:
2-
- key: CheckPathRegex
3-
value: '.*/O2/.*'
2+
- { key: CheckPathRegex, value: ".*/O2/.*" }
3+
# Naming conventions
4+
- { key: readability-identifier-naming.ClassCase, value: CamelCase }
5+
- { key: readability-identifier-naming.ClassMemberPrefix, value: m }
6+
- { key: readability-identifier-naming.ConceptCase, value: CamelCase }
7+
- { key: readability-identifier-naming.ConstexprVariableCase, value: CamelCase }
8+
- { key: readability-identifier-naming.ConstexprVariableIgnoredRegexp, value: "^k[A-Z].*$" } # Allow "k" prefix.
9+
- { key: readability-identifier-naming.EnumCase, value: CamelCase }
10+
- { key: readability-identifier-naming.EnumConstantCase, value: CamelCase }
11+
- { key: readability-identifier-naming.EnumConstantIgnoredRegexp, value: "^k[A-Z].*$" } # Allow "k" prefix.
12+
- { key: readability-identifier-naming.FunctionCase, value: camelBack }
13+
- { key: readability-identifier-naming.MacroDefinitionCase, value: UPPER_CASE }
14+
- { key: readability-identifier-naming.MacroDefinitionIgnoredRegexp, value: "^[A-Z]+(_[A-Z]+)*_$" } # Allow the trailing underscore in header guards.
15+
- { key: readability-identifier-naming.MemberCase, value: camelBack }
16+
- { key: readability-identifier-naming.NamespaceCase, value: lower_case }
17+
- { key: readability-identifier-naming.ParameterCase, value: camelBack }
18+
- { key: readability-identifier-naming.StructCase, value: CamelCase }
19+
- { key: readability-identifier-naming.TemplateParameterCase, value: CamelCase }
20+
- { key: readability-identifier-naming.TypeAliasCase, value: CamelCase }
21+
- { key: readability-identifier-naming.TypedefCase, value: CamelCase }
22+
- { key: readability-identifier-naming.TypeTemplateParameterCase, value: CamelCase }
23+
- { key: readability-identifier-naming.VariableCase, value: camelBack }

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ repos:
77
- id: trailing-whitespace
88
- id: end-of-file-fixer
99
- repo: https://github.com/pre-commit/mirrors-clang-format
10-
rev: v18.1.3 # clang-format version
10+
rev: v20.1.5 # clang-format version
1111
hooks:
1212
- id: clang-format
1313
- repo: https://github.com/cpplint/cpplint
14-
rev: 2.0.0
14+
rev: 2.0.2
1515
hooks:
1616
- id: cpplint

ALICE3/Core/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,13 @@ o2physics_target_root_dictionary(ALICE3Core
2424
o2physics_add_library(FastTracker
2525
SOURCES FastTracker.cxx
2626
DetLayer.cxx
27+
DelphesO2LutWriter.cxx
2728
PUBLIC_LINK_LIBRARIES O2::Framework
28-
O2Physics::AnalysisCore)
29+
O2Physics::AnalysisCore
30+
O2Physics::ALICE3Core)
2931

3032
o2physics_target_root_dictionary(FastTracker
3133
HEADERS FastTracker.h
3234
DetLayer.h
35+
DelphesO2LutWriter.h
3336
LINKDEF FastTrackerLinkDef.h)

0 commit comments

Comments
 (0)