28 static const std::set<std::string> knownPrefixes{
"L1",
"L2",
"EF",
"HLT"};
30 std::size_t location = varname.find(
'_');
31 if (location == std::string::npos)
return VT_UNK;
32 std::string prefix(varname.begin(), varname.begin()+location);
34 if (std::find(knownPrefixes.begin(), knownPrefixes.end(), prefix) != knownPrefixes.end())
return VT_INT;
41 if ( varname ==
"" )
return(0);
50 throw std::runtime_error(
"Trigger decision can't be a double: check " + varname);
55 throw std::runtime_error(
"Trigger decision can't be vector<int>: check " + varname);
60 throw std::runtime_error(
"Trigger decision can't be vector<double>: check " + varname);
virtual std::vector< int > loadVecIntVariableFromString(const std::string &varname) const
virtual int loadIntVariableFromString(const std::string &varname) const
virtual ~TriggerDecisionProxyLoader()
virtual std::vector< double > loadVecDoubleVariableFromString(const std::string &varname) const
virtual double loadDoubleVariableFromString(const std::string &varname) const
ToolHandle< Trig::TrigDecisionTool > m_trigDec
virtual IProxyLoader::VariableType variableTypeFromString(const std::string &varname) const
Namespace holding all the expression evaluation code.