67 const std::vector<TrigConfVar> var_vec = Trig::GetCurrentTrigConfVarVector();
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]);
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()) {
135 for(
unsigned int i = 0; i <
m_pair_key.size(); ++i) {
155 for(
unsigned int i = 0; i <
m_pair_key.size(); ++i) {
173 const std::vector<TrigConfChain>::const_iterator fit = std::find(
m_chain.begin(),
176 return fit ->
getId();
180 <<
"getId - failed to find chain: " << name;
183 }
else if(key ==
"SEQ") {
184 const std::vector<TrigConfSeq>::const_iterator fit = std::find(
m_seq.begin(),
m_seq.end(), name);
185 if(fit !=
m_seq.end()) {
186 return fit ->
getId();
190 <<
"getId - failed to find sequence: " << name;
193 }
else if(key.find(
"ALG") != std::string::npos) {
195 for(
unsigned int i = 0; i <
m_seq.size(); ++i) {
197 const std::vector<TrigConfAlg> &avec = seq.getAlg();
200 for(
unsigned int j = 0; j < avec.size(); ++j) {
202 if(alg.getName() == name)
return alg.getNameId();
206 <<
"getId - ERROR! Failed to find algorithm: " << name <<
", " << key;
210 <<
"getId - ERROR! Failed to match: " << name <<
", " << key;
222 const std::vector<TrigConfChain>::const_iterator fit = std::find(
m_chain.begin(),
229 <<
"getEncoded - failed to find chain: " << name;
234 <<
"getEncoded(" << name <<
", " << key <<
") - no match found";
246 const std::vector<TrigConfChain>::const_iterator fit = std::find(
m_chain.begin(),
253 <<
"getId - failed to find chain: " << id;
256 }
else if(key ==
"SEQ") {
257 const std::vector<TrigConfSeq>::const_iterator fit = std::find(
m_seq.begin(),
m_seq.end(),
id);
258 if(fit !=
m_seq.end()) {
263 <<
"getId - failed to find sequence: " << id;
266 }
else if(key.find(
"ALG") != std::string::npos){
268 for(
unsigned int i = 0; i <
m_seq.size(); ++i) {
270 const std::vector<TrigConfAlg> &avec = seq.getAlg();
273 for(
unsigned int j = 0; j < avec.size(); ++j) {
276 if(alg.getNameId() ==
id)
return alg.getName();
280 <<
"getId - failed to find algorithm: " << id;
285 <<
"getId - failed to match: " <<
id <<
", " << key;
296 std::vector<TrigConfVar> var;
304 for(
unsigned int i = 0; i <
m_var_name.size(); ++i) {
Helpers for checking error return status codes and reporting errors.
#define REPORT_MESSAGE_WITH_CONTEXT(LVL, CONTEXT_NAME)
Report a message, with an explicitly specified context name.
void TrigMonConfig::processConfig ATLAS_NOT_THREAD_SAFE()
Install fatal handler with default options.
std::vector< std::string > m_pair_key
std::vector< TrigConfChain > m_chain
std::vector< TrigConfSeq > m_seq
bool keyExists(const std::string &key) const
std::vector< uint32_t > m_var_id
std::vector< std::string > m_var_name
bool readValue(const std::string &key, std::string &val) const
void addValue(const std::string &key, const std::string &val)
void setEventID(uint32_t event, uint32_t lumi, uint32_t run, uint32_t sec, uint32_t nsec)
std::vector< std::string > m_pair_val
const std::string getName(uint32_t id, const std::string &key) const
void setTriggerKeys(uint32_t master_key, uint32_t lv1_ps_key, uint32_t hlt_ps_key)
uint32_t getId(const std::string &name, const std::string &key) const
const std::vector< TrigConfVar > getConfVar() const
uint16_t getEncodedId(const std::string &name, const std::string &key) const
bool add(const std::string &hname, TKey *tobj)