ATLAS Offline Software
Loading...
Searching...
No Matches
TrigMonConfig.cxx File Reference
#include <algorithm>
#include <sstream>
#include "AthenaKernel/errorcheck.h"
#include "TrigMonitoringEvent/TrigMonConfig.h"
Include dependency graph for TrigMonConfig.cxx:

Go to the source code of this file.

Functions

void TrigMonConfig::processConfig ATLAS_NOT_THREAD_SAFE ()
 Install fatal handler with default options.

Function Documentation

◆ ATLAS_NOT_THREAD_SAFE()

void TrigMonConfig::processConfig ATLAS_NOT_THREAD_SAFE ( )
inline

Install fatal handler with default options.

This is meant to be easy to call from python via ctypes.

Definition at line 60 of file TrigMonConfig.cxx.

61{
62 //
63 // Sync TrigConfVar with global static vector in TrigConfVar.cxx file
64 //
65
66 // First, save global vector
67 const std::vector<TrigConfVar> var_vec = Trig::GetCurrentTrigConfVarVector();
68
69 // Add our own configuration
70 if(m_var_name.size() == m_var_id.size()) {
71 for(unsigned int i = 0; i < m_var_id.size(); ++i) {
72 Trig::ReserveVarId(m_var_name[i], m_var_id[i]);
73 }
74 }
75
76 // Save global data
77 for(unsigned int i = 0; i < var_vec.size(); ++i) {
78 if(std::find(m_var_name.begin(), m_var_name.end(), var_vec[i]) == m_var_name.end()) {
79 add<TrigConfVar>(var_vec[i]);
80 }
81 }
82}
bool add(const std::string &hname, TKey *tobj)
Definition fastadd.cxx:55