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
 
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:101

◆ 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:101
DTChamberId _statId
Definition: DTTracoId.h:100

◆ 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:101
DTChamberId _statId
Definition: DTTracoId.h:100

◆ 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:101
DTChamberId _statId
Definition: DTTracoId.h:100

◆ ~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.

References _statId.

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

61 { return _statId; }
DTChamberId _statId
Definition: DTTracoId.h:100

◆ operator<()

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

Definition at line 75 of file DTTracoId.h.

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

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  }
int wheel() const
Returns wheel number.
Definition: DTTracoId.h:53
int station() const
Returns station number.
Definition: DTTracoId.h:55
int sector() const
Returns sector number.
Definition: DTTracoId.h:57
int traco() const
Returns the traco.
Definition: DTTracoId.h:59

◆ operator==()

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

Definition at line 63 of file DTTracoId.h.

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

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  }
int _traco
Definition: DTTracoId.h:101
int wheel() const
Returns wheel number.
Definition: DTTracoId.h:53
int station() const
Returns station number.
Definition: DTTracoId.h:55
int sector() const
Returns sector number.
Definition: DTTracoId.h:57
int traco() const
Returns the traco.
Definition: DTTracoId.h:59

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

53 { return _statId.wheel(); }
DTChamberId _statId
Definition: DTTracoId.h:100
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:39

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