ATLAS Offline Software
Loading...
Searching...
No Matches
TrigOperationalInfo.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRIGSTEERINGEVENT_TRIGOPERATIONALINFO_H
6#define TRIGSTEERINGEVENT_TRIGOPERATIONALINFO_H
7
8
9#include <map>
10#include <string>
11#include <vector>
12
14
15class MsgStream;
16
24
26
27public:
29 TrigOperationalInfo(const std::vector<std::string>& keys,
30 const std::vector<float>& values);
31 unsigned int defined(const std::string& name) const;
32 float get(const std::string& name) const;
33 void set(const std::string& name, float value);
34 std::pair<std::vector<std::string>, std::vector<float> > infos() const;
35 const std::vector<std::string>& getKeys() const;
36 const std::vector<float>& getValues() const;
37 void updateAtLocation(unsigned int location, float value);
38
39private:
40 std::vector<std::string> m_infoName;
41 std::vector<float> m_infoValue;
42};
43
44
45
46std::string str( const TrigOperationalInfo& d ); //<! printing helper
47MsgStream& operator<< ( MsgStream& m, const TrigOperationalInfo& d ); //<! printing helper (wraps above)
48
49
51inline bool operator!= ( const TrigOperationalInfo& a, const TrigOperationalInfo& b ) { return !(a==b); }
52void diff( const TrigOperationalInfo& a, const TrigOperationalInfo& b, std::map<std::string, double>& variableChange ); //<! comparison with feedback (see: TrigRoiDescriptor)
53
54CLASS_DEF( TrigOperationalInfo , 242645981 , 1 )
55
56
57#endif
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
static Double_t a
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)
bool operator!=(const TrigOperationalInfo &a, const TrigOperationalInfo &b)
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