Skip to content

Commit 921d2c7

Browse files
committed
Only load LUT if not already loaded
1 parent ff91b95 commit 921d2c7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

PWGLF/TableProducer/Strangeness/cascadebuilder.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ struct cascadeBuilder {
755755
/// Set magnetic field for KF vertexing
756756
KFParticle::SetField(d_bz);
757757

758-
if (useMatCorrType == 2) {
758+
if (useMatCorrType == 2 && !lut) {
759759
// setMatLUT only after magfield has been initalized
760760
// (setMatLUT has implicit and problematic init field call if not)
761761
LOG(info) << "Loading material look-up table for timestamp: " << timestamp;

PWGLF/TableProducer/Strangeness/lambdakzerobuilder.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ struct lambdakzeroBuilder {
737737
// Set magnetic field value once known
738738
fitter.setBz(d_bz);
739739

740-
if (dcaFitterConfigurations.useMatCorrType == 2) {
740+
if (dcaFitterConfigurations.useMatCorrType == 2 && !lut) {
741741
// setMatLUT only after magfield has been initalized
742742
// (setMatLUT has implicit and problematic init field call if not)
743743
LOG(info) << "Loading material look-up table for timestamp: " << timestamp;

0 commit comments

Comments
 (0)