ATLAS Offline Software
Public Member Functions | Private Attributes | Friends | List of all members
Muon::NSW_PadTriggerSegment Class Reference

#include <NSW_PadTriggerSegment.h>

Collaboration diagram for Muon::NSW_PadTriggerSegment:

Public Member Functions

 NSW_PadTriggerSegment ()=default
 
 NSW_PadTriggerSegment (uint8_t bandID, uint8_t phiID, std::array< uint8_t, 2 > activeLayers)
 
uint8_t bandID () const noexcept
 
uint8_t phiID () const noexcept
 
const std::array< uint8_t, 2 > & activeLayers () const noexcept
 
std::string string () const
 

Private Attributes

uint8_t m_bandID {}
 
uint8_t m_phiID {}
 
std::array< uint8_t, 2 > m_activeLayers {}
 

Friends

class NSW_PadTriggerSegmentCnv_p1
 
MsgStream & operator<< (MsgStream &stream, const NSW_PadTriggerSegment &rhs)
 
std::ostream & operator<< (std::ostream &stream, const NSW_PadTriggerSegment &rhs)
 

Detailed Description

Definition at line 11 of file NSW_PadTriggerSegment.h.

Constructor & Destructor Documentation

◆ NSW_PadTriggerSegment() [1/2]

Muon::NSW_PadTriggerSegment::NSW_PadTriggerSegment ( )
default

◆ NSW_PadTriggerSegment() [2/2]

Muon::NSW_PadTriggerSegment::NSW_PadTriggerSegment ( uint8_t  bandID,
uint8_t  phiID,
std::array< uint8_t, 2 >  activeLayers 
)

Definition at line 4 of file NSW_PadTriggerSegment.cxx.

Member Function Documentation

◆ activeLayers()

const std::array< uint8_t, 2 > & Muon::NSW_PadTriggerSegment::activeLayers ( ) const
noexcept

Definition at line 15 of file NSW_PadTriggerSegment.cxx.

15  {
16  return m_activeLayers;
17 }

◆ bandID()

uint8_t Muon::NSW_PadTriggerSegment::bandID ( ) const
noexcept

Definition at line 7 of file NSW_PadTriggerSegment.cxx.

7  {
8  return m_bandID;
9 }

◆ phiID()

uint8_t Muon::NSW_PadTriggerSegment::phiID ( ) const
noexcept

Definition at line 11 of file NSW_PadTriggerSegment.cxx.

11  {
12  return m_phiID;
13 }

◆ string()

std::string Muon::NSW_PadTriggerSegment::string ( ) const

Definition at line 19 of file NSW_PadTriggerSegment.cxx.

19  {
20  std::stringstream sstream{};
21  sstream << "band ID: " << std::to_string(m_bandID) << ", phi ID: " << std::to_string(m_phiID)
22  << ", inner active layers: " << std::to_string(m_activeLayers[0]) << ", outer active layers: "
24  return sstream.str();
25 }

Friends And Related Function Documentation

◆ NSW_PadTriggerSegmentCnv_p1

friend class NSW_PadTriggerSegmentCnv_p1
friend

Definition at line 12 of file NSW_PadTriggerSegment.h.

◆ operator<< [1/2]

MsgStream& operator<< ( MsgStream &  stream,
const NSW_PadTriggerSegment rhs 
)
friend

Definition at line 27 of file NSW_PadTriggerSegment.cxx.

27  {
28  return stream << rhs.string();
29 }

◆ operator<< [2/2]

std::ostream& operator<< ( std::ostream &  stream,
const NSW_PadTriggerSegment rhs 
)
friend

Definition at line 31 of file NSW_PadTriggerSegment.cxx.

31  {
32  return stream << rhs.string();
33 }

Member Data Documentation

◆ m_activeLayers

std::array<uint8_t, 2> Muon::NSW_PadTriggerSegment::m_activeLayers {}
private

Definition at line 29 of file NSW_PadTriggerSegment.h.

◆ m_bandID

uint8_t Muon::NSW_PadTriggerSegment::m_bandID {}
private

Definition at line 26 of file NSW_PadTriggerSegment.h.

◆ m_phiID

uint8_t Muon::NSW_PadTriggerSegment::m_phiID {}
private

Definition at line 27 of file NSW_PadTriggerSegment.h.


The documentation for this class was generated from the following files:
Muon::NSW_PadTriggerSegment::m_phiID
uint8_t m_phiID
Definition: NSW_PadTriggerSegment.h:27
Muon::NSW_PadTriggerSegment::activeLayers
const std::array< uint8_t, 2 > & activeLayers() const noexcept
Definition: NSW_PadTriggerSegment.cxx:15
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
Muon::NSW_PadTriggerSegment::bandID
uint8_t bandID() const noexcept
Definition: NSW_PadTriggerSegment.cxx:7
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
Muon::NSW_PadTriggerSegment::m_activeLayers
std::array< uint8_t, 2 > m_activeLayers
Definition: NSW_PadTriggerSegment.h:29
Muon::NSW_PadTriggerSegment::phiID
uint8_t phiID() const noexcept
Definition: NSW_PadTriggerSegment.cxx:11
Muon::NSW_PadTriggerSegment::m_bandID
uint8_t m_bandID
Definition: NSW_PadTriggerSegment.h:26