Skip to content

Commit 3ccafc8

Browse files
committed
Merge branch 'master' of github.com:miedema-11/O2Physics
2 parents 750de87 + a60e5a5 commit 3ccafc8

46 files changed

Lines changed: 4494 additions & 640 deletions

Some content is hidden

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

‎.github/workflows/clean-test.yml‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ name: Clean PR checks
2424
type: boolean
2525
default: true
2626

27-
'check_build/O2Physics/o2/macOS':
28-
description: build/O2Physics/o2/macOS
29-
type: boolean
30-
default: true
31-
3227
'check_build/O2Physics/o2':
3328
description: build/O2Physics/o2
3429
type: boolean

‎ALICE3/Core/ALICE3CoreLinkDef.h‎

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

12+
// NOLINT(build/header_guard)
13+
1214
#pragma link off all globals;
1315
#pragma link off all classes;
1416
#pragma link off all functions;

‎ALICE3/Core/FastTrackerLinkDef.h‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12-
#ifndef ALICE3_CORE_FASTTRACKERLINKDEF_H_
13-
#define ALICE3_CORE_FASTTRACKERLINKDEF_H_
12+
// NOLINT(build/header_guard)
1413

1514
#pragma link off all globals;
1615
#pragma link off all classes;
@@ -19,5 +18,3 @@
1918
#pragma link C++ class o2::fastsim::GeometryContainer + ;
2019
#pragma link C++ class o2::fastsim::FastTracker + ;
2120
#pragma link C++ class o2::fastsim::FlatLutWriter + ;
22-
23-
#endif // ALICE3_CORE_FASTTRACKERLINKDEF_H_

‎CODEOWNERS‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
/PWGUD @alibuild @amatyja @rolavick
7979
/PWGJE @alibuild @nzardosh @fjonasALICE @jaimenorman @mhemmer-cern
8080
/Tools/PIDML @alibuild @saganatt
81-
/Tools/ML @alibuild @fcatalan92 @fmazzasc
81+
/Tools/ML @alibuild @fcatalan92 @fmazzasc @ChSonnabend
8282
/Tutorials/PWGCF @alibuild @jgrosseo @victor-gonzalez @zchochul
8383
/Tutorials/PWGDQ @alibuild @iarsene @mcoquet642 @XiaozhiBai @mguilbau
8484
/Tutorials/PWGEM @alibuild @mikesas @rbailhac @dsekihat @ivorobye @feisenhu

‎Common/Tools/PID/pidTPCModule.h‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
#include <TRandom.h>
5050
#include <TString.h>
5151

52+
#include <algorithm>
5253
#include <array>
5354
#include <chrono>
5455
#include <cstddef>
@@ -570,11 +571,12 @@ class pidTPCModule
570571
std::unique_ptr<float[]> networkPrediction(new float[predictionSize * NParticleTypes]); // For each mass hypotheses
571572

572573
const float nNclNormalization = response->GetNClNormalization();
573-
float durationNetwork = 0;
574+
float durationNetwork = 0.f;
574575

575576
std::vector<float> trackProperties(trackPropSize);
577+
std::vector<float> outputNetwork; // output buffer, allocation is reused for all mass hypotheses
576578
uint64_t counterTrackProps = 0;
577-
int loopCounter = 0;
579+
uint64_t loopCounter = 0;
578580

579581
// To load the Hadronic rate once for each collision
580582
std::vector<float> hadronicRateForCollision(collisions.size(), 0.0f);
@@ -626,14 +628,13 @@ class pidTPCModule
626628
}
627629

628630
const auto startNetworkEval = std::chrono::high_resolution_clock::now();
629-
const float* const outputNetwork = network.evalModel(trackProperties);
631+
network.evalModel(trackProperties, outputNetwork);
630632
const auto stopNetworkEval = std::chrono::high_resolution_clock::now();
631633
durationNetwork += std::chrono::duration<float, std::ratio<1, NanoToOne>>(stopNetworkEval - startNetworkEval).count();
632-
for (uint64_t kPrediction = 0; kPrediction < predictionSize; kPrediction += outputDimensions) {
633-
for (int lOutputDim = 0; lOutputDim < outputDimensions; ++lOutputDim) {
634-
networkPrediction[kPrediction + lOutputDim + predictionSize * loopCounter] = outputNetwork[kPrediction + lOutputDim];
635-
}
634+
if (outputNetwork.size() != predictionSize) {
635+
LOG(fatal) << "Network output size (" << outputNetwork.size() << ") does not match the expected prediction size (" << predictionSize << ")";
636636
}
637+
std::copy(outputNetwork.begin(), outputNetwork.end(), networkPrediction.get() + predictionSize * loopCounter);
637638

638639
counterTrackProps = 0;
639640
++loopCounter;

‎PWGCF/EbyEFluctuations/Tasks/partNumFluc.cxx‎

Lines changed: 119 additions & 90 deletions
Large diffs are not rendered by default.

‎PWGCF/TwoParticleCorrelations/Tasks/CMakeLists.txt‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,8 @@ o2physics_add_dpl_workflow(lambda-or-anti-lambda-producer-with-spin
137137
SOURCES lambdaOrAntiLambdaProducerWithSpin.cxx
138138
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore
139139
COMPONENT_NAME Analysis)
140+
141+
o2physics_add_dpl_workflow(fox-wolfram-correlation
142+
SOURCES FoxWolframCorrelation.cxx
143+
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
144+
COMPONENT_NAME Analysis)

0 commit comments

Comments
 (0)