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
DTTracoId Class Reference

#include <DTTracoId.h>

Public Member Functions

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

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.

40 : _traco(0) {}
int _traco
Definition: DTTracoId.h:102
DTTracoId::DTTracoId ( const DTChamberId mu_stat_id,
const int  traco_id 
)
inline

Constructor.

Definition at line 43 of file DTTracoId.h.

44  : _statId(mu_stat_id),
45  _traco(traco_id) {}
int _traco
Definition: DTTracoId.h:102
DTChamberId _statId
Definition: DTTracoId.h:101
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.

51  :
52  _statId(wheel_id,station_id,sector_id),
53  _traco(traco_id) {}
int _traco
Definition: DTTracoId.h:102
DTChamberId _statId
Definition: DTTracoId.h:101
DTTracoId::DTTracoId ( const DTTracoId tracoId)
inline

Constructor.

Definition at line 56 of file DTTracoId.h.

56  :
57  _statId(tracoId._statId),
58  _traco(tracoId._traco) {}
int _traco
Definition: DTTracoId.h:102
DTChamberId _statId
Definition: DTTracoId.h:101
virtual DTTracoId::~DTTracoId ( )
inlinevirtual

Destructor.

Definition at line 61 of file DTTracoId.h.

61 {}

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

72 { return _statId; }
DTChamberId _statId
Definition: DTTracoId.h:101
bool DTTracoId::operator< ( const DTTracoId id) const
inline

Definition at line 82 of file DTTracoId.h.

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

82  {
83  if ( wheel() < id.wheel() ) return true;
84  if ( wheel() > id.wheel() ) return false;
85 
86  if ( station() < id.station() ) return true;
87  if ( station() > id.station() ) return false;
88 
89  if ( sector() < id.sector() ) return true;
90  if ( sector() > id.sector() ) return false;
91 
92  if ( traco() < id.traco() ) return true;
93  if ( traco() > id.traco() ) return false;
94 
95  return false;
96 
97  }
int sector() const
Returns sector number.
Definition: DTTracoId.h:68
int traco() const
Returns the traco.
Definition: DTTracoId.h:70
int station() const
Returns station number.
Definition: DTTracoId.h:66
int wheel() const
Returns wheel number.
Definition: DTTracoId.h:64
bool DTTracoId::operator== ( const DTTracoId id) const
inline

Definition at line 74 of file DTTracoId.h.

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

74  {
75  if ( wheel()!=id.wheel()) return false;
76  if ( sector()!=id.sector())return false;
77  if ( station()!=id.station())return false;
78  if ( _traco!=id.traco())return false;
79  return true;
80  }
int _traco
Definition: DTTracoId.h:102
int sector() const
Returns sector number.
Definition: DTTracoId.h:68
int traco() const
Returns the traco.
Definition: DTTracoId.h:70
int station() const
Returns station number.
Definition: DTTracoId.h:66
int wheel() const
Returns wheel number.
Definition: DTTracoId.h:64
int DTTracoId::sector ( ) const
inline
int DTTracoId::station ( ) const
inline
int DTTracoId::traco ( ) const
inline
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(), geometryXMLparser.DTAlignable::index(), operator<(), operator==(), DTTracoTrigData::print(), and DTTracoCard::storeTrigger().

64 { return _statId.wheel(); }
DTChamberId _statId
Definition: DTTracoId.h:101
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:47

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