CMS 3D CMS Logo

Public Member Functions | Private Attributes

DTTracoId Class Reference

#include <DTTracoId.h>

List of all members.

Public Member Functions

DTChamberId ChamberId () const
 Returns the chamber id.
 DTTracoId ()
 Constructor.
 DTTracoId (const DTTracoId &tracoId)
 Constructor.
 DTTracoId (const DTChamberId &mu_stat_id, const int traco_id)
 Constructor.
 DTTracoId (const int wheel_id, const int station_id, const int sector_id, const int traco_id)
 Constructor.
bool operator< (const DTTracoId &id) const
bool operator== (const DTTracoId &id) const
int sector () const
 Returns sector number.
int station () const
 Returns station number.
int traco () const
 Returns the traco.
int wheel () const
 Returns wheel number.
virtual ~DTTracoId ()
 Destructor.

Private Attributes

DTChamberId _statId
int _traco

Detailed Description

TRACO Identifier

Author:
C.Grandi

Definition at line 35 of file DTTracoId.h.


Constructor & Destructor Documentation

DTTracoId::DTTracoId ( ) [inline]

Constructor.

Definition at line 40 of file DTTracoId.h.

: _traco(0) {}
DTTracoId::DTTracoId ( const DTChamberId mu_stat_id,
const int  traco_id 
) [inline]

Constructor.

Definition at line 43 of file DTTracoId.h.

                                        : _statId(mu_stat_id),
                                             _traco(traco_id) {}
DTTracoId::DTTracoId ( const int  wheel_id,
const int  station_id,
const int  sector_id,
const int  traco_id 
) [inline]

Constructor.

Definition at line 48 of file DTTracoId.h.

                                    :
                  _statId(wheel_id,station_id,sector_id),
                  _traco(traco_id) {}
DTTracoId::DTTracoId ( const DTTracoId tracoId) [inline]

Constructor.

Definition at line 56 of file DTTracoId.h.

                                      :
                  _statId(tracoId._statId), 
                  _traco(tracoId._traco) {}
virtual DTTracoId::~DTTracoId ( ) [inline, virtual]

Destructor.

Definition at line 61 of file DTTracoId.h.

{}

Member Function Documentation

DTChamberId DTTracoId::ChamberId ( ) const [inline]

Returns the chamber id.

Definition at line 72 of file DTTracoId.h.

References _statId.

Referenced by DTTracoTrigData::ChamberId(), DTConfigManager::getDTConfigTraco(), and DTConfigManager::setDTConfigTraco().

{ return _statId; }
bool DTTracoId::operator< ( const DTTracoId id) const [inline]

Definition at line 82 of file DTTracoId.h.

References sector(), station(), traco(), 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 ( traco()         < id.traco()    ) return true;
    if ( traco()         > id.traco()    ) return false;

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

Definition at line 74 of file DTTracoId.h.

References _traco, sector(), station(), traco(), and wheel().

                                                { 
    if ( wheel()!=id.wheel()) return false;
    if ( sector()!=id.sector())return false;
    if ( station()!=id.station())return false;
    if ( _traco!=id.traco())return false;
    return true;
  }
int DTTracoId::sector ( ) const [inline]
int DTTracoId::station ( ) const [inline]
int DTTracoId::traco ( ) const [inline]
int DTTracoId::wheel ( ) const [inline]

Member Data Documentation

Definition at line 101 of file DTTracoId.h.

Referenced by ChamberId(), sector(), station(), and wheel().

int DTTracoId::_traco [private]

Definition at line 102 of file DTTracoId.h.

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