AliFMDAltroMapping Class Reference
[Basic classes]

#include <AliFMDAltroMapping.h>

List of all members.


Detailed Description

Class that encodes a map to/from ALTRO hardware address to FMD detector coordinates.

The hardware address consist of a DDL number and 12bits of ALTRO addresses. The ALTRO address are formatted as follows.

    12              7         4            0
    |---------------|---------|------------|
    | Board #       | ALTRO # | Channel #  |
    +---------------+---------+------------+
    

Definition at line 36 of file AliFMDAltroMapping.h.

Public Member Functions

 AliFMDAltroMapping ()
Bool_t Hardware2Detector (UInt_t ddl, UInt_t hwaddr, UShort_t &det, Char_t &ring, UShort_t &sec, UShort_t &str) const
Bool_t Detector2Hardware (UShort_t det, Char_t ring, UShort_t sec, UShort_t str, UInt_t &ddl, UInt_t &hwaddr) const
Int_t GetHWAdress (Int_t sector, Int_t str, Int_t ring) const
Int_t GetHWAddress (Int_t sector, Int_t str, Int_t ring) const
Int_t GetPadRow (Int_t hwaddr) const
Int_t GetPad (Int_t hwaddr) const
Int_t GetSector (Int_t hwaddr) const

Protected Member Functions

virtual Bool_t ReadMapping ()
virtual void DeleteMappingArrays ()


Constructor & Destructor Documentation

AliFMDAltroMapping::AliFMDAltroMapping  ) 
 

Constructor


Member Function Documentation

virtual void AliFMDAltroMapping::DeleteMappingArrays  )  [protected, virtual]
 

Clear map in memory

Bool_t AliFMDAltroMapping::Detector2Hardware UShort_t  det,
Char_t  ring,
UShort_t  sec,
UShort_t  str,
UInt_t &  ddl,
UInt_t &  hwaddr
const
 

Map a detector index into a hardware address.

Parameters:
det The detector #
ring The ring ID
sec The sector #
str The strip #
ddl On return, hardware DDL number
hwaddr On return, hardware address.
Returns:
true on success, false otherwise

Int_t AliFMDAltroMapping::GetHWAddress Int_t  sector,
Int_t  str,
Int_t  ring
const
 

convert a partial detector index into a hardware address

Parameters:
sector Sector number
str Strip number
ring Ring ID as an integer
Returns:
Hardware address

Int_t AliFMDAltroMapping::GetHWAdress Int_t  sector,
Int_t  str,
Int_t  ring
const [inline]
 

Here to take care of a a misspelling in base class

Parameters:
sector Sector number
str Strip number
ring Ring ID as an integer
Returns:
Hardware address

Definition at line 68 of file AliFMDAltroMapping.h.

Int_t AliFMDAltroMapping::GetPad Int_t  hwaddr  )  const
 

Get the pad (or strip) corresponding to hardware address

Parameters:
hwaddr hardware address
Returns:
Strip number

Int_t AliFMDAltroMapping::GetPadRow Int_t  hwaddr  )  const
 

Get the pad-row (or sector) corresponding to hardware address

Parameters:
hwaddr hardware address
Returns:
Sector number

Int_t AliFMDAltroMapping::GetSector Int_t  hwaddr  )  const
 

Get the sector (or ring) corresponding to hardware address

Parameters:
hwaddr hardware address
Returns:
Ring ID as an integer

Bool_t AliFMDAltroMapping::Hardware2Detector UInt_t  ddl,
UInt_t  hwaddr,
UShort_t &  det,
Char_t &  ring,
UShort_t &  sec,
UShort_t &  str
const
 

Map a hardware address into a detector index.

Parameters:
ddl Hardware DDL number
hwaddr Hardware address.
det On return, the detector #
ring On return, the ring ID
sec On return, the sector #
str On return, the strip #
Returns:
true on success, false otherwise

virtual Bool_t AliFMDAltroMapping::ReadMapping  )  [protected, virtual]
 

Read map from file - not used

Returns:
true on success


The documentation for this class was generated from the following file:
Generated on Fri Mar 24 17:11:22 2006 for ALICE FMD Off-line by  doxygen 1.4.6