ATLAS Offline Software
Public Member Functions | Public Attributes | Friends | List of all members
Muon::HedgehogBoard::TubeLayer Struct Reference

Helper struct to return a tube & tube layer pair. More...

#include <HedgehogBoard.h>

Collaboration diagram for Muon::HedgehogBoard::TubeLayer:

Public Member Functions

bool operator== (const TubeLayer &other) const
 Equality operator with another TubeLayer object. More...
 
bool operator!= (const TubeLayer &other) const
 Inequality operator with another TubeLayer object. More...
 

Public Attributes

uint8_t tube {0}
 Tube number [1- 24/numTubeLayers()]. More...
 
uint8_t layer {0}
 Layer number [1- numTubeLayers()]. More...
 

Friends

std::ostream & operator<< (std::ostream &ostr, const TubeLayer &tubeLay)
 

Detailed Description

Helper struct to return a tube & tube layer pair.

Definition at line 57 of file HedgehogBoard.h.

Member Function Documentation

◆ operator!=()

Inequality operator with another TubeLayer object.

Definition at line 67 of file HedgehogBoard.h.

67  {
68  return tube != other.tube || layer != other.layer;
69  }

◆ operator==()

bool Muon::HedgehogBoard::TubeLayer::operator== ( const TubeLayer other) const
inline

Equality operator with another TubeLayer object.

Definition at line 63 of file HedgehogBoard.h.

63  {
64  return tube == other.tube && layer == other.layer;
65  }

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  ostr,
const TubeLayer tubeLay 
)
friend

Definition at line 70 of file HedgehogBoard.h.

70  {
71  ostr<<"layer: "<<static_cast<int>(tubeLay.layer)
72  <<", tube: "<<static_cast<int>(tubeLay.tube);
73  return ostr;
74  }

Member Data Documentation

◆ layer

uint8_t Muon::HedgehogBoard::TubeLayer::layer {0}

Layer number [1- numTubeLayers()].

Definition at line 61 of file HedgehogBoard.h.

◆ tube

uint8_t Muon::HedgehogBoard::TubeLayer::tube {0}

Tube number [1- 24/numTubeLayers()].

Definition at line 59 of file HedgehogBoard.h.


The documentation for this struct was generated from the following file:
Muon::HedgehogBoard::TubeLayer::layer
uint8_t layer
Layer number [1- numTubeLayers()].
Definition: HedgehogBoard.h:61
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
Muon::HedgehogBoard::TubeLayer::tube
uint8_t tube
Tube number [1- 24/numTubeLayers()].
Definition: HedgehogBoard.h:59