Skip to content

Commit 5ee5335

Browse files
committed
U
1 parent 24d38a4 commit 5ee5335

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

ALICE3/TableProducer/OTF/onTheFlyRichPid.cxx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -301,13 +301,14 @@ struct OnTheFlyRichPid {
301301
// Load LUT for pt and eta smearing
302302
if (flagIncludeTrackAngularRes && flagRICHLoadDelphesLUTs) {
303303
mSmearer.setCcdbManager(ccdb.operator->());
304-
auto loadLUT = [&](int pdg, std::string cfgNameToInherit) {
305-
if (!getTaskOptionValue(initContext, "on-the-fly-tracker", cfgNameToInherit, false)) {
304+
auto loadLUT = [&](int pdg, const std::string& cfgNameToInherit) {
305+
std::string lut = "none";
306+
if (!getTaskOptionValue(initContext, "on-the-fly-tracker", cfgNameToInherit, lut, false)) {
306307
LOG(fatal) << "Could not get " << cfgNameToInherit << " from on-the-fly-tracker task";
307308
}
308-
bool success = mSmearer.loadTable(pdg, cfgNameToInherit.c_str());
309-
if (!success && !cfgNameToInherit.empty()) {
310-
LOG(fatal) << "Having issue with loading the LUT " << pdg << " " << cfgNameToInherit;
309+
bool success = mSmearer.loadTable(pdg, lut.c_str());
310+
if (!success && !lut.empty()) {
311+
LOG(fatal) << "Having issue with loading the LUT " << pdg << " " << lut;
311312
}
312313
};
313314
loadLUT(11, "lutEl");

ALICE3/TableProducer/OTF/onTheFlyTofPid.cxx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,14 @@ struct OnTheFlyTofPid {
151151
// Load LUT for pt and eta smearing
152152
if (simConfig.flagIncludeTrackTimeRes && simConfig.flagTOFLoadDelphesLUTs) {
153153
mSmearer.setCcdbManager(ccdb.operator->());
154-
auto loadLUT = [&](int pdg, std::string cfgNameToInherit) {
155-
if (!getTaskOptionValue(initContext, "on-the-fly-tracker", cfgNameToInherit, false)) {
154+
auto loadLUT = [&](int pdg, const std::string& cfgNameToInherit) {
155+
std::string lut = "none";
156+
if (!getTaskOptionValue(initContext, "on-the-fly-tracker", cfgNameToInherit, lut, false)) {
156157
LOG(fatal) << "Could not get " << cfgNameToInherit << " from on-the-fly-tracker task";
157158
}
158-
bool success = mSmearer.loadTable(pdg, cfgNameToInherit.c_str());
159-
if (!success && !cfgNameToInherit.empty()) {
160-
LOG(fatal) << "Having issue with loading the LUT " << pdg << " " << cfgNameToInherit;
159+
bool success = mSmearer.loadTable(pdg, lut.c_str());
160+
if (!success && !lut.empty()) {
161+
LOG(fatal) << "Having issue with loading the LUT " << pdg << " " << lut;
161162
}
162163
};
163164
loadLUT(11, "lutEl");

0 commit comments

Comments
 (0)