ATLAS Offline Software
Loading...
Searching...
No Matches
ChainNameParser::HLTChainInfo Class Reference

Helper class that provides access to information about individual legs. More...

#include <ChainNameParser.h>

Collaboration diagram for ChainNameParser::HLTChainInfo:

Public Types

using const_iterator = LegInfoIterator

Public Member Functions

 HLTChainInfo (const std::string &chain)
const std::string & chain () const
 The chain.
const_iterator begin () const
 Iterator to the start of the leg infos.
const_iterator end () const
 Iterator to the end of the leg infos.
std::string l1Item () const
 Read the L1 item from the chain. Returns the empty string if the L1 item isn't in the chain name.

Private Attributes

std::string m_chain

Detailed Description

Helper class that provides access to information about individual legs.

Definition at line 83 of file ChainNameParser.h.

Member Typedef Documentation

◆ const_iterator

Constructor & Destructor Documentation

◆ HLTChainInfo()

ChainNameParser::HLTChainInfo::HLTChainInfo ( const std::string & chain)
inline

Definition at line 87 of file ChainNameParser.h.

87: m_chain(chain) {}
const std::string & chain() const
The chain.

Member Function Documentation

◆ begin()

const_iterator ChainNameParser::HLTChainInfo::begin ( ) const
inline

Iterator to the start of the leg infos.

Definition at line 93 of file ChainNameParser.h.

93{ return LegInfoIterator(m_chain); }

◆ chain()

const std::string & ChainNameParser::HLTChainInfo::chain ( ) const
inline

The chain.

Definition at line 90 of file ChainNameParser.h.

90{ return m_chain; }

◆ end()

const_iterator ChainNameParser::HLTChainInfo::end ( ) const
inline

Iterator to the end of the leg infos.

Definition at line 95 of file ChainNameParser.h.

95{ return LegInfoIterator(); }

◆ l1Item()

std::string ChainNameParser::HLTChainInfo::l1Item ( ) const

Read the L1 item from the chain. Returns the empty string if the L1 item isn't in the chain name.

Definition at line 182 of file ChainNameParser.cxx.

183 {
184 std::size_t pos = m_chain.rfind("_L1");
185 if (pos == std::string::npos)
186 return "";
187 else
188 return "L1_" + m_chain.substr(pos+3);
189 }

Member Data Documentation

◆ m_chain

std::string ChainNameParser::HLTChainInfo::m_chain
private

Definition at line 100 of file ChainNameParser.h.


The documentation for this class was generated from the following files: