![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
14 #include "GaudiKernel/MsgStream.h"
37 TagInfo::NameTagPairVec::const_iterator
42 TagInfo::NameTagPairVec::const_iterator
it = std::lower_bound(
tags.begin(),
tags.end(),pair);
55 const auto &
it = findTagIt(
name, thisVec);
64 if (
it != thisVec.end()) {
68 it->second = pair.second;
75 thisVec.push_back(pair);
76 std::sort(thisVec.begin(), thisVec.end());
81 return std::string(
" ") + pair.first +
" " + pair.second;
149 for (NameTagPairVec::const_iterator
i = this->
m_tags.begin(), j = rhs.
m_tags.begin();
150 i != this->m_tags.end(); ++
i, ++j) {
151 if (
i->first != j->first) {
152 return(
i->first < j->first);
154 if (
i->second != j->second) {
155 return(
i->second < j->second);
162 i != this->m_inputTags.end(); ++
i, ++j) {
163 if (
i->first != j->first) {
164 return(
i->first < j->first);
166 if (
i->second != j->second) {
167 return(
i->second < j->second);
177 return addTagImpl(pair,
m_tags,
override)? (StatusCode::SUCCESS): (StatusCode::FAILURE);
183 return addTagImpl(pair,
m_inputTags,
override)? (StatusCode::SUCCESS): (StatusCode::FAILURE);
196 for (
const auto &thisPair :
m_tags) {
209 m+=
"TagInfo tag: " +
m_myTag +
"\n";
210 m+=
"Current tags: \n";
211 for (
const auto &thisPair :
m_tags) {
212 m+= formatTagPair(thisPair) +
"\n";
214 m+=
"Input tags: \n";
216 m += formatTagPair(thisPair) +
"\n";
JetConstituentVector::iterator iterator
NameTagPairVec getInputTags() const
Return a vector with all current input tags.
StatusCode addTag(const NameTagPair &pair, bool override=false)
addTag for current tags - returns failure if tag name exists and override == false
void findInputTag(const std::string &name, std::string &tag) const
Find tag by its name - for input tags, return in the reference argument.
std::vector< NameTagPair > NameTagPairVec
StatusCode addInputTag(const NameTagPair &pair, bool override=false)
addInputTag for input tags - returns failure if tag name exists and override == false
void printTags(MsgStream &log) const
Printout method:
std::string str() const
String representation.
bool operator<(const TagInfo &rhs) const
Less than comparision needed to create e.g. set<TagInfo>
std::vector< std::string > tags
std::pair< std::string, std::string > NameTagPair
This class contains the list of currently valid tags for detector description - GeoModel and IOV/Cond...
::StatusCode StatusCode
StatusCode definition for legacy code.
void setTagInfoTag(const std::string &tag)
set the tag for the TagInfo object itself
NameTagPairVec m_inputTags
This class contains the list of currently valid tags for detector description - GeoModel and IOV/Cond...
void sort(typename std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, typename std::reverse_iterator< DataModel_detail::iterator< DVL > > end, const Compare &comp)
Specialization of sort for DataVector/List.
std::string tagInfoTag() const
The tag of the TagInfo object.
void findTag(const std::string &name, std::string &tag) const
Find tag by its name - for current tags, returning in the reference argument.
NameTagPairVec getTags() const
Return a vector with all current tags.