11#include <framework/dataobjects/BackgroundMetaData.h>
20 namespace background {
86 if (bgTag == 0)
return "";
88 if (bgTag == tag.second)
return tag.first;
98 std::string
getType(
unsigned int bgTag)
const
100 if (bgTag == 0)
return "";
102 if (bgTag == tag.second)
return tag.first;
115 if (tag.first !=
"other" && tag.second != 0) types += tag.first +
", ";
123 std::map<std::string, BackgroundMetaData::BG_TAG>
m_tags;
Class to define BG types and to convert between BG types and tags or v.v.
BeamBGTypes()
Constructor.
std::string getBGTypes() const
Return all defined BG types as a string.
std::string getType(BackgroundMetaData::BG_TAG bgTag) const
Return BG type for a given BG tag.
std::string getType(unsigned int bgTag) const
Return BG type for a given number.
std::map< std::string, BackgroundMetaData::BG_TAG > m_tags
a map of BG tags
BackgroundMetaData::BG_TAG getTag(const std::string &bgType)
Return BG tag for a given BG type.
Abstract base class for different kinds of events.