24 std::vector<std::string>
25 split(
const std::string& line) {
26 std::vector<std::string>
res;
27 std::string::size_type old_pos = 0, pos = line.find(
',',0);
28 while( pos != std::string::npos ) {
29 res.push_back(line.substr(old_pos,pos-old_pos));
31 pos = line.find(
',', old_pos);
34 if (old_pos < line.size())
35 res.push_back(line.substr(old_pos,line.size()-old_pos));
41std::vector< std::string >
43 std::string temp(triggerNames);
44 std::string::size_type pos;
46 while ((pos = temp.find_first_of(
' ')) != std::string::npos)
52std::vector< std::string >
54 std::vector< std::string > v;
55 v.assign(triggerNames.begin(),triggerNames.end());
std::pair< std::vector< unsigned int >, bool > res
TriggerElement is the basic ingreedient of the interface between HLT algorithms and the navigation It...
te_id_type getId() const
reset internals.
static bool getLabel(unsigned int id, std::string &label)
find name from ID in the map m_IdToLabel
std::vector< std::string > split(const std::string &line)
std::vector< std::string > convertStringToVector(const std::string &triggerNames)
makes a split of list of chains into the vector of chains
std::string getTEName(const HLT::TriggerElement &te)
converts TEid to TE name (this may not always work, it depends on the availability of config)
std::vector< std::string > keyWrap(const std::vector< std::string > &triggerNames)
normalizes the list of triggers (patterns) by sorting and uniquing them
DataModel_detail::iterator< DVL > unique(typename DataModel_detail::iterator< DVL > beg, typename DataModel_detail::iterator< DVL > end)
Specialization of unique for DataVector/List.
void sort(typename DataModel_detail::iterator< DVL > beg, typename DataModel_detail::iterator< DVL > end)
Specialization of sort for DataVector/List.