Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

StripId Class Reference

Stores the data for a single hit TKR strip. Provides all necessary data to identify the location of this strip and the controller used to read it out - determines which ToT value this strip corresponds to. More...

#include <StripId.h>

Inheritance diagram for StripId:

TObject List of all members.

Public Types

enum  { STRIP_CTRL_LEFT = 0, STRIP_CTRL_RIGHT = 1 }

Public Methods

 StripId ()
virtual ~StripId ()
UShort_t getTag () const
 returns the whole packed tag for this strip. More...

UShort_t getId () const
 returns strip id in [0,1599]. More...

UChar_t getCable () const
 returns cable number used to readout this strip. More...

UShort_t getController () const
 returns the controller bit. More...

UShort_t getTower () const
 returns the tower number. More...

Bool_t setTag (UShort_t tagVal)
Bool_t setStrip (UShort_t stripVal)
Bool_t setCable (UChar_t cableVal, UChar_t cntrl=0)
Bool_t setController (UShort_t ctrlVal)
Bool_t setTower (UShort_t towerVal)
Int_t Compare (TObject *obj)
Bool_t IsSortable () const

Private Types

enum  {
  TKR_K_STRIP = 11, TKR_V_STRIP = 0, TKR_M_STRIP = ((1 << TKR_K_STRIP) - 1), TKR_K_CTRL = 1,
  TKR_V_CTRL = (TKR_K_STRIP + TKR_V_STRIP), TKR_M_CTRL = ((1 << TKR_K_CTRL) - 1), TKR_K_TOWER = 4, TKR_V_TOWER = (TKR_K_CTRL + TKR_V_CTRL),
  TKR_M_TOWER = ((1 << TKR_K_TOWER) - 1)
}

Private Attributes

UShort_t m_tag
 packed word containing strip data. More...

UChar_t m_cable
 stores cable number [0-7]. More...


Detailed Description

Stores the data for a single hit TKR strip. Provides all necessary data to identify the location of this strip and the controller used to read it out - determines which ToT value this strip corresponds to.

Definition at line 19 of file StripId.h.


Member Enumeration Documentation

anonymous enum [private]
 

Enumeration values:
TKR_K_STRIP  
TKR_V_STRIP  
TKR_M_STRIP  
TKR_K_CTRL  
TKR_V_CTRL  
TKR_M_CTRL  
TKR_K_TOWER  
TKR_V_TOWER  
TKR_M_TOWER  

Definition at line 41 of file StripId.h.

anonymous enum
 

Enumeration values:
STRIP_CTRL_LEFT  
STRIP_CTRL_RIGHT  

Definition at line 57 of file StripId.h.


Constructor & Destructor Documentation

StripId::StripId ( )
 

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

Definition at line 63 of file StripId.h.


Member Function Documentation

Int_t StripId::Compare ( TObject * obj )
 

Definition at line 30 of file StripId.cxx.

Bool_t StripId::IsSortable ( ) const
 

Definition at line 49 of file StripId.cxx.

UChar_t StripId::getCable ( ) const [inline]
 

returns cable number used to readout this strip.

Definition at line 70 of file StripId.h.

UShort_t StripId::getController ( ) const [inline]
 

returns the controller bit.

Definition at line 72 of file StripId.h.

UShort_t StripId::getId ( ) const [inline]
 

returns strip id in [0,1599].

Definition at line 68 of file StripId.h.

Referenced by Compare().

UShort_t StripId::getTag ( ) const [inline]
 

returns the whole packed tag for this strip.

Definition at line 66 of file StripId.h.

UShort_t StripId::getTower ( ) const [inline]
 

returns the tower number.

Definition at line 74 of file StripId.h.

Bool_t StripId::setCable ( UChar_t cableVal,
UChar_t cntrl = 0 )
 

Definition at line 86 of file StripId.cxx.

Bool_t StripId::setController ( UShort_t ctrlVal )
 

Definition at line 64 of file StripId.cxx.

Referenced by setCable().

Bool_t StripId::setStrip ( UShort_t stripVal )
 

Definition at line 53 of file StripId.cxx.

Bool_t StripId::setTag ( UShort_t tagVal ) [inline]
 

Definition at line 76 of file StripId.h.

Bool_t StripId::setTower ( UShort_t towerVal )
 

Definition at line 75 of file StripId.cxx.


Member Data Documentation

UChar_t StripId::m_cable [private]
 

stores cable number [0-7].

Definition at line 55 of file StripId.h.

UShort_t StripId::m_tag [private]
 

packed word containing strip data.

Definition at line 53 of file StripId.h.


The documentation for this class was generated from the following files:
Generated at Wed Nov 21 12:22:46 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000