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 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
 
DTTracoIdoperator= (const DTTracoId &tracoId)=default
 
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) {}
int _traco
Definition: DTTracoId.h:104

◆ 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) {}
int _traco
Definition: DTTracoId.h:104
DTChamberId _statId
Definition: DTTracoId.h:103

◆ 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) {}
int _traco
Definition: DTTracoId.h:104
DTChamberId _statId
Definition: DTTracoId.h:103

◆ 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) {}
int _traco
Definition: DTTracoId.h:104
DTChamberId _statId
Definition: DTTracoId.h:103

◆ ~DTTracoId()

virtual DTTracoId::~DTTracoId ( )
inlinevirtual

Destructor.

Definition at line 53 of file DTTracoId.h.

53 {}

Member Function Documentation

◆ ChamberId()

DTChamberId DTTracoId::ChamberId ( ) const
inline

Returns the chamber id.

Definition at line 64 of file DTTracoId.h.

References _statId.

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

64 { return _statId; }
DTChamberId _statId
Definition: DTTracoId.h:103

◆ operator<()

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

Definition at line 78 of file DTTracoId.h.

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

78  {
79  if (wheel() < id.wheel())
80  return true;
81  if (wheel() > id.wheel())
82  return false;
83 
84  if (station() < id.station())
85  return true;
86  if (station() > id.station())
87  return false;
88 
89  if (sector() < id.sector())
90  return true;
91  if (sector() > id.sector())
92  return false;
93 
94  if (traco() < id.traco())
95  return true;
96  if (traco() > id.traco())
97  return false;
98 
99  return false;
100  }
int wheel() const
Returns wheel number.
Definition: DTTracoId.h:56
int station() const
Returns station number.
Definition: DTTracoId.h:58
int sector() const
Returns sector number.
Definition: DTTracoId.h:60
int traco() const
Returns the traco.
Definition: DTTracoId.h:62

◆ operator=()

DTTracoId& DTTracoId::operator= ( const DTTracoId tracoId)
default

◆ operator==()

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

Definition at line 66 of file DTTracoId.h.

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

66  {
67  if (wheel() != id.wheel())
68  return false;
69  if (sector() != id.sector())
70  return false;
71  if (station() != id.station())
72  return false;
73  if (_traco != id.traco())
74  return false;
75  return true;
76  }
int _traco
Definition: DTTracoId.h:104
int wheel() const
Returns wheel number.
Definition: DTTracoId.h:56
int station() const
Returns station number.
Definition: DTTracoId.h:58
int sector() const
Returns sector number.
Definition: DTTracoId.h:60
int traco() const
Returns the traco.
Definition: DTTracoId.h:62

◆ sector()

int DTTracoId::sector ( ) const
inline

◆ station()

int DTTracoId::station ( ) const
inline

◆ traco()

int DTTracoId::traco ( ) const
inline

◆ wheel()

int DTTracoId::wheel ( ) const
inline

Returns wheel number.

Definition at line 56 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().

56 { return _statId.wheel(); }
DTChamberId _statId
Definition: DTTracoId.h:103
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:42

Member Data Documentation

◆ _statId

DTChamberId DTTracoId::_statId
private

Definition at line 103 of file DTTracoId.h.

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

◆ _traco

int DTTracoId::_traco
private

Definition at line 104 of file DTTracoId.h.

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