ATLAS Offline Software
AliasStore.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 #include <iostream>
7 
8 void AliasStore::AddAlias(const std::string& tag,const std::string& alias)
9 {
10  if (this->find(tag)!=this->end())
11  {
12  std::cout<<"trying to set existing alias: old value kept"<<std::endl;
13  }
14  else
15  (*this)[tag]=alias;
16 }
17 
18 std::string AliasStore::Alias(const std::string& tag)
19 {
20  if (this->find(tag)!=this->end())
21  return (*this)[tag];
22  else
23  return tag;
24 }
25 
26 bool AliasStore::IsAliased(const std::string& tag)
27 {
28  if (this->find(tag)!=this->end())
29  return true;
30  return false;
31 }
AliasStore::AddAlias
void AddAlias(const std::string &, const std::string &)
Definition: AliasStore.cxx:8
AliasStore::Alias
std::string Alias(const std::string &)
Definition: AliasStore.cxx:18
find
std::string find(const std::string &s)
return a remapped string
Definition: hcg.cxx:135
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
AliasStore::IsAliased
bool IsAliased(const std::string &)
Definition: AliasStore.cxx:26
AliasStore.h
COOLRates.alias
alias
Definition: COOLRates.py:1172
CaloCondBlobAlgs_fillNoiseFromASCII.tag
string tag
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:24