Skip to content

Commit 47aa355

Browse files
committed
Add fully qualified names for std::string and std::map
The header TJAlienCredentials.h polluted the global namespace, included usually with CCDB or something related. See AliceO2Group/AliceO2#14524 This commit prepares for the removal of the polluted namespace. The libraries/repo with TJAlienCredentials is JAliEn-ROOT and libjalieno2. The problem was first noticed by @vkucera.
1 parent af81c8d commit 47aa355

File tree

18 files changed

+26
-26
lines changed

18 files changed

+26
-26
lines changed

Common/CCDB/ctpRateFetcher.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ void ctpRateFetcher::setupRun(int runNumber, o2::ccdb::BasicCCDBManager* ccdb, u
109109
delete mScalers;
110110
delete mLHCIFdata;
111111
}
112-
std::map<string, string> metadata;
112+
std::map<std::string, std::string> metadata;
113113
mLHCIFdata = ccdb->getSpecific<parameters::GRPLHCIFData>("GLO/Config/GRPLHCIF", timeStamp, metadata);
114114
if (mLHCIFdata == nullptr) {
115115
LOG(fatal) << "GRPLHCIFData not in database, timestamp:" << timeStamp;

Common/TableProducer/eventSelection.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1286,7 +1286,7 @@ struct LumiTask {
12861286
LOGP(warn, "Cross section for z={} + z={} @ {} GeV is not defined", beamZ1, beamZ2, sqrts);
12871287
}
12881288
// getting CTP config to extract lumi class indices (used for rate fetching and pileup correction)
1289-
std::map<string, string> metadata;
1289+
std::map<std::string, std::string> metadata;
12901290
metadata["runNumber"] = std::to_string(run);
12911291
auto config = ccdb->getSpecific<o2::ctp::CTPConfiguration>("CTP/Config/Config", ts, metadata);
12921292
auto classes = config->getCTPClasses();

Common/TableProducer/qVectorsTable.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ struct qVectorsTable {
149149
Produces<aod::QvectorBTotVecs> qVectorBTotVec;
150150
/////////////////////////////////////////////////////////////////
151151

152-
std::unordered_map<string, bool> useDetector = {
152+
std::unordered_map<std::string, bool> useDetector = {
153153
{"QvectorBTots", cfgUseBTot},
154154
{"QvectorBNegs", cfgUseBNeg},
155155
{"QvectorBPoss", cfgUseBPos},

Common/Tools/PID/handleParamTPCResponse.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ bool initOptionsAndParse(bpo::options_description& options, int argc, char* argv
4848
"paramMultNormalization", bpo::value<float>()->default_value(11000.), "Multiplicity Normalization")(
4949
"paramnClNormalization", bpo::value<float>()->default_value(152.), "Maximum nClusters for normalisation (159 for run 2, 152 for run 3)")(
5050
"useDefaultParam", bpo::value<bool>()->default_value(true), "Use default sigma parametrisation")(
51-
"mode", bpo::value<string>()->default_value(""), "Running mode ('read' from file, 'write' to file, 'pull' from CCDB, 'push' to CCDB)")(
51+
"mode", bpo::value<std::string>()->default_value(""), "Running mode ('read' from file, 'write' to file, 'pull' from CCDB, 'push' to CCDB)")(
5252
"help,h", "Produce help message.");
5353
setStandardOpt(options);
5454
try {

DPG/Tasks/AOTEvent/detectorOccupancyQa.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ struct DetectorOccupancyQaTask {
736736
int nCollInTimeWindowSelIfTOF = 0;
737737
double multFT0CmainCollision = 0.f;
738738
double multFT0CInTimeWindow = 0.f;
739-
map<int64_t, int32_t> mUniqueBC;
739+
std::map<int64_t, int32_t> mUniqueBC;
740740

741741
bool sel = col.selection_bit(kIsTriggerTVX);
742742

EventFiltering/PWGCF/CFFilterQA.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ struct CFFilterQA {
10331033

10341034
std::vector<double> setValuesBB(aod::BCsWithTimestamps::iterator const& bunchCrossing, const std::string ccdbPath)
10351035
{
1036-
map<string, string> metadata;
1036+
std::map<std::string, std::string> metadata;
10371037
auto h = ccdbApi.retrieveFromTFileAny<TH1F>(ccdbPath, metadata, bunchCrossing.timestamp());
10381038
// auto h = ccdb->getForTimeStamp<TH1F>(ccdbPath, bunchCrossing.timestamp()); //check if possible to use this without getting fatal
10391039
if (!h) {
@@ -1055,7 +1055,7 @@ struct CFFilterQA {
10551055

10561056
std::vector<double> setValuesAvg(aod::BCsWithTimestamps::iterator const& bunchCrossing, const std::string ccdbPath)
10571057
{
1058-
map<string, string> metadata;
1058+
std::map<std::string, std::string> metadata;
10591059
auto h = ccdbApi.retrieveFromTFileAny<TH1F>(ccdbPath, metadata, bunchCrossing.timestamp());
10601060
// auto h = ccdb->getForTimeStamp<TH1F>(ccdbPath, bunchCrossing.timestamp()); //check if possible to use this without getting fatal
10611061
if (!h) {

EventFiltering/PWGLF/filterf1proton.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ struct filterf1proton {
436436

437437
std::vector<double> setValuesBB(o2::ccdb::CcdbApi& ccdbApi, aod::BCsWithTimestamps::iterator const& bunchCrossing, const std::string ccdbPath)
438438
{
439-
map<string, string> metadata;
439+
std::map<std::string, std::string> metadata;
440440
auto h = ccdbApi.retrieveFromTFileAny<TH1F>(ccdbPath, metadata, bunchCrossing.timestamp());
441441
// auto h = ccdb->getForTimeStamp<TH1F>(ccdbPath, bunchCrossing.timestamp()); // check if possible to use this without getting fatal
442442
if (!h) {

PWGDQ/TableProducer/tableMaker.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,15 +191,15 @@ struct TableMaker {
191191

192192
struct : ConfigurableGroup {
193193
Configurable<bool> fConfigRunZorro{"cfgRunZorro", false, "Enable event selection with zorro"};
194-
Configurable<string> fConfigZorroTrigMask{"cfgZorroTriggerMask", "fDiMuon", "DQ Trigger masks: fSingleE,fLMeeIMR,fLMeeHMR,fDiElectron,fSingleMuLow,fSingleMuHigh,fDiMuon"};
194+
Configurable<std::string> fConfigZorroTrigMask{"cfgZorroTriggerMask", "fDiMuon", "DQ Trigger masks: fSingleE,fLMeeIMR,fLMeeHMR,fDiElectron,fSingleMuLow,fSingleMuHigh,fDiMuon"};
195195
Configurable<bool> fConfigRunZorroSel{"cfgRunZorroSel", false, "Select events with trigger mask"};
196196
Configurable<uint64_t> fBcTolerance{"cfgBcTolerance", 100, "Number of BCs of margin for software triggers"};
197197
} useZorro;
198198

199199
struct : ConfigurableGroup {
200-
Configurable<string> fConfigCcdbUrl{"useCCDBConfigurations.ccdb-url", "http://alice-ccdb.cern.ch", "url of the ccdb repository"};
201-
Configurable<string> fConfigCcdbPathTPC{"useCCDBConfigurations.ccdb-path-tpc", "Users/z/zhxiong/TPCPID/PostCalib", "base path to the ccdb object"};
202-
Configurable<string> fConfigCcdbPathZorro{"useCCDBConfigurations.ccdb-path-zorro", "/Users/m/mpuccio/EventFiltering/OTS/", "base path to the ccdb object for zorro"};
200+
Configurable<std::string> fConfigCcdbUrl{"useCCDBConfigurations.ccdb-url", "http://alice-ccdb.cern.ch", "url of the ccdb repository"};
201+
Configurable<std::string> fConfigCcdbPathTPC{"useCCDBConfigurations.ccdb-path-tpc", "Users/z/zhxiong/TPCPID/PostCalib", "base path to the ccdb object"};
202+
Configurable<std::string> fConfigCcdbPathZorro{"useCCDBConfigurations.ccdb-path-zorro", "/Users/m/mpuccio/EventFiltering/OTS/", "base path to the ccdb object for zorro"};
203203
} useCCDBConfigurations;
204204

205205
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"};

PWGDQ/TableProducer/tableMakerMC_withAssoc.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ struct TableMakerMC {
11121112
VarManager::SetupMuonMagField();
11131113
}
11141114
}
1115-
std::map<string, string> metadataRCT, header;
1115+
std::map<std::string, std::string> metadataRCT, header;
11161116
header = fCCDBApi.retrieveHeaders(Form("RCT/Info/RunInformation/%i", bcs.begin().runNumber()), metadataRCT, -1);
11171117
uint64_t sor = std::atol(header["SOR"].c_str());
11181118
uint64_t eor = std::atol(header["EOR"].c_str());

PWGDQ/TableProducer/tableMaker_withAssoc.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,9 @@ struct TableMaker {
225225

226226
// CCDB connection configurables
227227
struct : ConfigurableGroup {
228-
Configurable<string> fConfigCcdbUrl{"ccdb-url", "http://alice-ccdb.cern.ch", "url of the ccdb repository"};
229-
Configurable<string> fConfigCcdbPathTPC{"ccdb-path-tpc", "Users/z/zhxiong/TPCPID/PostCalib", "base path to the ccdb object"};
230-
Configurable<string> fConfigCcdbPathZorro{"ccdb-path-zorro", "/Users/m/mpuccio/EventFiltering/OTS/Chunked/", "base path to the ccdb object for zorro"};
228+
Configurable<std::string> fConfigCcdbUrl{"ccdb-url", "http://alice-ccdb.cern.ch", "url of the ccdb repository"};
229+
Configurable<std::string> fConfigCcdbPathTPC{"ccdb-path-tpc", "Users/z/zhxiong/TPCPID/PostCalib", "base path to the ccdb object"};
230+
Configurable<std::string> fConfigCcdbPathZorro{"ccdb-path-zorro", "/Users/m/mpuccio/EventFiltering/OTS/Chunked/", "base path to the ccdb object for zorro"};
231231
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"};
232232
Configurable<std::string> fConfigGeoPath{"geoPath", "GLO/Config/GeometryAligned", "Path of the geometry file"};
233233
Configurable<std::string> fConfigGrpMagPath{"grpmagPath", "GLO/Config/GRPMagField", "CCDB path of the GRPMagField object"};
@@ -1317,7 +1317,7 @@ struct TableMaker {
13171317
VarManager::SetupMuonMagField();
13181318
}
13191319
}
1320-
std::map<string, string> metadataRCT, header;
1320+
std::map<std::string, std::string> metadataRCT, header;
13211321
header = fCCDBApi.retrieveHeaders(Form("RCT/Info/RunInformation/%i", bcs.begin().runNumber()), metadataRCT, -1);
13221322
uint64_t sor = std::atol(header["SOR"].c_str());
13231323
uint64_t eor = std::atol(header["EOR"].c_str());

0 commit comments

Comments
 (0)