ATLAS Offline Software
Loading...
Searching...
No Matches
TriggerRegistryTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5
7
8TriggerRegistryTool::TriggerRegistryTool( const std::string& type, const std::string& name, const IInterface* parent )
9 : base_class( type, name, parent )
10{
11}
12
13
17
18
19bool
20TriggerRegistryTool::registerTriggerSelector(const TString& name, const TString& regexpr, const std::list<TString>& trigpar)
21{
22 if (m_registry.find(name)!=m_registry.end()) {
23 ATH_MSG_WARNING ("registerTriggerSelector() :: trigger selector with name <" << name << "> already registered. Return false.");
24 return false;
25 }
26
27 ATH_MSG_DEBUG ("registerTriggerSelector() :: trigger selector with name <" << name << "> registered.");
28 m_registry[name] = tvtPair(regexpr,trigpar);
29 return true;
30}
31
#define ATH_MSG_WARNING(x)
#define ATH_MSG_DEBUG(x)
std::pair< TString, std::list< TString > > tvtPair
This file contains the class definition for the TriggerRegistryTool class.
std::map< TString, tvtPair > m_registry
TriggerRegistryTool(const std::string &, const std::string &, const IInterface *)
bool registerTriggerSelector(const TString &name, const TString &regexpr, const std::list< TString > &trigpar)
register trigger