ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
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. More...
 
const_iterator begin () const
 Iterator to the start of the leg infos. More...
 
const_iterator end () const
 Iterator to the end of the leg infos. More...
 
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. More...
 

Private Attributes

std::string m_chain
 

Detailed Description

Helper class that provides access to information about individual legs.

Definition at line 82 of file ChainNameParser.h.

Member Typedef Documentation

◆ const_iterator

Definition at line 84 of file ChainNameParser.h.

Constructor & Destructor Documentation

◆ HLTChainInfo()

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

Definition at line 86 of file ChainNameParser.h.

86 : m_chain(chain) {}

Member Function Documentation

◆ begin()

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

Iterator to the start of the leg infos.

Definition at line 92 of file ChainNameParser.h.

92 { return LegInfoIterator(m_chain); }

◆ chain()

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

The chain.

Definition at line 89 of file ChainNameParser.h.

89 { return m_chain; }

◆ end()

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

Iterator to the end of the leg infos.

Definition at line 94 of file ChainNameParser.h.

94 { 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 179 of file ChainNameParser.cxx.

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

Member Data Documentation

◆ m_chain

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

Definition at line 99 of file ChainNameParser.h.


The documentation for this class was generated from the following files:
ChainNameParser::HLTChainInfo::chain
const std::string & chain() const
The chain.
Definition: ChainNameParser.h:89
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
ChainNameParser::HLTChainInfo::m_chain
std::string m_chain
Definition: ChainNameParser.h:99