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

LogId Class Reference

Log Id class This class identifies the CAL logs using the Tower, Layer and Column. More...

#include <LogId.h>

Inheritance diagram for LogId:

TObject List of all members.

Public Types

enum  CALAxes { X = 0, Y }

Public Methods

 LogId ()
 LogId (UInt_t tag)
 LogId (UShort_t tower, UShort_t layer, UShort_t column)
virtual ~LogId ()
UInt_t getTag () const
UShort_t getColumn () const
UShort_t getLayer () const
UShort_t getTower () const
UInt_t getId () const
CALAxes getXY () const
Bool_t setTag (UInt_t tagVal)
Bool_t setTag (TAG_STRUCT *ts)
Bool_t setColumn (UInt_t columnVal)
Bool_t setLayer (UInt_t layerVal)
Bool_t setTower (UInt_t towerVal)
Bool_t setXY (CALAxes xyVal)
Bool_t setId (UShort_t tower, UShort_t layer, UShort_t column)

Static Public Methods

UInt_t fillTagWord (LogId::TAG_STRUCT *ts)
void fillTagStruct (UInt_t tagVal, LogId::TAG_STRUCT *ts)

Private Types

enum  {
  CAL_K_XY = 1, CAL_V_XY = 0, CAL_M_XY = ((1 << CAL_K_XY) - 1), CAL_K_SEQ = 3,
  CAL_V_SEQ = (CAL_V_XY + CAL_K_XY), CAL_M_SEQ = ((1 << CAL_K_SEQ) - 1), CAL_K_PIPE = 3, CAL_V_PIPE = (CAL_V_SEQ + CAL_K_SEQ),
  CAL_M_PIPE = ((1 << CAL_K_PIPE) - 1), CAL_K_ID = (CAL_K_XY + CAL_K_SEQ + CAL_K_PIPE), CAL_V_ID = CAL_V_XY, CAL_M_ID = ((1 << CAL_K_ID) - 1),
  CAL_K_LAYER = 2, CAL_V_LAYER = (CAL_V_PIPE + CAL_K_PIPE), CAL_M_LAYER = ((1 << CAL_K_LAYER) - 1), CAL_K_COLUMN = 4,
  CAL_V_COLUMN = (CAL_V_LAYER + CAL_K_LAYER), CAL_M_COLUMN = ((1 << CAL_K_COLUMN) - 1), CAL_K_TOWER = 4, CAL_V_TOWER = (CAL_V_COLUMN + CAL_K_COLUMN),
  CAL_M_TOWER = ((1 << CAL_K_TOWER) - 1), CAL_K_NEWID = (CAL_K_LAYER + CAL_K_COLUMN + CAL_K_TOWER), CAL_V_NEWID = CAL_V_LAYER, CAL_M_NEWID = ((1 << CAL_K_ID) - 1),
  BOUNDS_LAYER = 7, BOUNDS_COLUMN = 9, BOUNDS_PIPE = 4
}

Private Attributes

UInt_t m_tag

Static Private Methods

Bool_t isValidTagStruct (LogId::TAG_STRUCT ts)
Bool_t isValidTagWord (UInt_t tagWord)
Bool_t isValidColumn (UInt_t columnVal)
Bool_t isValidLayer (UInt_t layerVal)
UShort_t getTower (UInt_t tagWord)
UShort_t getColumn (UInt_t tagWord)
UShort_t getLayer (UInt_t tagWord)
UInt_t getId (UInt_t tagWord)
UShort_t getXY (UInt_t tagWord)

Detailed Description

Log Id class This class identifies the CAL logs using the Tower, Layer and Column.

Jun 2001 HK: not using pipeline, sequence anymore.. access and set functions for calorimeter log ids Jun 2001 Heather Kelly renamed LogID to LogId Version 1.0 21 Oct 1998 Richard creation Version 1.1 25 Oct 1999 R.Dubois Clone from LCD towerID

Definition at line 19 of file LogId.h.


Member Enumeration Documentation

anonymous enum [private]
 

Enumeration values:
CAL_K_XY  
CAL_V_XY  
CAL_M_XY  
CAL_K_SEQ  
CAL_V_SEQ  
CAL_M_SEQ  
CAL_K_PIPE  
CAL_V_PIPE  
CAL_M_PIPE  
CAL_K_ID  
CAL_V_ID  
CAL_M_ID  
CAL_K_LAYER  
CAL_V_LAYER  
CAL_M_LAYER  
CAL_K_COLUMN  
CAL_V_COLUMN  
CAL_M_COLUMN  
CAL_K_TOWER  
CAL_V_TOWER  
CAL_M_TOWER  
CAL_K_NEWID  
CAL_V_NEWID  
CAL_M_NEWID  
BOUNDS_LAYER  
BOUNDS_COLUMN  
BOUNDS_PIPE  

Definition at line 50 of file LogId.h.

enum LogId::CALAxes
 

orientation of the layer X logs are oriented along the X axis, measures Y Y logs are oriented along the Y axis, measures X

Enumeration values:
X  
Y  

Definition at line 111 of file LogId.h.


Constructor & Destructor Documentation

LogId::LogId ( )
 

LogId::LogId ( UInt_t tag = 0 )
 

Definition at line 23 of file LogId.cxx.

LogId::LogId ( UShort_t tower,
UShort_t layer,
UShort_t column )
 

Definition at line 28 of file LogId.cxx.

LogId::~LogId ( ) [virtual]
 

Definition at line 36 of file LogId.cxx.


Member Function Documentation

void LogId::fillTagStruct ( UInt_t tagVal,
LogId::TAG_STRUCT * ts ) [static]
 

Definition at line 80 of file LogId.cxx.

Referenced by isValidTagWord().

UInt_t LogId::fillTagWord ( LogId::TAG_STRUCT * ts ) [static]
 

Definition at line 92 of file LogId.cxx.

Referenced by setTag().

UShort_t LogId::getColumn ( ) const
 

Definition at line 234 of file LogId.cxx.

Referenced by fillTagStruct().

UShort_t LogId::getColumn ( UInt_t tagWord ) [static, private]
 

Definition at line 223 of file LogId.cxx.

UInt_t LogId::getId ( ) const
 

Definition at line 207 of file LogId.cxx.

UInt_t LogId::getId ( UInt_t tagWord ) [static, private]
 

Definition at line 199 of file LogId.cxx.

Referenced by CalLog::Compare().

UShort_t LogId::getLayer ( ) const
 

Definition at line 249 of file LogId.cxx.

Referenced by fillTagStruct().

UShort_t LogId::getLayer ( UInt_t tagWord ) [static, private]
 

Definition at line 239 of file LogId.cxx.

UInt_t LogId::getTag ( ) const
 

Definition at line 194 of file LogId.cxx.

UShort_t LogId::getTower ( ) const
 

Definition at line 219 of file LogId.cxx.

Referenced by fillTagStruct().

UShort_t LogId::getTower ( UInt_t tagWord ) [static, private]
 

Definition at line 213 of file LogId.cxx.

LogId::CALAxes LogId::getXY ( ) const
 

Definition at line 260 of file LogId.cxx.

Referenced by fillTagStruct(), and getLayer().

UShort_t LogId::getXY ( UInt_t tagWord ) [static, private]
 

Definition at line 255 of file LogId.cxx.

Bool_t LogId::isValidColumn ( UInt_t columnVal ) [static, private]
 

Definition at line 41 of file LogId.cxx.

Referenced by isValidTagStruct(), and setColumn().

Bool_t LogId::isValidLayer ( UInt_t layerVal ) [static, private]
 

Definition at line 49 of file LogId.cxx.

Referenced by isValidTagStruct().

Bool_t LogId::isValidTagStruct ( LogId::TAG_STRUCT ts ) [static, private]
 

Definition at line 58 of file LogId.cxx.

Referenced by isValidTagWord(), and setTag().

Bool_t LogId::isValidTagWord ( UInt_t tagWord ) [static, private]
 

Definition at line 69 of file LogId.cxx.

Referenced by setTag().

Bool_t LogId::setColumn ( UInt_t columnVal )
 

Definition at line 133 of file LogId.cxx.

Referenced by LogId(), and setId().

Bool_t LogId::setId ( UShort_t tower,
UShort_t layer,
UShort_t column )
 

Definition at line 184 of file LogId.cxx.

Referenced by DigiEvent::getCalLog().

Bool_t LogId::setLayer ( UInt_t layerVal )
 

Definition at line 157 of file LogId.cxx.

Referenced by LogId(), and setId().

Bool_t LogId::setTag ( TAG_STRUCT * ts )
 

Definition at line 115 of file LogId.cxx.

Bool_t LogId::setTag ( UInt_t tagVal )
 

Definition at line 105 of file LogId.cxx.

Referenced by CalLog::CalLog(), and LogId().

Bool_t LogId::setTower ( UInt_t towerVal )
 

Definition at line 125 of file LogId.cxx.

Referenced by LogId(), and setId().

Bool_t LogId::setXY ( CALAxes xyVal )
 

Definition at line 147 of file LogId.cxx.


Member Data Documentation

UInt_t LogId::m_tag [private]
 

Definition at line 91 of file LogId.h.


The documentation for this class was generated from the following files:
Generated at Mon Nov 26 18:20:01 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000