test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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::DTBtiId ( )
inline

Constructor.

Definition at line 37 of file DTBtiId.h.

37 : _bti(0) {}
int _bti
Definition: DTBtiId.h:110
DTBtiId::DTBtiId ( const DTSuperLayerId mu_superlayer_id,
const int  bti_id 
)
inline

Constructor.

Definition at line 40 of file DTBtiId.h.

41  : _suplId(mu_superlayer_id),
42  _bti(bti_id) {}
int _bti
Definition: DTBtiId.h:110
DTSuperLayerId _suplId
Definition: DTBtiId.h:109
DTBtiId::DTBtiId ( const DTChamberId mu_stat_id,
const int  superlayer_id,
const int  bti_id 
)
inline

Constructor.

Definition at line 45 of file DTBtiId.h.

47  : _suplId(mu_stat_id,superlayer_id),
48  _bti(bti_id) {}
int _bti
Definition: DTBtiId.h:110
DTSuperLayerId _suplId
Definition: DTBtiId.h:109
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 51 of file DTBtiId.h.

55  :
56  _suplId(wheel_id,station_id,sector_id,superlayer_id),
57  _bti(bti_id) {}
int _bti
Definition: DTBtiId.h:110
DTSuperLayerId _suplId
Definition: DTBtiId.h:109
DTBtiId::DTBtiId ( const DTBtiId btiId)
inline

Constructor.

Definition at line 60 of file DTBtiId.h.

60  :
61  _suplId(btiId._suplId), _bti(btiId._bti) {}
int _bti
Definition: DTBtiId.h:110
DTSuperLayerId _suplId
Definition: DTBtiId.h:109
virtual DTBtiId::~DTBtiId ( )
inlinevirtual

Destructor.

Definition at line 64 of file DTBtiId.h.

64 {}

Member Function Documentation

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

Definition at line 88 of file DTBtiId.h.

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

88  {
89  if ( wheel() < id.wheel() ) return true;
90  if ( wheel() > id.wheel() ) return false;
91 
92  if ( station() < id.station() ) return true;
93  if ( station() > id.station() ) return false;
94 
95  if ( sector() < id.sector() ) return true;
96  if ( sector() > id.sector() ) return false;
97 
98  if ( superlayer() < id.superlayer() ) return true;
99  if ( superlayer() > id.superlayer() ) return false;
100 
101  if ( bti() < id.bti() ) return true;
102  if ( bti() > id.bti() ) return false;
103 
104  return false;
105  }
int wheel() const
Returns wheel number.
Definition: DTBtiId.h:67
int superlayer() const
Returns the superlayer.
Definition: DTBtiId.h:73
int sector() const
Returns sector number.
Definition: DTBtiId.h:71
int station() const
Returns station number.
Definition: DTBtiId.h:69
int bti() const
Returns the bti.
Definition: DTBtiId.h:75
bool DTBtiId::operator== ( const DTBtiId id) const
inline

Definition at line 79 of file DTBtiId.h.

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

79  {
80  if ( wheel()!=id.wheel()) return false;
81  if ( sector()!=id.sector())return false;
82  if ( station()!=id.station())return false;
83  if ( superlayer()!=id.superlayer())return false;
84  if ( _bti!=id.bti())return false;
85  return true;
86  }
int _bti
Definition: DTBtiId.h:110
int wheel() const
Returns wheel number.
Definition: DTBtiId.h:67
int superlayer() const
Returns the superlayer.
Definition: DTBtiId.h:73
int sector() const
Returns sector number.
Definition: DTBtiId.h:71
int station() const
Returns station number.
Definition: DTBtiId.h:69
int bti() const
Returns the bti.
Definition: DTBtiId.h:75
int DTBtiId::sector ( ) const
inline

Returns sector number.

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

71 { return _suplId.sector(); }
int sector() const
Definition: DTChamberId.h:61
DTSuperLayerId _suplId
Definition: DTBtiId.h:109
DTSuperLayerId DTBtiId::SLId ( ) const
inline

Returns the superlayer id.

Definition at line 77 of file DTBtiId.h.

References _suplId.

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

77 { return _suplId; }
DTSuperLayerId _suplId
Definition: DTBtiId.h:109
int DTBtiId::station ( ) const
inline

Returns station number.

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

69 { return _suplId.station(); }
DTSuperLayerId _suplId
Definition: DTBtiId.h:109
int station() const
Return the station number.
Definition: DTChamberId.h:51
int DTBtiId::superlayer ( ) const
inline
int DTBtiId::wheel ( ) const
inline

Returns wheel number.

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

67 { return _suplId.wheel(); }
DTSuperLayerId _suplId
Definition: DTBtiId.h:109
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:45

Member Data Documentation

int DTBtiId::_bti
private

Definition at line 110 of file DTBtiId.h.

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

DTSuperLayerId DTBtiId::_suplId
private

Definition at line 109 of file DTBtiId.h.

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