Skip to content

Commit 51dc0f1

Browse files
Adding configurable for ccdb path for zorro (#6889)
Co-authored-by: Lucamicheletti93 <luca.mike93@gmail.com>
1 parent ab297f2 commit 51dc0f1

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

PWGDQ/TableProducer/tableMaker.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ struct TableMaker {
188188
Configurable<bool> fConfigRunZorro{"cfgRunZorro", false, "Enable event selection with zorro [WARNING: under debug, do not enable!]"};
189189
Configurable<string> fConfigCcdbUrl{"ccdb-url", "http://alice-ccdb.cern.ch", "url of the ccdb repository"};
190190
Configurable<string> fConfigCcdbPathTPC{"ccdb-path-tpc", "Users/z/zhxiong/TPCPID/PostCalib", "base path to the ccdb object"};
191+
Configurable<string> fConfigCcdbPathZorro{"ccdb-path-zorro", "Users/r/rlietava/EventFiltering/OTS/", "base path to the ccdb object for zorro"};
191192
Configurable<int64_t> fConfigNoLaterThan{"ccdb-no-later-than", std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count(), "latest acceptable timestamp of creation for the object"};
192193
Configurable<bool> fConfigComputeTPCpostCalib{"cfgTPCpostCalib", false, "If true, compute TPC post-calibrated n-sigmas(electrons, pions, protons)"};
193194
Configurable<bool> fConfigComputeTPCpostCalibKaon{"cfgTPCpostCalibKaon", false, "If true, compute TPC post-calibrated n-sigmas for kaons"};
@@ -423,6 +424,7 @@ struct TableMaker {
423424

424425
if (fConfigRunZorro) {
425426
for (int i = 0; i < kNTriggersDQ; ++i) {
427+
zorro.setBaseCCDBPath(fConfigCcdbPathZorro.value);
426428
zorro.initCCDB(fCCDB.service, fCurrentRun, bc.timestamp(), zorroTriggerMask[i]);
427429
if (!zorro.isSelected(bc.globalBC())) {
428430
tag |= static_cast<uint64_t>(1 << i);
@@ -871,6 +873,7 @@ struct TableMaker {
871873

872874
if (fConfigRunZorro) {
873875
for (int i = 0; i < kNTriggersDQ; ++i) {
876+
zorro.setBaseCCDBPath(fConfigCcdbPathZorro.value);
874877
zorro.initCCDB(fCCDB.service, fCurrentRun, bc.timestamp(), zorroTriggerMask[i]);
875878
if (!zorro.isSelected(bc.globalBC())) {
876879
tag |= static_cast<uint64_t>(1 << i);

PWGDQ/TableProducer/tableMaker_withAssoc.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ struct TableMaker {
198198
// CCDB connection configurables
199199
Configurable<string> fConfigCcdbUrl{"ccdb-url", "http://alice-ccdb.cern.ch", "url of the ccdb repository"};
200200
Configurable<string> fConfigCcdbPathTPC{"ccdb-path-tpc", "Users/z/zhxiong/TPCPID/PostCalib", "base path to the ccdb object"};
201+
Configurable<string> fConfigCcdbPathZorro{"ccdb-path-zorro", "Users/r/rlietava/EventFiltering/OTS/", "base path to the ccdb object for zorro"};
201202
Configurable<int64_t> fConfigNoLaterThan{"ccdb-no-later-than", std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count(), "latest acceptable timestamp of creation for the object"};
202203
Configurable<std::string> geoPath{"geoPath", "GLO/Config/GeometryAligned", "Path of the geometry file"};
203204
Configurable<std::string> grpmagPath{"grpmagPath", "GLO/Config/GRPMagField", "CCDB path of the GRPMagField object"};
@@ -520,6 +521,7 @@ struct TableMaker {
520521

521522
if (fConfigRunZorro) {
522523
for (int i = 0; i < kNTriggersDQ; ++i) {
524+
zorro.setBaseCCDBPath(fConfigCcdbPathZorro.value);
523525
zorro.initCCDB(fCCDB.service, fCurrentRun, bc.timestamp(), zorroTriggerMask[i]);
524526
if (!zorro.isSelected(bc.globalBC())) {
525527
tag |= static_cast<uint64_t>(1 << i);

0 commit comments

Comments
 (0)