CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
mtd_digitizer::MTDCellId Struct Reference

#include <MTDDigitizerTypes.h>

Public Member Functions

 MTDCellId ()
 
 MTDCellId (const DetId &id)
 
 MTDCellId (const DetId &id, uint8_t row, uint8_t col)
 
bool operator== (const MTDCellId &eq) const
 

Public Attributes

const uint8_t column_
 
const uint32_t detid_
 
const uint8_t row_
 

Detailed Description

Definition at line 26 of file MTDDigitizerTypes.h.

Constructor & Destructor Documentation

◆ MTDCellId() [1/3]

mtd_digitizer::MTDCellId::MTDCellId ( )
inline

Definition at line 27 of file MTDDigitizerTypes.h.

27 : detid_(0), row_(0), column_(0) {}

◆ MTDCellId() [2/3]

mtd_digitizer::MTDCellId::MTDCellId ( const DetId id)
inline

Definition at line 30 of file MTDDigitizerTypes.h.

30 : detid_(id.rawId()), row_(0), column_(0) {}

◆ MTDCellId() [3/3]

mtd_digitizer::MTDCellId::MTDCellId ( const DetId id,
uint8_t  row,
uint8_t  col 
)
inline

Definition at line 31 of file MTDDigitizerTypes.h.

31 : detid_(id.rawId()), row_(row), column_(col) {}

Member Function Documentation

◆ operator==()

bool mtd_digitizer::MTDCellId::operator== ( const MTDCellId eq) const
inline

Definition at line 32 of file MTDDigitizerTypes.h.

32  {
33  return (detid_ == eq.detid_) && (row_ == eq.row_) && (column_ == eq.column_);
34  }

References column_, detid_, and row_.

Member Data Documentation

◆ column_

const uint8_t mtd_digitizer::MTDCellId::column_

Definition at line 29 of file MTDDigitizerTypes.h.

Referenced by operator==().

◆ detid_

const uint32_t mtd_digitizer::MTDCellId::detid_

Definition at line 28 of file MTDDigitizerTypes.h.

Referenced by operator==().

◆ row_

const uint8_t mtd_digitizer::MTDCellId::row_

Definition at line 29 of file MTDDigitizerTypes.h.

Referenced by operator==().

cuy.col
col
Definition: cuy.py:1009
mtd_digitizer::MTDCellId::row_
const uint8_t row_
Definition: MTDDigitizerTypes.h:29
mtd_digitizer::MTDCellId::column_
const uint8_t column_
Definition: MTDDigitizerTypes.h:29
mtd_digitizer::MTDCellId::detid_
const uint32_t detid_
Definition: MTDDigitizerTypes.h:28