CMS 3D CMS Logo

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 DTTracoId &tracoId)
 Constructor. More...
 
 DTTracoId (const int wheel_id, const int station_id, const int sector_id, const int traco_id)
 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 34 of file DTTracoId.h.

Constructor & Destructor Documentation

◆ DTTracoId() [1/4]

DTTracoId::DTTracoId ( )
inline

Constructor.

Definition at line 37 of file DTTracoId.h.

37 : _traco(0) {}

◆ DTTracoId() [2/4]

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

Constructor.

Definition at line 40 of file DTTracoId.h.

40 : _statId(mu_stat_id), _traco(traco_id) {}

◆ DTTracoId() [3/4]

DTTracoId::DTTracoId ( const int  wheel_id,
const int  station_id,
const int  sector_id,
const int  traco_id 
)
inline

Constructor.

Definition at line 43 of file DTTracoId.h.

44  : _statId(wheel_id, station_id, sector_id), _traco(traco_id) {}

◆ DTTracoId() [4/4]

DTTracoId::DTTracoId ( const DTTracoId tracoId)
inline

Constructor.

Definition at line 47 of file DTTracoId.h.

47 : _statId(tracoId._statId), _traco(tracoId._traco) {}

◆ ~DTTracoId()

virtual DTTracoId::~DTTracoId ( )
inlinevirtual

Destructor.

Definition at line 50 of file DTTracoId.h.

50 {}

Member Function Documentation

◆ ChamberId()

DTChamberId DTTracoId::ChamberId ( ) const
inline

Returns the chamber id.

Definition at line 61 of file DTTracoId.h.

61 { return _statId; }

References _statId.

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

◆ operator<()

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

Definition at line 75 of file DTTracoId.h.

75  {
76  if (wheel() < id.wheel())
77  return true;
78  if (wheel() > id.wheel())
79  return false;
80 
81  if (station() < id.station())
82  return true;
83  if (station() > id.station())
84  return false;
85 
86  if (sector() < id.sector())
87  return true;
88  if (sector() > id.sector())
89  return false;
90 
91  if (traco() < id.traco())
92  return true;
93  if (traco() > id.traco())
94  return false;
95 
96  return false;
97  }

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

◆ operator==()

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

Definition at line 63 of file DTTracoId.h.

63  {
64  if (wheel() != id.wheel())
65  return false;
66  if (sector() != id.sector())
67  return false;
68  if (station() != id.station())
69  return false;
70  if (_traco != id.traco())
71  return false;
72  return true;
73  }

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

◆ sector()

int DTTracoId::sector ( ) const
inline

◆ station()

int DTTracoId::station ( ) const
inline

◆ traco()

int DTTracoId::traco ( ) const
inline

◆ wheel()

int DTTracoId::wheel ( ) const
inline

Member Data Documentation

◆ _statId

DTChamberId DTTracoId::_statId
private

Definition at line 100 of file DTTracoId.h.

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

◆ _traco

int DTTracoId::_traco
private

Definition at line 101 of file DTTracoId.h.

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

DTTracoId::_traco
int _traco
Definition: DTTracoId.h:101
DTTracoId::station
int station() const
Returns station number.
Definition: DTTracoId.h:55
DTChamberId::sector
int sector() const
Definition: DTChamberId.h:49
DTTracoId::_statId
DTChamberId _statId
Definition: DTTracoId.h:100
DTTracoId::traco
int traco() const
Returns the traco.
Definition: DTTracoId.h:59
DTTracoId::wheel
int wheel() const
Returns wheel number.
Definition: DTTracoId.h:53
DTTracoId::sector
int sector() const
Returns sector number.
Definition: DTTracoId.h:57
DTChamberId::wheel
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:39
DTChamberId::station
int station() const
Return the station number.
Definition: DTChamberId.h:42