ATLAS Offline Software
Loading...
Searching...
No Matches
TrigOperationalInfo.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3*/
4
5#pragma once
6#ifndef TRIGSTEERINGEVENT_TRIGOPERATIONALINFO_H
7#define TRIGSTEERINGEVENT_TRIGOPERATIONALINFO_H
8
9
10#include <map>
11#include <string>
12#include <vector>
13#include "GaudiKernel/MsgStream.h"
14
16// TrigOperationalInfoCollection is included at the end (required by Trigger EDM schema)
17
18//#include "TrigNavigation/Navigation.h"
26
28
29public:
31 TrigOperationalInfo(const std::vector<std::string>& keys,
32 const std::vector<float>& values);
33 unsigned int defined(const std::string& name) const;
34 float get(const std::string& name) const;
35 void set(const std::string& name, float value);
36 std::pair<std::vector<std::string>, std::vector<float> > infos() const;
37 const std::vector<std::string>& getKeys() const;
38 const std::vector<float>& getValues() const;
39 void updateAtLocation(unsigned int location, float value);
40
41private:
42 std::vector<std::string> m_infoName;
43 std::vector<float> m_infoValue;
44};
45
46
47
48std::string str( const TrigOperationalInfo& d ); //<! printing helper
49MsgStream& operator<< ( MsgStream& m, const TrigOperationalInfo& d ); //<! printing helper (wraps above)
50
51
53inline bool operator!= ( const TrigOperationalInfo& a, const TrigOperationalInfo& b ) { return !(a==b); }
54void diff( const TrigOperationalInfo& a, const TrigOperationalInfo& b, std::map<std::string, double>& variableChange ); //<! comparison with feedback (see: TrigRoiDescriptor)
55
56CLASS_DEF( TrigOperationalInfo , 242645981 , 1 )
57
58#include "TrigSteeringEvent/TrigOperationalInfoCollection.h"
59
60#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