Skip to content

Commit 9fe0d97

Browse files
authored
ITS DCS parser: added configurable url to retrieve RCT headers (#11978)
* added configurable url to retrieve RCT headers * default ccdb to o2 ccdb internal
1 parent 1674604 commit 9fe0d97

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

Detectors/ITSMFT/ITS/workflow/include/ITSWorkflow/DCSParserSpec.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ class ITSDCSParser : public Task
142142

143143
// ITS Map
144144
o2::itsmft::ChipMappingITS mp;
145+
146+
// CCDB url for RCT headers
147+
std::string mCcdbUrlRct = "http://o2-ccdb.internal";
145148
};
146149

147150
// Create a processor spec

Detectors/ITSMFT/ITS/workflow/src/DCSParserSpec.cxx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ void ITSDCSParser::init(InitContext& ic)
3636

3737
this->mCcdbUrl = ic.options().get<std::string>("ccdb-url");
3838

39+
this->mCcdbUrlRct = ic.options().get<std::string>("ccdb-url-rct");
40+
3941
this->mVerboseOutput = ic.options().get<bool>("verbose");
4042

4143
return;
@@ -469,7 +471,7 @@ void ITSDCSParser::pushToCCDB(ProcessingContext& pc)
469471
long tstart = 0, tend = 0;
470472
// retireve run start/stop times from CCDB
471473
o2::ccdb::CcdbApi api;
472-
api.init("http://alice-ccdb.cern.ch");
474+
api.init(mCcdbUrlRct);
473475
// Initialize empty metadata object for search
474476
std::map<std::string, std::string> metadata;
475477
std::map<std::string, std::string> headers = api.retrieveHeaders(
@@ -582,7 +584,9 @@ void ITSDCSParser::appendDeadChipObj()
582584

583585
unsigned short int globchipID = getGlobalChipID(hicPos, hS, chipInMod);
584586
this->mDeadMap.maskFullChip(globchipID);
585-
LOG(info) << "Masking dead chip " << globchipID;
587+
if (mVerboseOutput) {
588+
LOG(info) << "Masking dead chip " << globchipID;
589+
}
586590
}
587591
}
588592

@@ -660,7 +664,8 @@ DataProcessorSpec getITSDCSParserSpec()
660664
AlgorithmSpec{adaptFromTask<o2::its::ITSDCSParser>()},
661665
Options{
662666
{"verbose", VariantType::Bool, false, {"Use verbose output mode"}},
663-
{"ccdb-url", VariantType::String, "", {"CCDB url, default is empty (i.e. send output to CCDB populator workflow)"}}}};
667+
{"ccdb-url", VariantType::String, "", {"CCDB url, default is empty (i.e. send output to CCDB populator workflow)"}},
668+
{"ccdb-url-rct", VariantType::String, "", {"CCDB url from where to get RCT object for headers, default is o2-ccdb.internal. Use http://alice-ccdb.cern.ch for local tests"}}}};
664669
}
665670
} // namespace its
666671
} // namespace o2

0 commit comments

Comments
 (0)