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 DTSuperLayerId &mu_superlayer_id, const int bti_id)
 Constructor. More...
 
 DTBtiId (const DTChamberId &mu_stat_id, const int 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...
 
 DTBtiId (const DTBtiId &btiId)
 Constructor. More...
 
bool operator< (const DTBtiId &id) const
 
DTBtiIdoperator= (const DTBtiId &btiId)=default
 
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) {}
int _bti
Definition: DTBtiId.h:115

◆ 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) {}
int _bti
Definition: DTBtiId.h:115
DTSuperLayerId _suplId
Definition: DTBtiId.h:114

◆ 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) {}
int _bti
Definition: DTBtiId.h:115
DTSuperLayerId _suplId
Definition: DTBtiId.h:114

◆ 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) {}
int _bti
Definition: DTBtiId.h:115
DTSuperLayerId _suplId
Definition: DTBtiId.h:114

◆ 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) {}
int _bti
Definition: DTBtiId.h:115
DTSuperLayerId _suplId
Definition: DTBtiId.h:114

◆ ~DTBtiId()

virtual DTBtiId::~DTBtiId ( )
inlinevirtual

Destructor.

Definition at line 55 of file DTBtiId.h.

55 {}

Member Function Documentation

◆ bti()

int DTBtiId::bti ( ) const
inline

◆ operator<()

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

Definition at line 84 of file DTBtiId.h.

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

84  {
85  if (wheel() < id.wheel())
86  return true;
87  if (wheel() > id.wheel())
88  return false;
89 
90  if (station() < id.station())
91  return true;
92  if (station() > id.station())
93  return false;
94 
95  if (sector() < id.sector())
96  return true;
97  if (sector() > id.sector())
98  return false;
99 
100  if (superlayer() < id.superlayer())
101  return true;
102  if (superlayer() > id.superlayer())
103  return false;
104 
105  if (bti() < id.bti())
106  return true;
107  if (bti() > id.bti())
108  return false;
109 
110  return false;
111  }
int sector() const
Returns sector number.
Definition: DTBtiId.h:62
int bti() const
Returns the bti.
Definition: DTBtiId.h:66
int wheel() const
Returns wheel number.
Definition: DTBtiId.h:58
int superlayer() const
Returns the superlayer.
Definition: DTBtiId.h:64
int station() const
Returns station number.
Definition: DTBtiId.h:60

◆ operator=()

DTBtiId& DTBtiId::operator= ( const DTBtiId btiId)
default

◆ operator==()

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

Definition at line 70 of file DTBtiId.h.

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

70  {
71  if (wheel() != id.wheel())
72  return false;
73  if (sector() != id.sector())
74  return false;
75  if (station() != id.station())
76  return false;
77  if (superlayer() != id.superlayer())
78  return false;
79  if (_bti != id.bti())
80  return false;
81  return true;
82  }
int sector() const
Returns sector number.
Definition: DTBtiId.h:62
int _bti
Definition: DTBtiId.h:115
int bti() const
Returns the bti.
Definition: DTBtiId.h:66
int wheel() const
Returns wheel number.
Definition: DTBtiId.h:58
int superlayer() const
Returns the superlayer.
Definition: DTBtiId.h:64
int station() const
Returns station number.
Definition: DTBtiId.h:60

◆ sector()

int DTBtiId::sector ( ) const
inline

Returns sector number.

Definition at line 62 of file DTBtiId.h.

References _suplId, and DTChamberId::sector().

Referenced by DTBtiTrigData::ChamberId(), DTBtiCard::config_bti(), DTConfigManager::getDTConfigBti(), geometryXMLparser.DTAlignable::index(), operator<(), operator==(), and DTBtiCard::storeTrigger().

62 { return _suplId.sector(); }
int sector() const
Definition: DTChamberId.h:52
DTSuperLayerId _suplId
Definition: DTBtiId.h:114

◆ SLId()

DTSuperLayerId DTBtiId::SLId ( ) const
inline

Returns the superlayer id.

Definition at line 68 of file DTBtiId.h.

References _suplId.

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

68 { return _suplId; }
DTSuperLayerId _suplId
Definition: DTBtiId.h:114

◆ station()

int DTBtiId::station ( ) const
inline

Returns station number.

Definition at line 60 of file DTBtiId.h.

References _suplId, and DTChamberId::station().

Referenced by DTBtiTrigData::ChamberId(), DTBtiCard::config_bti(), DTConfigManager::getDTConfigBti(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), operator<(), operator==(), and DTBtiCard::storeTrigger().

60 { return _suplId.station(); }
int station() const
Return the station number.
Definition: DTChamberId.h:45
DTSuperLayerId _suplId
Definition: DTBtiId.h:114

◆ superlayer()

int DTBtiId::superlayer ( ) const
inline

◆ wheel()

int DTBtiId::wheel ( ) const
inline

Returns wheel number.

Definition at line 58 of file DTBtiId.h.

References _suplId, and DTChamberId::wheel().

Referenced by DTBtiTrigData::ChamberId(), DTBtiCard::config_bti(), DTConfigManager::getDTConfigBti(), geometryXMLparser.DTAlignable::index(), operator<(), operator==(), and DTBtiCard::storeTrigger().

58 { return _suplId.wheel(); }
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:42
DTSuperLayerId _suplId
Definition: DTBtiId.h:114

Member Data Documentation

◆ _bti

int DTBtiId::_bti
private

Definition at line 115 of file DTBtiId.h.

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

◆ _suplId

DTSuperLayerId DTBtiId::_suplId
private

Definition at line 114 of file DTBtiId.h.

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