AliRoot Core  c355010 (c355010)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliFMDIndex Class Reference

FMD detector coordinates. More...

#include <FMD/AliFMDIndex.h>

Inheritance diagram for AliFMDIndex:

Public Member Functions

 AliFMDIndex ()
 
 AliFMDIndex (const AliFMDIndex &o)
 
 AliFMDIndex (UShort_t detector, Char_t ring='\0', UShort_t sector=0, UShort_t strip=0)
 
AliFMDIndexoperator= (const AliFMDIndex &o)
 
bool operator== (const AliFMDIndex &o) const
 
bool operator< (const AliFMDIndex &o) const
 
virtual ~AliFMDIndex ()
 
UShort_t Detector () const
 
Char_t Ring () const
 
UShort_t Sector () const
 
UShort_t Strip () const
 
void SetDetector (UShort_t x)
 
void SetRing (Char_t x)
 
void SetSector (UShort_t x)
 
void SetStrip (UShort_t x)
 
virtual void Print (Option_t *opt="") const
 
const char * Name () const
 

Protected Member Functions

Int_t Hash () const
 

Protected Attributes

UShort_t fDetector
 
Char_t fRing
 
UShort_t fSector
 
UShort_t fStrip
 
TString fName
 
Int_t fHash
 Cached name. More...
 

Detailed Description

FMD detector coordinates.

Definition at line 36 of file AliFMDIndex.h.

Constructor & Destructor Documentation

AliFMDIndex::AliFMDIndex ( )

CTOR

Definition at line 49 of file AliFMDIndex.cxx.

AliFMDIndex::AliFMDIndex ( const AliFMDIndex o)

Copy CTOR

Parameters
oObject to copy from

Definition at line 61 of file AliFMDIndex.cxx.

AliFMDIndex::AliFMDIndex ( UShort_t  detector,
Char_t  ring = '\0',
UShort_t  sector = 0,
UShort_t  strip = 0 
)

Constrctor

Parameters
detectorDetector
ringRing
sectorSector
stripStrip

Definition at line 73 of file AliFMDIndex.cxx.

virtual AliFMDIndex::~AliFMDIndex ( )
inlinevirtual

DTOR

Definition at line 66 of file AliFMDIndex.h.

Member Function Documentation

UShort_t AliFMDIndex::Detector ( ) const
inline
Returns
Detector #

Definition at line 68 of file AliFMDIndex.h.

Int_t AliFMDIndex::Hash ( ) const
protected

Definition at line 111 of file AliFMDIndex.cxx.

Referenced by operator<(), and operator==().

const char * AliFMDIndex::Name ( ) const
Returns
Name

Definition at line 135 of file AliFMDIndex.cxx.

Referenced by AliFMDObjIndex::GetName(), operator<<(), and Print().

bool AliFMDIndex::operator< ( const AliFMDIndex o) const
inline

Comparison operator

Parameters
oObject to compare to
Returns
true if this is smaller than o

Definition at line 153 of file AliFMDIndex.h.

AliFMDIndex & AliFMDIndex::operator= ( const AliFMDIndex o)

Assignment operator

Parameters
oObject to assign from
Returns
Reference to this object

Definition at line 97 of file AliFMDIndex.cxx.

Referenced by AliFMDObjIndex::operator=().

bool AliFMDIndex::operator== ( const AliFMDIndex o) const
inline

Comparison operator

Parameters
oObject to compare to
Returns
true if these refer to the same index

Definition at line 145 of file AliFMDIndex.h.

void AliFMDIndex::Print ( Option_t *  opt = "") const
virtual

Print information

Parameters
optNot used

Definition at line 127 of file AliFMDIndex.cxx.

Char_t AliFMDIndex::Ring ( ) const
inline
Returns
Ring ID

Definition at line 70 of file AliFMDIndex.h.

UShort_t AliFMDIndex::Sector ( ) const
inline
Returns
sector #

Definition at line 72 of file AliFMDIndex.h.

void AliFMDIndex::SetDetector ( UShort_t  x)
inline
Parameters
xDetector #

Definition at line 76 of file AliFMDIndex.h.

void AliFMDIndex::SetRing ( Char_t  x)
inline
Parameters
xRing ID

Definition at line 78 of file AliFMDIndex.h.

void AliFMDIndex::SetSector ( UShort_t  x)
inline
Parameters
xsector #

Definition at line 80 of file AliFMDIndex.h.

void AliFMDIndex::SetStrip ( UShort_t  x)
inline
Parameters
xstrip #

Definition at line 82 of file AliFMDIndex.h.

UShort_t AliFMDIndex::Strip ( ) const
inline
Returns
strip #

Definition at line 74 of file AliFMDIndex.h.

Member Data Documentation

UShort_t AliFMDIndex::fDetector
protected

Definition at line 90 of file AliFMDIndex.h.

Referenced by Detector(), Hash(), Name(), operator=(), and SetDetector().

Int_t AliFMDIndex::fHash
mutableprotected

Cached name.

Definition at line 95 of file AliFMDIndex.h.

Referenced by Hash(), operator=(), SetDetector(), SetRing(), SetSector(), and SetStrip().

TString AliFMDIndex::fName
mutableprotected

Definition at line 94 of file AliFMDIndex.h.

Referenced by Name().

Char_t AliFMDIndex::fRing
protected

Definition at line 91 of file AliFMDIndex.h.

Referenced by Hash(), Name(), operator=(), Ring(), and SetRing().

UShort_t AliFMDIndex::fSector
protected

Definition at line 92 of file AliFMDIndex.h.

Referenced by Hash(), Name(), operator=(), Sector(), and SetSector().

UShort_t AliFMDIndex::fStrip
protected

Definition at line 93 of file AliFMDIndex.h.

Referenced by Hash(), Name(), operator=(), SetStrip(), and Strip().


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