ATLAS Offline Software
Loading...
Searching...
No Matches
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.
bool operator!= (const TubeLayer &other) const
 Inequality operator with another TubeLayer object.

Public Attributes

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

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!=()

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

Inequality operator with another TubeLayer object.

Definition at line 67 of file HedgehogBoard.h.

67 {
68 return tube != other.tube || layer != other.layer;
69 }
uint8_t tube
Tube number [1- 24/numTubeLayers()].
uint8_t layer
Layer number [1- numTubeLayers()].

◆ 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 }

◆ 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.

61{0};

◆ tube

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

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

Definition at line 59 of file HedgehogBoard.h.

59{0};

The documentation for this struct was generated from the following file: