Skip to content

Commit d9b123f

Browse files
Merge dev into template
2 parents 3aaf865 + e8acf47 commit d9b123f

1,096 files changed

Lines changed: 54372 additions & 27571 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.

.clang-tidy

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,42 @@
1+
---
2+
Checks:
3+
- -*
4+
- modernize-avoid-bind
5+
- modernize-deprecated-headers
6+
- modernize-make-shared
7+
- modernize-raw-string-literal
8+
- modernize-redundant-void-arg
9+
- modernize-replace-auto-ptr
10+
- modernize-replace-random-shuffle
11+
- modernize-shrink-to-fit
12+
- modernize-unary-static-assert
13+
- modernize-use-equals-default
14+
- modernize-use-noexcept
15+
- modernize-use-nullptr
16+
- modernize-use-override
17+
- modernize-use-transparent-functors
18+
- modernize-use-uncaught-exceptions
19+
- readability-braces-around-statements
20+
- -clang-diagnostic-vla-cxx-extension
121
CheckOptions:
2-
- key: CheckPathRegex
3-
value: '.*/O2/.*'
22+
# Naming conventions
23+
readability-identifier-naming.ClassCase: CamelCase
24+
readability-identifier-naming.ClassMemberPrefix: m
25+
readability-identifier-naming.ConceptCase: CamelCase
26+
readability-identifier-naming.ConstexprVariableCase: CamelCase
27+
readability-identifier-naming.EnumCase: CamelCase
28+
readability-identifier-naming.EnumConstantCase: CamelCase
29+
readability-identifier-naming.EnumConstantIgnoredRegexp: "^k?[A-Z][a-zA-Z0-9_]*$" # Allow "k" prefix and non-trailing underscores in PDG names.
30+
readability-identifier-naming.FunctionCase: camelBack
31+
readability-identifier-naming.MacroDefinitionCase: UPPER_CASE
32+
readability-identifier-naming.MacroDefinitionIgnoredRegexp: "^[A-Z][A-Z0-9_]*_$" # Allow the trailing underscore in header guards.
33+
readability-identifier-naming.MemberCase: camelBack
34+
readability-identifier-naming.NamespaceCase: lower_case
35+
readability-identifier-naming.ParameterCase: camelBack
36+
readability-identifier-naming.StructCase: CamelCase
37+
readability-identifier-naming.TemplateParameterCase: CamelCase
38+
readability-identifier-naming.TypeAliasCase: CamelCase
39+
readability-identifier-naming.TypedefCase: CamelCase
40+
readability-identifier-naming.TypeTemplateParameterCase: CamelCase
41+
readability-identifier-naming.VariableCase: camelBack
42+
...

.github/workflows/async-list-label.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/standalone-benchmark.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ jobs:
5454
BENCHMARK_CSV: standalone_${{ matrix.name }}.csv
5555
PROFILER_CSV: profiler_${{ matrix.name }}.csv
5656
TIMING_CA: ./ca -e 50kHz ${{ matrix.cpu_gpu }} --seed 0 --sync --runsInit 0 --PROCresetTimers 1 --PROCdebugMarkdown 1 --debug 1 # Add --runs 42 for benchmark runs
57-
LD_LIBRARY_PATH: /usr/local/cuda-13.0/compat
5857

5958
name: ${{ matrix.name }}
6059
steps:
@@ -80,7 +79,7 @@ jobs:
8079
module load ninja/fortran-v1.11.1.g9-15 Vc/1.4.5-10 boost/v1.83.0-alice2-57 fmt/11.1.2-14 CMake/v3.31.6-10 ms_gsl/4.2.1-3 Clang/v20.1.7-9 TBB/v2022.3.0-3 ROOT/v6-36-04-alice9-15 ONNXRuntime/v1.22.0-71 GLFW/3.3.2-25
8180

8281
mkdir -p ${STANDALONE_DIR}
83-
cmake -B ${STANDALONE_DIR}/build ${{ matrix.cmake_args }} -DENABLE_OPENCL=0 -DGPUCA_BUILD_EVENT_DISPLAY=0 -DGPUCA_DETERMINISTIC_MODE=${DETERMINISTIC_MODE} -DCMAKE_INSTALL_PREFIX=${STANDALONE_DIR} ${GITHUB_WORKSPACE}/GPU/GPUTracking/Standalone/
82+
cmake -B ${STANDALONE_DIR}/build ${{ matrix.cmake_args }} -DGPUCA_DETERMINISTIC_MODE=${DETERMINISTIC_MODE} -DCMAKE_INSTALL_PREFIX=${STANDALONE_DIR} ${GITHUB_WORKSPACE}/GPU/GPUTracking/Standalone/
8483
cmake --build ${STANDALONE_DIR}/build --target install -j 8
8584
env:
8685
DETERMINISTIC_MODE: GPU

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,9 @@ bazel-*
9090
DataFormats/Detectors/CTP/include/DataFormatsCTP/Scalers.h
9191
dpl-config.json
9292
O2.code-workspace
93+
94+
# Python bytecode
95+
*.pyc
96+
97+
# Claude code
98+
.claude/settings.local.json

CCDB/include/CCDB/BasicCCDBManager.h

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ class CCDBManagerInstance
5555
long endvalidity = -1;
5656
long cacheValidFrom = 0; // time for which the object was cached
5757
long cacheValidUntil = -1; // object is guaranteed to be valid till this time (modulo new updates)
58+
size_t size = 0;
5859
size_t minSize = -1ULL;
5960
size_t maxSize = 0;
6061
int queries = 0;
@@ -64,8 +65,8 @@ class CCDBManagerInstance
6465
bool isValid(long ts) { return ts < endvalidity && ts >= startvalidity; }
6566
bool isCacheValid(long ts)
6667
{
67-
LOGP(debug, "isCacheValid : {} : {} : {} --> {}", cacheValidFrom, ts, cacheValidUntil, ts < cacheValidUntil && ts >= cacheValidFrom);
68-
return ts < cacheValidUntil && ts >= cacheValidFrom;
68+
LOGP(debug, "isCacheValid : {} : {} : {} --> {}", cacheValidFrom, ts, cacheValidUntil, isValid(ts));
69+
return ts < cacheValidUntil && isValid(ts);
6970
}
7071
void clear()
7172
{
@@ -229,6 +230,7 @@ class CCDBManagerInstance
229230
long mCreatedNotBefore = 0; // lower limit for object creation timestamp (TimeMachine mode) - If-Not-Before HTTP header
230231
long mTimerMS = 0; // timer for queries
231232
size_t mFetchedSize = 0; // total fetched size
233+
size_t mRequestedSize = 0; // total requested size (fetched + served from cache)
232234
int mQueries = 0; // total number of object queries
233235
int mFetches = 0; // total number of succesful fetches from CCDB
234236
int mFailures = 0; // total number of failed fetches
@@ -258,6 +260,7 @@ T* CCDBManagerInstance::getForTimeStamp(std::string const& path, long timestamp,
258260
if (sh != mHeaders.end()) {
259261
size_t s = atol(sh->second.c_str());
260262
mFetchedSize += s;
263+
mRequestedSize += s;
261264
}
262265
}
263266

@@ -272,6 +275,7 @@ T* CCDBManagerInstance::getForTimeStamp(std::string const& path, long timestamp,
272275
if (headers) {
273276
*headers = cached.cacheOfHeaders;
274277
}
278+
mRequestedSize += cached.size;
275279
return reinterpret_cast<T*>(cached.noCleanupPtr ? cached.noCleanupPtr : cached.objPtr.get());
276280
}
277281
ptr = mCCDBAccessor.retrieveFromTFileAny<T>(path, mMetaData, timestamp, &mHeaders, cached.uuid,
@@ -318,6 +322,8 @@ T* CCDBManagerInstance::getForTimeStamp(std::string const& path, long timestamp,
318322
if (sh != mHeaders.end()) {
319323
size_t s = atol(sh->second.c_str());
320324
mFetchedSize += s;
325+
mRequestedSize += s;
326+
cached.size = s;
321327
cached.minSize = std::min(s, cached.minSize);
322328
cached.maxSize = std::max(s, cached.minSize);
323329
}
@@ -342,12 +348,14 @@ T* CCDBManagerInstance::getForTimeStamp(std::string const& path, long timestamp,
342348
}
343349
auto end = std::chrono::system_clock::now();
344350
mTimerMS += std::chrono::duration_cast<std::chrono::milliseconds>(end - start).count();
345-
auto *ref = o2::framework::ServiceRegistryRef::globalDeviceRef();
351+
auto* ref = o2::framework::ServiceRegistryRef::globalDeviceRef();
346352
if (ref && ref->active<framework::DataProcessingStats>()) {
347353
auto& stats = ref->get<o2::framework::DataProcessingStats>();
348354
stats.updateStats({(int)o2::framework::ProcessingStatsId::CCDB_CACHE_HIT, o2::framework::DataProcessingStats::Op::Set, (int64_t)mQueries - mFailures - mFetches});
349355
stats.updateStats({(int)o2::framework::ProcessingStatsId::CCDB_CACHE_MISS, o2::framework::DataProcessingStats::Op::Set, (int64_t)mFetches});
350356
stats.updateStats({(int)o2::framework::ProcessingStatsId::CCDB_CACHE_FAILURE, o2::framework::DataProcessingStats::Op::Set, (int64_t)mFailures});
357+
stats.updateStats({(int)o2::framework::ProcessingStatsId::CCDB_CACHE_FETCHED_BYTES, o2::framework::DataProcessingStats::Op::Set, (int64_t)mFetchedSize});
358+
stats.updateStats({(int)o2::framework::ProcessingStatsId::CCDB_CACHE_REQUESTED_BYTES, o2::framework::DataProcessingStats::Op::Set, (int64_t)mRequestedSize});
351359
}
352360
return ptr;
353361
}

CCDB/src/BasicCCDBManager.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ std::pair<int64_t, int64_t> CCDBManagerInstance::getRunDuration(int runnumber, b
101101

102102
std::string CCDBManagerInstance::getSummaryString() const
103103
{
104-
std::string res = fmt::format("{} queries, {} bytes", mQueries, fmt::group_digits(mFetchedSize));
104+
std::string res = fmt::format("{} queries, {} fetched / {} requested bytes", mQueries, fmt::group_digits(mFetchedSize), fmt::group_digits(mRequestedSize));
105105
if (mCachingEnabled) {
106106
res += fmt::format(" for {} objects", mCache.size());
107107
}

CCDB/src/CcdbApi.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,7 @@ void CcdbApi::init(std::string const& host)
213213
snapshotReport += ')';
214214
}
215215

216-
mNeedAlienToken = (host.find("https://") != std::string::npos) || (host.find("alice-ccdb.cern.ch") != std::string::npos);
217-
216+
mNeedAlienToken = (host.find("https://") != std::string::npos) || (host.find("alice-ccdb.cern.ch") != std::string::npos) || (host.find("ccdb-test.cern.ch") != std::string::npos);
218217
// Set the curl timeout. It can be forced with an env var or it has different defaults based on the deployment mode.
219218
if (getenv("ALICEO2_CCDB_CURL_TIMEOUT_DOWNLOAD")) {
220219
auto timeout = atoi(getenv("ALICEO2_CCDB_CURL_TIMEOUT_DOWNLOAD"));

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
/Detectors/TPC @davidrohr @wiechula @shahor02
7474
/Detectors/TRD @f3sch @bazinski @wille10
7575
/Detectors/Upgrades @mconcas
76-
/Detectors/Upgrades/ALICE3 @mconcas @njacazio
76+
/Detectors/Upgrades/ALICE3 @mconcas @njacazio @fcolamar
7777
/Detectors/Upgrades/ITS3 @fgrosa @arossi81 @mconcas @f3sch
7878
/Detectors/ZDC @coppedis @cortesep
7979
/Detectors/CTF @shahor02

Common/Constants/include/CommonConstants/PhysicsConstants.h

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ enum Pdg {
6464
kJPsi = 443,
6565
kLambdaB0 = 5122,
6666
kLambdaCPlus = 4122,
67+
kLambdaCPlus2860 = 24124,
68+
kLambdaCPlus2880 = 24126,
69+
kLambdaCPlus2940 = 4125,
6770
kOmegaC0 = 4332,
6871
kK0Star892 = 313,
6972
kKPlusStar892 = 323,
@@ -92,7 +95,10 @@ enum Pdg {
9295
kHyperHelium4 = 1010020040,
9396
kHyperHelium5 = 1010020050,
9497
kHyperHelium4Sigma = 1110020040,
95-
kLambda1520_Py = 102134
98+
kLambda1520_Py = 102134,
99+
kK1_1270_0 = 10313,
100+
kK1_1270Plus = 10323,
101+
kCDeuteron = 2010010020
96102
};
97103

98104
/// \brief Declarations of masses for additional particles
@@ -129,6 +135,9 @@ constexpr double MassChiC1 = 3.51067;
129135
constexpr double MassJPsi = 3.0969;
130136
constexpr double MassLambdaB0 = 5.6196;
131137
constexpr double MassLambdaCPlus = 2.28646;
138+
constexpr double MassLambdaCPlus2860 = 2.8561;
139+
constexpr double MassLambdaCPlus2880 = 2.8816;
140+
constexpr double MassLambdaCPlus2940 = 2.9396;
132141
constexpr double MassOmegaC0 = 2.6952;
133142
constexpr double MassK0Star892 = 0.89555;
134143
constexpr double MassKPlusStar892 = 0.89167;
@@ -158,6 +167,9 @@ constexpr double MassHyperHelium4 = 3.921728;
158167
constexpr double MassHyperHelium5 = 4.839961;
159168
constexpr double MassHyperHelium4Sigma = 3.995;
160169
constexpr double MassLambda1520_Py = 1.5195;
170+
constexpr double MassK1_1270_0 = 1.253;
171+
constexpr double MassK1_1270Plus = 1.272;
172+
constexpr double MassCDeuteron = 3.226;
161173

162174
/// \brief Declarations of masses for particles in ROOT PDG_t
163175
constexpr double MassDown = 0.00467;

Common/Constants/include/CommonConstants/make_pdg_header.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ class Pdg(Enum):
122122
kJPsi = 443
123123
kLambdaB0 = 5122
124124
kLambdaCPlus = 4122
125+
kLambdaCPlus2860 = 24124
126+
kLambdaCPlus2880 = 24126
127+
kLambdaCPlus2940 = 4125
125128
kOmegaC0 = 4332
126129
kK0Star892 = 313
127130
kKPlusStar892 = 323
@@ -151,6 +154,9 @@ class Pdg(Enum):
151154
kHyperHelium5 = 1010020050
152155
kHyperHelium4Sigma = 1110020040
153156
kLambda1520_Py = 102134 # PYTHIA code different from PDG
157+
kK1_1270_0 = 10313
158+
kK1_1270Plus = 10323
159+
kCDeuteron = 2010010020
154160

155161

156162
dbPdg = o2.O2DatabasePDG

0 commit comments

Comments
 (0)