15 const std::vector<float>& values)
26 std::vector<std::string>::const_iterator it;
59 std::pair<std::vector<std::string>, std::vector<float> > quantities = d.infos();
60 std::vector<std::string>::const_iterator keyIt = quantities.first.begin();
61 std::vector<float>::const_iterator valueIt = quantities.second.begin();
62 for (
unsigned int i = 0; i < quantities.first.size(); i++ ) {
63 ss <<
" " << *keyIt <<
": " << *valueIt;
78 std::pair<std::vector<std::string>, std::vector<float> > a_infos =
a.infos();
79 std::pair<std::vector<std::string>, std::vector<float> > b_infos = b.infos();
80 if ( a_infos.first.size() != b_infos.first.size())
82 if ( ! (a_infos.first == b_infos.first))
85 if ( ! (a_infos.second == b_infos.second))
91 std::pair<std::vector<std::string>, std::vector<float> > a_infos =
a.infos();
92 std::pair<std::vector<std::string>, std::vector<float> > b_infos = b.infos();
94 if ( a_infos.first.size() != b_infos.first.size())
95 variableChange[
"size"] = a_infos.first.size() - b_infos.first.size();
97 std::vector<std::string>::const_iterator a_keyIt = a_infos.first.begin();
98 std::vector<float>::const_iterator a_valueIt = a_infos.second.begin();
99 for (
unsigned i = 0; i < a_infos.first.size(); i++ ) {
100 if ( b.defined(*a_keyIt) ) {
101 float b_val = b.get(*a_keyIt);
102 variableChange[*a_keyIt] = *a_valueIt - b_val;
104 variableChange[*a_keyIt+
"_abs"] = *a_valueIt;
bool operator==(const TrigOperationalInfo &a, const TrigOperationalInfo &b)
MsgStream & operator<<(MsgStream &m, const TrigOperationalInfo &d)
void diff(const TrigOperationalInfo &a, const TrigOperationalInfo &b, std::map< std::string, double > &variableChange)
This class defined generic object to store operational info available during triggering online i....
const std::vector< std::string > & getKeys() const
std::pair< std::vector< std::string >, std::vector< float > > infos() const
void updateAtLocation(unsigned int location, float value)
const std::vector< float > & getValues() const
float get(const std::string &name) const
std::vector< std::string > m_infoName
void set(const std::string &name, float value)
unsigned int defined(const std::string &name) const
std::vector< float > m_infoValue
std::string find(const std::string &s)
return a remapped string
int count(std::string s, const std::string ®x)
count how many occurances of a regx are in a string