CMS 3D CMS Logo

DTTracoId Class Reference

TRACO Identifier. More...

#include <DataFormats/MuonDetId/interface/DTTracoId.h>

List of all members.

Public Member Functions

DTChamberId ChamberId () const
 Returns the chamber id.
 DTTracoId (const DTTracoId &tracoId)
 Constructor.
 DTTracoId (const int wheel_id, const int station_id, const int sector_id, const int traco_id)
 Constructor.
 DTTracoId (const DTChamberId &mu_stat_id, const int traco_id)
 Constructor.
 DTTracoId ()
 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.

00040 : _traco(0) {}

DTTracoId::DTTracoId ( const DTChamberId mu_stat_id,
const int  traco_id 
) [inline]

Constructor.

Definition at line 43 of file DTTracoId.h.

00044                                         : _statId(mu_stat_id),
00045                                              _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.

00051                                     :
00052                   _statId(wheel_id,station_id,sector_id),
00053                   _traco(traco_id) {}
 

DTTracoId::DTTracoId ( const DTTracoId tracoId  )  [inline]

Constructor.

Definition at line 56 of file DTTracoId.h.

00056                                       :
00057                   _statId(tracoId._statId), 
00058                   _traco(tracoId._traco) {}
 

virtual DTTracoId::~DTTracoId (  )  [inline, virtual]

Destructor.

Definition at line 61 of file DTTracoId.h.

00061 {}


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

00072 { return _statId; }

bool DTTracoId::operator< ( const DTTracoId id  )  const [inline]

Definition at line 82 of file DTTracoId.h.

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

00082                                                 { 
00083     if ( wheel()       < id.wheel()      ) return true;
00084     if ( wheel()       > id.wheel()      ) return false;
00085   
00086     if ( station()     < id.station()    ) return true;
00087     if ( station()     > id.station()    ) return false;
00088     
00089     if ( sector()      < id.sector()     ) return true;
00090     if ( sector()      > id.sector()     ) return false;
00091 
00092     if ( traco()         < id.traco()    ) return true;
00093     if ( traco()         > id.traco()    ) return false;
00094 
00095     return false;
00096   
00097   }

bool DTTracoId::operator== ( const DTTracoId id  )  const [inline]

Definition at line 74 of file DTTracoId.h.

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

00074                                                 { 
00075     if ( wheel()!=id.wheel()) return false;
00076     if ( sector()!=id.sector())return false;
00077     if ( station()!=id.station())return false;
00078     if ( _traco!=id.traco())return false;
00079     return true;
00080   }

int DTTracoId::sector (  )  const [inline]

Returns sector number.

Definition at line 68 of file DTTracoId.h.

References _statId, and DTChamberId::sector().

Referenced by DTTracoCard::config_traco(), DTConfigManager::getDTConfigTraco(), operator<(), operator==(), DTTracoTrigData::print(), and DTTracoCard::storeTrigger().

00068 { return _statId.sector(); }

int DTTracoId::station (  )  const [inline]

Returns station number.

Definition at line 66 of file DTTracoId.h.

References _statId, and DTChamberId::station().

Referenced by DTTracoCard::config_traco(), DTConfigManager::getDTConfigTraco(), operator<(), operator==(), DTTracoTrigData::print(), and DTTracoCard::storeTrigger().

00066 { return _statId.station(); }

int DTTracoId::traco (  )  const [inline]

Returns the traco.

Definition at line 70 of file DTTracoId.h.

References _traco.

Referenced by DTTracoCard::activeGetTRACO(), DTTracoChip::add_btiT(), DTTracoCard::config_traco(), DTConfigManager::getDTConfigTraco(), DTTracoCard::getTRACO(), DTTracoChip::number(), operator<(), operator==(), DTTracoTrigData::print(), DTTracoChip::run(), DTTracoChip::setFlag(), DTTracoCard::storeTrigger(), and DTTracoTrigData::tracoNumber().

00070 { return _traco; }

int DTTracoId::wheel (  )  const [inline]

Returns wheel number.

Definition at line 64 of file DTTracoId.h.

References _statId, and DTChamberId::wheel().

Referenced by DTTracoCard::config_traco(), DTConfigManager::getDTConfigTraco(), operator<(), operator==(), DTTracoTrigData::print(), and DTTracoCard::storeTrigger().

00064 { return _statId.wheel(); }


Member Data Documentation

DTChamberId DTTracoId::_statId [private]

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


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:19:09 2009 for CMSSW by  doxygen 1.5.4