CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
DTBtiId Class Reference

#include <DTBtiId.h>

Public Member Functions

int bti () const
 Returns the bti. More...
 
 DTBtiId ()
 Constructor. More...
 
 DTBtiId (const DTBtiId &btiId)
 Constructor. More...
 
 DTBtiId (const DTChamberId &mu_stat_id, const int superlayer_id, const int bti_id)
 Constructor. More...
 
 DTBtiId (const DTSuperLayerId &mu_superlayer_id, const int bti_id)
 Constructor. More...
 
 DTBtiId (const int wheel_id, const int station_id, const int sector_id, const int superlayer_id, const int bti_id)
 Constructor. More...
 
bool operator< (const DTBtiId &id) const
 
bool operator== (const DTBtiId &id) const
 
int sector () const
 Returns sector number. More...
 
DTSuperLayerId SLId () const
 Returns the superlayer id. More...
 
int station () const
 Returns station number. More...
 
int superlayer () const
 Returns the superlayer. More...
 
int wheel () const
 Returns wheel number. More...
 
virtual ~DTBtiId ()
 Destructor. More...
 

Private Attributes

int _bti
 
DTSuperLayerId _suplId
 

Detailed Description

BTI Identifier

Author
C.Grandi

Definition at line 32 of file DTBtiId.h.

Constructor & Destructor Documentation

◆ DTBtiId() [1/5]

DTBtiId::DTBtiId ( )
inline

Constructor.

Definition at line 35 of file DTBtiId.h.

35 : _bti(0) {}

◆ DTBtiId() [2/5]

DTBtiId::DTBtiId ( const DTSuperLayerId mu_superlayer_id,
const int  bti_id 
)
inline

Constructor.

Definition at line 38 of file DTBtiId.h.

38 : _suplId(mu_superlayer_id), _bti(bti_id) {}

◆ DTBtiId() [3/5]

DTBtiId::DTBtiId ( const DTChamberId mu_stat_id,
const int  superlayer_id,
const int  bti_id 
)
inline

Constructor.

Definition at line 41 of file DTBtiId.h.

42  : _suplId(mu_stat_id, superlayer_id), _bti(bti_id) {}

◆ DTBtiId() [4/5]

DTBtiId::DTBtiId ( const int  wheel_id,
const int  station_id,
const int  sector_id,
const int  superlayer_id,
const int  bti_id 
)
inline

Constructor.

Definition at line 45 of file DTBtiId.h.

46  : _suplId(wheel_id, station_id, sector_id, superlayer_id), _bti(bti_id) {}

◆ DTBtiId() [5/5]

DTBtiId::DTBtiId ( const DTBtiId btiId)
inline

Constructor.

Definition at line 49 of file DTBtiId.h.

49 : _suplId(btiId._suplId), _bti(btiId._bti) {}

◆ ~DTBtiId()

virtual DTBtiId::~DTBtiId ( )
inlinevirtual

Destructor.

Definition at line 52 of file DTBtiId.h.

52 {}

Member Function Documentation

◆ bti()

int DTBtiId::bti ( ) const
inline

◆ operator<()

bool DTBtiId::operator< ( const DTBtiId id) const
inline

Definition at line 81 of file DTBtiId.h.

81  {
82  if (wheel() < id.wheel())
83  return true;
84  if (wheel() > id.wheel())
85  return false;
86 
87  if (station() < id.station())
88  return true;
89  if (station() > id.station())
90  return false;
91 
92  if (sector() < id.sector())
93  return true;
94  if (sector() > id.sector())
95  return false;
96 
97  if (superlayer() < id.superlayer())
98  return true;
99  if (superlayer() > id.superlayer())
100  return false;
101 
102  if (bti() < id.bti())
103  return true;
104  if (bti() > id.bti())
105  return false;
106 
107  return false;
108  }

References bti(), sector(), station(), superlayer(), and wheel().

◆ operator==()

bool DTBtiId::operator== ( const DTBtiId id) const
inline

Definition at line 67 of file DTBtiId.h.

67  {
68  if (wheel() != id.wheel())
69  return false;
70  if (sector() != id.sector())
71  return false;
72  if (station() != id.station())
73  return false;
74  if (superlayer() != id.superlayer())
75  return false;
76  if (_bti != id.bti())
77  return false;
78  return true;
79  }

References _bti, bti(), sector(), station(), superlayer(), and wheel().

◆ sector()

int DTBtiId::sector ( ) const
inline

◆ SLId()

DTSuperLayerId DTBtiId::SLId ( ) const
inline

Returns the superlayer id.

Definition at line 65 of file DTBtiId.h.

65 { return _suplId; }

References _suplId.

Referenced by DTConfigManager::getDTConfigBti(), DTConfigManager::setDTConfigBti(), and DTBtiTrigData::SLId().

◆ station()

int DTBtiId::station ( ) const
inline

◆ superlayer()

int DTBtiId::superlayer ( ) const
inline

◆ wheel()

int DTBtiId::wheel ( ) const
inline

Member Data Documentation

◆ _bti

int DTBtiId::_bti
private

Definition at line 112 of file DTBtiId.h.

Referenced by bti(), and operator==().

◆ _suplId

DTSuperLayerId DTBtiId::_suplId
private

Definition at line 111 of file DTBtiId.h.

Referenced by sector(), SLId(), station(), superlayer(), and wheel().

DTBtiId::wheel
int wheel() const
Returns wheel number.
Definition: DTBtiId.h:55
DTSuperLayerId::superlayer
int superlayer() const
Return the superlayer number (deprecated method name)
Definition: DTSuperLayerId.h:42
DTBtiId::sector
int sector() const
Returns sector number.
Definition: DTBtiId.h:59
DTBtiId::_suplId
DTSuperLayerId _suplId
Definition: DTBtiId.h:111
DTBtiId::_bti
int _bti
Definition: DTBtiId.h:112
DTBtiId::station
int station() const
Returns station number.
Definition: DTBtiId.h:57
DTChamberId::sector
int sector() const
Definition: DTChamberId.h:49
DTBtiId::bti
int bti() const
Returns the bti.
Definition: DTBtiId.h:63
DTChamberId::wheel
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:39
DTChamberId::station
int station() const
Return the station number.
Definition: DTChamberId.h:42
DTBtiId::superlayer
int superlayer() const
Returns the superlayer.
Definition: DTBtiId.h:61