10#include "HltDataTypes/EventType.h"
40 if(m_bit_mask.size() <= type_code) m_bit_mask.resize(type_code + 1,
false);
41 m_bit_mask[type_code] =
true;
60 for (
unsigned int i = 0; i < pairs.size(); ++i) {
62 m_user_type += pairs[i].first;
64 m_user_type += pairs[i].second;
72 if (m_bit_mask.size() <= type_code)
return false;
73 return m_bit_mask[type_code];
80 std::string::size_type beg = m_user_type.find(sep);
82 if (beg != std::string::npos) {
100 std::string::size_type beg = m_user_type.find(sep);
102 if (beg != std::string::npos) {
103 std::string::size_type end1 = m_user_type.find(sep, beg+1);
104 if (end1 != std::string::npos) {
105 std::string::size_type end2 = m_user_type.find(sep, end1+1);
106 if (end2 != std::string::npos) {
108 std::string first = m_user_type.substr(beg+1, end1-beg-1);
109 std::string second = m_user_type.substr(end1+1, end2-end1-1);
117 std::string first = m_user_type.substr(beg+1, end1-beg-1);
118 std::string second = m_user_type.substr(end1+1, m_user_type.size()-1);
137 return m_bit_mask.begin();
143 return m_bit_mask.end();
void get_detdescr_tags(NameTagPairVec &pairs)
std::vector< NameTagPair > NameTagPairVec
BitMask::size_type EventTypeCode
void set_detdescr_tags(const NameTagPairVec &pairs)
std::pair< std::string, std::string > NameTagPair
void set_user_type(const std::string &user_type)
const std::string & user_type(void) const
BitMaskIterator bit_mask_end(void) const
static const EventTypeCode IS_TESTBEAM
BitMask::const_iterator BitMaskIterator
BitMaskIterator bit_mask_begin(void) const
void add_type(EventTypeCode type_code)
bool test(EventTypeCode type_code) const
static const EventTypeCode IS_CALIBRATION
static const EventTypeCode IS_SIMULATION