CMS 3D CMS Logo

Public Member Functions | Private Attributes

DTBtiId Class Reference

#include <DTBtiId.h>

List of all members.

Public Member Functions

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

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.

: _bti(0) {}
DTBtiId::DTBtiId ( const DTSuperLayerId mu_superlayer_id,
const int  bti_id 
) [inline]

Constructor.

Definition at line 40 of file DTBtiId.h.

                                    : _suplId(mu_superlayer_id),
                                         _bti(bti_id) {}
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.

                                    : _suplId(mu_stat_id,superlayer_id),
                                         _bti(bti_id) {}
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.

                                    : 
                          _suplId(wheel_id,station_id,sector_id,superlayer_id),
                          _bti(bti_id) {}
DTBtiId::DTBtiId ( const DTBtiId btiId) [inline]

Constructor.

Definition at line 60 of file DTBtiId.h.

                                :
                                   _suplId(btiId._suplId), _bti(btiId._bti) {}
virtual DTBtiId::~DTBtiId ( ) [inline, virtual]

Destructor.

Definition at line 64 of file DTBtiId.h.

{}

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

                                              { 
    if ( wheel()       < id.wheel()      ) return true;
    if ( wheel()       > id.wheel()      ) return false;
  
    if ( station()     < id.station()    ) return true;
    if ( station()     > id.station()    ) return false;
  
    if ( sector()      < id.sector()     ) return true;
    if ( sector()      > id.sector()     ) return false;

    if ( superlayer()  < id.superlayer() ) return true;
    if ( superlayer()  > id.superlayer() ) return false;

    if ( bti()         < id.bti()        ) return true;
    if ( bti()         > id.bti()        ) return false;

    return false;
  }
bool DTBtiId::operator== ( const DTBtiId id) const [inline]

Definition at line 79 of file DTBtiId.h.

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

                                              { 
    if ( wheel()!=id.wheel()) return false;
    if ( sector()!=id.sector())return false;
    if ( station()!=id.station())return false;
    if ( superlayer()!=id.superlayer())return false;
    if ( _bti!=id.bti())return false;
    return true;
  }
int DTBtiId::sector ( ) const [inline]
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().

{ return _suplId; }
int DTBtiId::station ( ) const [inline]
int DTBtiId::superlayer ( ) const [inline]
int DTBtiId::wheel ( ) const [inline]

Member Data Documentation

int DTBtiId::_bti [private]

Definition at line 110 of file DTBtiId.h.

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

Definition at line 109 of file DTBtiId.h.

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