AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliTPCAltroMapping Class Reference

#include <AliTPCAltroMapping.h>

Inheritance diagram for AliTPCAltroMapping:

Public Member Functions

 AliTPCAltroMapping ()
 
 AliTPCAltroMapping (const char *mappingFile)
 
virtual ~AliTPCAltroMapping ()
 
virtual Int_t GetHWAddress (Int_t padrow, Int_t pad, Int_t sector)
 
virtual Int_t GetPadRow (Int_t hwAddress) const
 
virtual Int_t GetPad (Int_t hwAddress) const
 
virtual Int_t GetSector (Int_t hwAddress) const
 

Protected Member Functions

virtual Bool_t ReadMapping ()
 
virtual Bool_t CreateInvMapping ()
 

Protected Attributes

Int_t fMinPadRow
 Minimum Index of pad-row. More...
 
Int_t fMaxPadRow
 Maximum Index of pad-row. More...
 
Int_t fMaxPad
 Maximum Index of pad inside row. More...
 
Short_t * fInvMapping
 ! Inverse of fMapping More...
 

Private Member Functions

 AliTPCAltroMapping (const AliTPCAltroMapping &mapping)
 
AliTPCAltroMappingoperator= (const AliTPCAltroMapping &mapping)
 

Detailed Description

This class handles the mapping of the Altro channels in the TPC The mapping is read from an external mapping files

Author
C.Cheshkov

Class used to setup the mapping of hardware adresses in ALTRO to pad-rows and pad indeces. The mapping is defined in an external mapping files separately. The class derives from the base altro mapping class defined in the RAW package.

Definition at line 16 of file AliTPCAltroMapping.h.

Constructor & Destructor Documentation

AliTPCAltroMapping::AliTPCAltroMapping ( )

Definition at line 33 of file AliTPCAltroMapping.cxx.

AliTPCAltroMapping::AliTPCAltroMapping ( const char *  mappingFile)

Constructor

Definition at line 44 of file AliTPCAltroMapping.cxx.

AliTPCAltroMapping::~AliTPCAltroMapping ( )
virtual

destructor

Definition at line 58 of file AliTPCAltroMapping.cxx.

AliTPCAltroMapping::AliTPCAltroMapping ( const AliTPCAltroMapping mapping)
private

Member Function Documentation

Bool_t AliTPCAltroMapping::CreateInvMapping ( )
protectedvirtual

Create the inverse mapping needed for the simulation of raw data

Definition at line 114 of file AliTPCAltroMapping.cxx.

Referenced by GetHWAddress().

Int_t AliTPCAltroMapping::GetHWAddress ( Int_t  padrow,
Int_t  pad,
Int_t  sector 
)
virtual

Get the content of the mapping array return -1 in case there is no hardware adress defined for these pad-row and pad

Definition at line 147 of file AliTPCAltroMapping.cxx.

Referenced by AliTPCmapper::GetHWAddress(), and AliTPCmapper::GetHWAddressSector().

Int_t AliTPCAltroMapping::GetPad ( Int_t  hwAddress) const
virtual

Definition at line 190 of file AliTPCAltroMapping.cxx.

Referenced by AliTPCmapper::GetPad().

Int_t AliTPCAltroMapping::GetPadRow ( Int_t  hwAddress) const
virtual

Definition at line 172 of file AliTPCAltroMapping.cxx.

Referenced by AliTPCmapper::GetPadRow().

Int_t AliTPCAltroMapping::GetSector ( Int_t  hwAddress) const
virtual

Definition at line 208 of file AliTPCAltroMapping.cxx.

AliTPCAltroMapping& AliTPCAltroMapping::operator= ( const AliTPCAltroMapping mapping)
private
Bool_t AliTPCAltroMapping::ReadMapping ( )
protectedvirtual

Initalizes the ALTRO mapping from a file Look at the TPC module for the format of the mapping file

Definition at line 66 of file AliTPCAltroMapping.cxx.

Referenced by AliTPCAltroMapping().

Member Data Documentation

Short_t* AliTPCAltroMapping::fInvMapping
protected

! Inverse of fMapping

Definition at line 34 of file AliTPCAltroMapping.h.

Referenced by CreateInvMapping(), GetHWAddress(), and ~AliTPCAltroMapping().

Int_t AliTPCAltroMapping::fMaxPad
protected

Maximum Index of pad inside row.

Definition at line 33 of file AliTPCAltroMapping.h.

Referenced by CreateInvMapping(), GetHWAddress(), and ReadMapping().

Int_t AliTPCAltroMapping::fMaxPadRow
protected

Maximum Index of pad-row.

Definition at line 32 of file AliTPCAltroMapping.h.

Referenced by CreateInvMapping(), GetHWAddress(), and ReadMapping().

Int_t AliTPCAltroMapping::fMinPadRow
protected

Minimum Index of pad-row.

Definition at line 31 of file AliTPCAltroMapping.h.

Referenced by CreateInvMapping(), GetHWAddress(), and ReadMapping().


The documentation for this class was generated from the following files: