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

#include <AliDigits.h>

Inheritance diagram for AliDigits:

Public Member Functions

 AliDigits ()
 
 AliDigits (const AliDigits &digits)
 
AliDigitsoperator= (const AliDigits &digits)
 
virtual ~AliDigits ()
 
Short_t * GetDigits ()
 
Short_t GetDigitFast (Int_t row, Int_t column)
 
Short_t GetDigitUnchecked (Int_t row, Int_t column)
 
void SetDigitFast (Short_t value, Int_t row, Int_t column)
 
Bool_t BoundsOK (const char *where, Int_t row, Int_t col)
 
Bool_t OutOfBoundsError (const char *where, Int_t row, Int_t column)
 
virtual void Allocate (Int_t rows, Int_t columns)
 
virtual Short_t GetDigit (Int_t row, Int_t column)
 
virtual void ExpandBuffer ()
 
virtual void CompresBuffer (Int_t bufferType, Int_t threshold)
 
virtual Bool_t First ()
 
virtual Bool_t Next ()
 
void SetThreshold (Int_t th)
 
Int_t GetThreshold ()
 
Int_t GetNRows ()
 
Int_t GetNCols ()
 
Int_t CurrentRow ()
 
Int_t CurrentColumn ()
 
Int_t CurrentDigit ()
 
void AcceptHisto (AliH2F *his)
 
AliH2FGenerHisto ()
 
AliH2FDrawDigits (const char *option=0, Float_t x1=-1, Float_t x2=-1, Float_t y1=-1, Float_t y2=-1)
 
Int_t GetSize ()
 
Int_t GetDigitSize ()
 
Int_t GetOverTh (Float_t threshold, Float_t x1=-1, Float_t x2=-1, Float_t y1=-1, Float_t y2=-1)
 
Short_t * GetDigitsColumn (Int_t row)
 
- Public Member Functions inherited from AliSegmentID
 AliSegmentID ()
 
 AliSegmentID (Int_t index)
 
Int_t GetID ()
 
void SetID (Int_t index)
 

Protected Member Functions

virtual void Invalidate ()
 
void ExpandBuffer1 ()
 
void CompresBuffer1 ()
 
Bool_t First0 ()
 
Bool_t Next0 ()
 
Bool_t First1 ()
 
Bool_t Next1 ()
 
Short_t GetDigit1 (Int_t row, Int_t column)
 

Protected Attributes

Int_t fNrows
 number of rows in Segment More...
 
Int_t fNcols
 number of collumns in Segment More...
 
- Protected Attributes inherited from AliSegmentID
Int_t fSegmentID
 

Private Attributes

TArrayS * fElements
 buffer of 2 bytes integers for digits More...
 
TArrayI * fIndex
 index position of column More...
 
Int_t fBufType
 type of the buffer - define compression algorithm More...
 
Int_t fThreshold
 treshold for zero suppresion More...
 
Int_t fNelems
 total number of elements More...
 
Int_t fCurrentRow
 ! current row iteration More...
 
Int_t fCurrentCol
 ! current column iteration More...
 
Int_t fCurrentIndex
 ! current index in field More...
 

Detailed Description

Alice digits array object AliDigits

Manager class generaol Alice segment digits segment is for example one pad row in TPC

Definition at line 18 of file AliDigits.h.

Constructor & Destructor Documentation

AliDigits::AliDigits ( )

Definition at line 50 of file AliDigits.cxx.

AliDigits::AliDigits ( const AliDigits digits)

copy constructor

Definition at line 69 of file AliDigits.cxx.

AliDigits::~AliDigits ( )
virtual

default destructor

Definition at line 111 of file AliDigits.cxx.

Member Function Documentation

void AliDigits::AcceptHisto ( AliH2F his)

make digits buffer with value according histograms values for testing purpose

Definition at line 289 of file AliDigits.cxx.

void AliDigits::Allocate ( Int_t  rows,
Int_t  columns 
)
virtual

construct empty buffer fDigits with size rows x columns

Definition at line 153 of file AliDigits.cxx.

Referenced by AcceptHisto(), AliTPCDigitsArray::CreateRow(), and TestSimDigits().

Bool_t AliDigits::BoundsOK ( const char *  where,
Int_t  row,
Int_t  col 
)
inline

Check If Bound Ok

Definition at line 82 of file AliDigits.h.

void AliDigits::CompresBuffer ( Int_t  bufferType,
Int_t  threshold 
)
virtual

compres buffer according buffertype algorithm

Definition at line 251 of file AliDigits.cxx.

void AliDigits::CompresBuffer1 ( )
protected

compres buffer according algorithm 1

Definition at line 377 of file AliDigits.cxx.

Referenced by CompresBuffer().

Int_t AliDigits::CurrentColumn ( )
inline
Int_t AliDigits::CurrentDigit ( )
inline
Int_t AliDigits::CurrentRow ( )
inline
AliH2F * AliDigits::DrawDigits ( const char *  option = 0,
Float_t  x1 = -1,
Float_t  x2 = -1,
Float_t  y1 = -1,
Float_t  y2 = -1 
)

draw digits in given array

Definition at line 328 of file AliDigits.cxx.

Referenced by drawmerged().

void AliDigits::ExpandBuffer ( )
virtual

expand buffer to two dimensional array

Definition at line 235 of file AliDigits.cxx.

Referenced by CompresBuffer(), drawd(), GenerHisto(), test1(), test3(), test4(), test5(), TestSDigitsDig1(), and TestSDigitsDig2().

void AliDigits::ExpandBuffer1 ( )
protected

expand buffer of type to twodimensional array

Definition at line 344 of file AliDigits.cxx.

Referenced by ExpandBuffer().

Bool_t AliDigits::First ( )
virtual
Bool_t AliDigits::First0 ( )
protected

first for the buffer type 0

Definition at line 428 of file AliDigits.cxx.

Referenced by First().

Bool_t AliDigits::First1 ( )
protected

first for the buffer type 1

Definition at line 461 of file AliDigits.cxx.

Referenced by First().

AliH2F * AliDigits::GenerHisto ( )

make digits histo

Definition at line 310 of file AliDigits.cxx.

Referenced by DrawDigits().

Short_t AliDigits::GetDigit ( Int_t  row,
Int_t  column 
)
virtual

return digit for given row and collumn

Definition at line 224 of file AliDigits.cxx.

Referenced by AliTPCDisplayDigits(), and GoodTracksTPC().

Short_t AliDigits::GetDigit1 ( Int_t  row,
Int_t  column 
)
protected

return digit for given row and column the buffer type 1 no control performed

Definition at line 509 of file AliDigits.cxx.

Referenced by GetDigit().

Short_t AliDigits::GetDigitFast ( Int_t  row,
Int_t  column 
)
inline

return digit from fDigits array if out of range return dummy value ( value at row = 0, collumn = 0)

Definition at line 92 of file AliDigits.h.

Referenced by drawd(), GenerHisto(), GetDigit(), AliSimDigits::GlitchFilter(), test1(), test3(), test4(), test5(), TestSDigitsDig1(), and TestSDigitsDig2().

Short_t* AliDigits::GetDigits ( )
inline

Definition at line 24 of file AliDigits.h.

Short_t * AliDigits::GetDigitsColumn ( Int_t  row)
inline

return row pointer to the array digits

Definition at line 108 of file AliDigits.h.

Int_t AliDigits::GetDigitSize ( )

return size of PURE DIGITS

Definition at line 190 of file AliDigits.cxx.

Short_t AliDigits::GetDigitUnchecked ( Int_t  row,
Int_t  column 
)
inline

return digit from fDigits array if out of range return dummy value ( value at row = 0, collumn = 0)

Definition at line 100 of file AliDigits.h.

Int_t AliDigits::GetNCols ( )
inline

Definition at line 39 of file AliDigits.h.

Referenced by drawd(), test1(), test3(), test4(), test5(), TestSDigitsDig1(), and TestSDigitsDig2().

Int_t AliDigits::GetNRows ( )
inline

Definition at line 38 of file AliDigits.h.

Referenced by drawd(), test1(), test3(), test4(), test5(), TestSDigitsDig1(), and TestSDigitsDig2().

Int_t AliDigits::GetOverTh ( Float_t  threshold,
Float_t  x1 = -1,
Float_t  x2 = -1,
Float_t  y1 = -1,
Float_t  y2 = -1 
)

return number of digits over threshold

Definition at line 198 of file AliDigits.cxx.

Int_t AliDigits::GetSize ( )

return size of object as represented in the memory

Int_t size = sizeof(this);

Definition at line 177 of file AliDigits.cxx.

Int_t AliDigits::GetThreshold ( )
inline

Definition at line 37 of file AliDigits.h.

void AliDigits::Invalidate ( )
protectedvirtual

set default (invalid parameters)

Definition at line 136 of file AliDigits.cxx.

Referenced by Allocate(), and ExpandBuffer1().

Bool_t AliDigits::Next ( )
virtual
Bool_t AliDigits::Next0 ( )
protected

next for the buffer type 0

Definition at line 444 of file AliDigits.cxx.

Referenced by Next().

Bool_t AliDigits::Next1 ( )
protected

next for the buffer type 1

Definition at line 486 of file AliDigits.cxx.

Referenced by Next().

AliDigits & AliDigits::operator= ( const AliDigits digits)

assignment operator

Definition at line 93 of file AliDigits.cxx.

Bool_t AliDigits::OutOfBoundsError ( const char *  where,
Int_t  row,
Int_t  column 
)

Generate an out-of-bounds error. Always returns false.

Definition at line 126 of file AliDigits.cxx.

Referenced by BoundsOK().

void AliDigits::SetDigitFast ( Short_t  value,
Int_t  row,
Int_t  column 
)
inline

set digit

Definition at line 115 of file AliDigits.h.

Referenced by AcceptHisto(), and AliSimDigits::GlitchFilter().

void AliDigits::SetThreshold ( Int_t  th)
inline

Definition at line 36 of file AliDigits.h.

Member Data Documentation

Int_t AliDigits::fBufType
private

type of the buffer - define compression algorithm

Definition at line 68 of file AliDigits.h.

Referenced by AliDigits(), Allocate(), CompresBuffer(), CompresBuffer1(), ExpandBuffer(), First(), GetDigit(), Invalidate(), Next(), and operator=().

Int_t AliDigits::fCurrentCol
private

! current column iteration

Definition at line 72 of file AliDigits.h.

Referenced by CurrentColumn(), First0(), First1(), Next0(), and Next1().

Int_t AliDigits::fCurrentIndex
private

! current index in field

Definition at line 73 of file AliDigits.h.

Referenced by CurrentDigit(), First0(), First1(), Next0(), and Next1().

Int_t AliDigits::fCurrentRow
private

! current row iteration

Definition at line 71 of file AliDigits.h.

Referenced by CurrentRow(), First0(), First1(), Next0(), and Next1().

TArrayI* AliDigits::fIndex
private
Int_t AliDigits::fNelems
private

total number of elements

Definition at line 70 of file AliDigits.h.

Referenced by AliDigits(), Allocate(), BoundsOK(), CompresBuffer1(), ExpandBuffer1(), First0(), First1(), GetDigit1(), Invalidate(), Next0(), Next1(), and operator=().

Int_t AliDigits::fThreshold
private

treshold for zero suppresion

Definition at line 69 of file AliDigits.h.

Referenced by AliDigits(), CompresBuffer(), CompresBuffer1(), First0(), First1(), GetThreshold(), Next0(), Next1(), operator=(), and SetThreshold().


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