@@ -300,11 +300,11 @@ struct DptDptCorrelationsTask {
300
300
{
301
301
using namespace correlationstask ;
302
302
303
- LOGF (info, " Stored NUA&NUE corrections for %d track ids" , corrs.size ());
303
+ LOGF (info, " Storing NUA&NUE corrections for %d track ids" , corrs.size ());
304
304
for (uint i = 0 ; i < corrs.size (); ++i) {
305
305
if (corrs[i] != nullptr ) {
306
306
if (nNoOfDimensions != corrs[i]->GetDimension ()) {
307
- LOGF (fatal, " Corrections receved dimensions %d for track id %d different than expected %d" , corrs[i]->GetDimension (), i, nNoOfDimensions);
307
+ LOGF (fatal, " Corrections received dimensions %d for track id %d different than expected %d" , corrs[i]->GetDimension (), i, nNoOfDimensions);
308
308
} else {
309
309
LOGF (info, " Storing NUA&NUE corrections %s for track id %d with %d dimensions %s" ,
310
310
corrs[i] != nullptr ? corrs[i]->GetName () : " nullptr" , i, nNoOfDimensions, corrs[i] != nullptr ? " yes" : " no" );
@@ -332,7 +332,7 @@ struct DptDptCorrelationsTask {
332
332
}
333
333
}
334
334
}
335
- LOGF (info, " Average NUA&NUE correction for track id %d: %f" , i, avg / nbins);
335
+ LOGF (info, " Average NUA&NUE correction for track id %d: %f" , i, avg / nbins);
336
336
}
337
337
}
338
338
ccdbstored = true ;
@@ -1201,7 +1201,7 @@ struct DptDptCorrelationsTask {
1201
1201
{
1202
1202
using namespace correlationstask ;
1203
1203
1204
- static constexpr std::string_view kStrDim [] = {" " , " 2D" , " 3D" , " 4D" };
1204
+ static constexpr std::string_view kStrDim [] = {" " , " " , " 2D" , " 3D" , " 4D" };
1205
1205
return kStrDim [nNoOfDimensions].data ();
1206
1206
}
1207
1207
@@ -1255,13 +1255,13 @@ struct DptDptCorrelationsTask {
1255
1255
} else {
1256
1256
std::vector<TH1*> corrs{tnames.size (), nullptr };
1257
1257
for (uint isp = 0 ; isp < tnames.size (); ++isp) {
1258
- corrs[isp] = reinterpret_cast <TH1*>(ccdblst-> FindObject (
1259
- TString::Format ( " correction%s_%02d-%02d_%s " ,
1260
- getDimensionStr (),
1261
- static_cast < int >( fCentMultMin [ixDCE]),
1262
- static_cast < int >( fCentMultMax [ixDCE]),
1263
- tnames[ isp]. c_str ())
1264
- . Data ()));
1258
+ auto hName = TString::Format ( " correction%s_%02d-%02d_%s " , getDimensionStr (), static_cast < int >( fCentMultMin [ixDCE]), static_cast < int >( fCentMultMax [ixDCE]), tnames[isp]. c_str ());
1259
+ corrs[isp] = reinterpret_cast <TH1*>(ccdblst-> FindObject (hName. Data ()));
1260
+ if (corrs[isp] != nullptr ) {
1261
+ LOGF (info, " Loaded %s " , corrs[isp]-> GetName ());
1262
+ } else {
1263
+ LOGF (warning, " No correction histogram for species %d with name %s " , isp, hName. Data ());
1264
+ }
1265
1265
}
1266
1266
storeTrackCorrections (corrs);
1267
1267
std::vector<TH2*> ptavgs{tnames.size (), nullptr };
@@ -1330,13 +1330,13 @@ struct DptDptCorrelationsTask {
1330
1330
} else {
1331
1331
std::vector<TH1*> corrs{tnames.size (), nullptr };
1332
1332
for (uint isp = 0 ; isp < tnames.size (); ++isp) {
1333
- corrs[isp] = reinterpret_cast <TH1*>(ccdblst-> FindObject (
1334
- TString::Format ( " correction%s_%02d-%02d_%s " ,
1335
- getDimensionStr (),
1336
- static_cast < int >( fCentMultMin [ixDCE]),
1337
- static_cast < int >( fCentMultMax [ixDCE]),
1338
- tnames[ isp]. c_str ())
1339
- . Data ()));
1333
+ auto hName = TString::Format ( " correction%s_%02d-%02d_%s " , getDimensionStr (), static_cast < int >( fCentMultMin [ixDCE]), static_cast < int >( fCentMultMax [ixDCE]), tnames[isp]. c_str ());
1334
+ corrs[isp] = reinterpret_cast <TH1*>(ccdblst-> FindObject (hName. Data ()));
1335
+ if (corrs[isp] != nullptr ) {
1336
+ LOGF (info, " Loaded %s " , corrs[isp]-> GetName ());
1337
+ } else {
1338
+ LOGF (warning, " No correction histogram for species %d with name %s " , isp, hName. Data ());
1339
+ }
1340
1340
}
1341
1341
dataCEME[ixDCE]->storeTrackCorrections (corrs);
1342
1342
std::vector<TH2*> ptavgs{tnames.size (), nullptr };
0 commit comments