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
 
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:112

◆ 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:112
DTSuperLayerId _suplId
Definition: DTBtiId.h:111

◆ 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:112
DTSuperLayerId _suplId
Definition: DTBtiId.h:111

◆ 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:112
DTSuperLayerId _suplId
Definition: DTBtiId.h:111

◆ 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:112
DTSuperLayerId _suplId
Definition: DTBtiId.h:111

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

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

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  }
int sector() const
Returns sector number.
Definition: DTBtiId.h:59
int bti() const
Returns the bti.
Definition: DTBtiId.h:63
int wheel() const
Returns wheel number.
Definition: DTBtiId.h:55
int superlayer() const
Returns the superlayer.
Definition: DTBtiId.h:61
int station() const
Returns station number.
Definition: DTBtiId.h:57

◆ operator==()

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

Definition at line 67 of file DTBtiId.h.

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

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  }
int sector() const
Returns sector number.
Definition: DTBtiId.h:59
int _bti
Definition: DTBtiId.h:112
int bti() const
Returns the bti.
Definition: DTBtiId.h:63
int wheel() const
Returns wheel number.
Definition: DTBtiId.h:55
int superlayer() const
Returns the superlayer.
Definition: DTBtiId.h:61
int station() const
Returns station number.
Definition: DTBtiId.h:57

◆ sector()

int DTBtiId::sector ( ) const
inline

Returns sector number.

Definition at line 59 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().

59 { return _suplId.sector(); }
int sector() const
Definition: DTChamberId.h:49
DTSuperLayerId _suplId
Definition: DTBtiId.h:111

◆ SLId()

DTSuperLayerId DTBtiId::SLId ( ) const
inline

Returns the superlayer id.

Definition at line 65 of file DTBtiId.h.

References _suplId.

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

65 { return _suplId; }
DTSuperLayerId _suplId
Definition: DTBtiId.h:111

◆ station()

int DTBtiId::station ( ) const
inline

Returns station number.

Definition at line 57 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().

57 { return _suplId.station(); }
int station() const
Return the station number.
Definition: DTChamberId.h:42
DTSuperLayerId _suplId
Definition: DTBtiId.h:111

◆ superlayer()

int DTBtiId::superlayer ( ) const
inline

◆ wheel()

int DTBtiId::wheel ( ) const
inline

Returns wheel number.

Definition at line 55 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().

55 { return _suplId.wheel(); }
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:39
DTSuperLayerId _suplId
Definition: DTBtiId.h:111

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().