Skip to content

Commit 38cb531

Browse files
victor-gonzalezVictor
andauthored
[PWGCF] DptDpt - Independent CCDB date for PID adjustments (#13066)
Co-authored-by: Victor <victor@cern.ch>
1 parent c8e9ec5 commit 38cb531

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

PWGCF/TableProducer/dptDptFilter.cxx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,8 @@ struct DptDptFilter {
540540
Configurable<std::string> url{"url", "http://ccdb-test.cern.ch:8080", "The CCDB url for the input file"};
541541
Configurable<std::string> pathNameCorrections{"pathNameCorrections", "", "The CCDB path for the corrections file. Default \"\", i.e. don't load from CCDB"};
542542
Configurable<std::string> pathNamePID{"pathNamePID", "", "The CCDB path for the PID adjusts file. Default \"\", i.e. don't load from CCDB"};
543-
Configurable<std::string> date{"date", "20220307", "The CCDB date for the input file"};
543+
Configurable<std::string> dateCorrections{"dateCorrections", "20220307", "The CCDB date for the corrections input file"};
544+
Configurable<std::string> datePID{"datePID", "20220307", "The CCDB date for the PID adjustments input file"};
544545
Configurable<std::string> suffix{"suffix", "", "Dataset period suffix for metadata discrimination"};
545546
} cfginputfile;
546547
Configurable<bool> cfgFullDerivedData{"cfgFullDerivedData", false, "Produce the full derived data for external storage. Default false"};
@@ -1101,7 +1102,7 @@ struct DptDptFilterTracks {
11011102

11021103
std::string cfgCCDBUrl{"http://ccdb-test.cern.ch:8080"};
11031104
std::string cfgCCDBPathNamePID{""};
1104-
std::string cfgCCDBDate{"20220307"};
1105+
std::string cfgCCDBDatePID{"20220307"};
11051106

11061107
Configurable<bool> cfgOutDebugInfo{"cfgOutDebugInfo", false, "Out detailed debug information per track into a text file. Default false"};
11071108
Configurable<bool> cfgFullDerivedData{"cfgFullDerivedData", false, "Produce the full derived data for external storage. Default false"};
@@ -1172,7 +1173,7 @@ struct DptDptFilterTracks {
11721173
/* self configure the CCDB access to the input file */
11731174
getTaskOptionValue(initContext, "dpt-dpt-filter", "cfgCCDB.url", cfgCCDBUrl, false);
11741175
getTaskOptionValue(initContext, "dpt-dpt-filter", "cfgCCDB.pathNamePID", cfgCCDBPathNamePID, false);
1175-
getTaskOptionValue(initContext, "dpt-dpt-filter", "cfgCCDB.date", cfgCCDBDate, false);
1176+
getTaskOptionValue(initContext, "dpt-dpt-filter", "cfgCCDB.datePID", cfgCCDBDatePID, false);
11761177

11771178
/* create the output list which will own the task histograms */
11781179
TList* fOutputList = new TList();
@@ -1439,9 +1440,9 @@ struct DptDptFilterTracks {
14391440
using namespace analysis::dptdptfilter;
14401441

14411442
/* let's get a potential PID adjustment */
1442-
if ((cfgCCDBDate.length() > 0) && (cfgCCDBPathNamePID.length() > 0) && !storedccdbinfo) {
1443-
LOGF(info, "Getting information for PID adjustment from %s, at %s", cfgCCDBPathNamePID.c_str(), cfgCCDBDate.c_str());
1444-
TList* pidinfo = getCCDBInput(ccdb, cfgCCDBPathNamePID.c_str(), cfgCCDBDate.c_str());
1443+
if ((cfgCCDBDatePID.length() > 0) && (cfgCCDBPathNamePID.length() > 0) && !storedccdbinfo) {
1444+
LOGF(info, "Getting information for PID adjustment from %s, at %s", cfgCCDBPathNamePID.c_str(), cfgCCDBDatePID.c_str());
1445+
TList* pidinfo = getCCDBInput(ccdb, cfgCCDBPathNamePID.c_str(), cfgCCDBDatePID.c_str());
14451446
if (pidinfo != nullptr) {
14461447
pidselector.storePIDAdjustments(pidinfo);
14471448
}

PWGCF/TableProducer/dptDptFilter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,7 @@ inline float extractMultiplicity(CollisionObject const& collision, CentMultEstim
11631163
return collision.multFT0A();
11641164
break;
11651165
case CentMultFT0C:
1166-
return collision.multFT0M();
1166+
return collision.multFT0C();
11671167
break;
11681168
case CentMultNTPV:
11691169
return collision.multNTracksPV();

PWGCF/Tasks/dptDptCorrelations.cxx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ struct DptDptCorrelations {
909909
bool loadfromccdb = false;
910910
std::string cfgCCDBUrl{"http://ccdb-test.cern.ch:8080"};
911911
std::string cfgCCDBPathNameCorrections{""};
912-
std::string cfgCCDBDate{"20220307"};
912+
std::string cfgCCDBDateCorrections{"20220307"};
913913
std::string cfgCCDBSuffix{""};
914914

915915
/* pair conversion suppression defaults */
@@ -973,9 +973,9 @@ struct DptDptCorrelations {
973973
/* self configure the CCDB access to the input file */
974974
getTaskOptionValue(initContext, "dpt-dpt-filter", "cfgCCDB.url", cfgCCDBUrl, false);
975975
getTaskOptionValue(initContext, "dpt-dpt-filter", "cfgCCDB.pathNameCorrections", cfgCCDBPathNameCorrections, false);
976-
getTaskOptionValue(initContext, "dpt-dpt-filter", "cfgCCDB.date", cfgCCDBDate, false);
976+
getTaskOptionValue(initContext, "dpt-dpt-filter", "cfgCCDB.dateCorrections", cfgCCDBDateCorrections, false);
977977
getTaskOptionValue(initContext, "dpt-dpt-filter", "cfgCCDB.suffix", cfgCCDBSuffix, false);
978-
loadfromccdb = (cfgCCDBDate.length() > 0) && (cfgCCDBPathNameCorrections.length() > 0);
978+
loadfromccdb = (cfgCCDBDateCorrections.length() > 0) && (cfgCCDBPathNameCorrections.length() > 0);
979979

980980
/* update the potential binning change */
981981
etabinwidth = (etaup - etalow) / static_cast<float>(etabins);
@@ -1230,7 +1230,7 @@ struct DptDptCorrelations {
12301230

12311231
if (ccdblst == nullptr) {
12321232
if (loadfromccdb) {
1233-
ccdblst = getCCDBInput(ccdb, cfgCCDBPathNameCorrections.c_str(), cfgCCDBDate.c_str(), true, cfgCCDBSuffix);
1233+
ccdblst = getCCDBInput(ccdb, cfgCCDBPathNameCorrections.c_str(), cfgCCDBDateCorrections.c_str(), true, cfgCCDBSuffix);
12341234
}
12351235
}
12361236

@@ -1326,7 +1326,7 @@ struct DptDptCorrelations {
13261326

13271327
if (ccdblst == nullptr) {
13281328
if (loadfromccdb) {
1329-
ccdblst = getCCDBInput(ccdb, cfgCCDBPathNameCorrections.c_str(), cfgCCDBDate.c_str(), true, cfgCCDBSuffix);
1329+
ccdblst = getCCDBInput(ccdb, cfgCCDBPathNameCorrections.c_str(), cfgCCDBDateCorrections.c_str(), true, cfgCCDBSuffix);
13301330
}
13311331
}
13321332

0 commit comments

Comments
 (0)