ROOT logo
AliRoot » TRD » AliTRDSignalIndex

class AliTRDSignalIndex: public TObject


General container for data from TRD detector segments
Adapted from AliDigits, origin M.Ivanov

Author:
Mateusz Ploskon (ploskon@ikf.uni-frankfurt.de)


Function Members (Methods)

public:
AliTRDSignalIndex()
AliTRDSignalIndex(const AliTRDSignalIndex& d)
AliTRDSignalIndex(Int_t nrow, Int_t ncol, Int_t ntime)
virtual~AliTRDSignalIndex()
voidTObject::AbstractMethod(const char* method) const
voidAddIndexRC(const Int_t row, const Int_t col)
voidAllocate(const Int_t nrow, const Int_t ncol, const Int_t ntime)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
Bool_tCheckSorting(Int_t& row, Int_t& col)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
voidClearAll()
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidCopy(TObject& d) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
Short_t*GetArray() const
Int_tGetCurrentCol() const
Int_tGetCurrentRow() const
Int_tGetCurrentTbin() const
Int_tGetDetNumber() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
Int_tGetLayer() const
virtual const char*TObject::GetName() const
Int_tGetNcol() const
Int_tGetNoOfIndexes() const
Int_tGetNrow() const
Int_tGetNtime() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
Int_tGetSM() const
Int_tGetStack() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
Bool_tHasEntry() const
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
voidInitSortedIndex()
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
Bool_tIsAllocated() const
Bool_tIsBoolIndex(Int_t row, Int_t col) const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
Bool_tNextRCIndex(Int_t& row, Int_t& col)
Bool_tNextRCTbinIndex(Int_t& row, Int_t& col, Int_t& tbin)
Bool_tNextTbinIndex(Int_t& tbin)
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
AliTRDSignalIndex&operator=(const AliTRDSignalIndex& d)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidReset()
voidResetArrays()
voidTObject::ResetBit(UInt_t f)
voidResetContent()
voidResetContentConditional(const Int_t nrow, const Int_t ncol, const Int_t ntime)
voidResetCounters()
voidResetTbinCounter() const
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidSetDetNumber(const Int_t ix)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetLayer(const Int_t ix)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetSM(const Int_t ix)
voidSetStack(const Int_t ix)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()

Data Members

private:
Bool_t*fBoolIndexIndices
Int_tfCountRCthe number of added rc combinations
Int_tfCurrColLast Col read out of SortedIndex
Int_tfCurrRowLast Row read out of SortedIndex
Int_tfCurrTbinLast outgiven Tbin
Int_tfDetDetector number
Int_tfLayerLayer position in the full TRD
Int_tfMaxLimitMax number of things in the array
Int_tfNcolsNumber of cols in the chamber
Int_tfNrowsNumber of rows in the chamber
Int_tfNtbinsNumber of tbins in the chamber
Int_tfPositionRCPosition in the SortedIndex
Int_tfSMSuper module - position in the full TRD
AliTRDSignalIndex::RowCol*fSortedIndexSorted indices
Bool_tfSortedWasInitWas SortedIndex initialized?
Int_tfStackStack position in the full TRD

Class Charts

Inheritance Chart:
TObject
AliTRDSignalIndex

Function documentation

AliTRDSignalIndex()
 Default contructor

AliTRDSignalIndex(Int_t nrow, Int_t ncol, Int_t ntime)
 Not the default contructor... hmmm...

AliTRDSignalIndex(const AliTRDSignalIndex& d)
 Copy constructor

~AliTRDSignalIndex()
 Destructor

void Copy(TObject& d) const
 Copy function

void Allocate(const Int_t nrow, const Int_t ncol, const Int_t ntime)
 Create the arrays

void ResetArrays()
void Reset()
 Reset the array but keep the size - realloc

void ResetContent()
 Reset the array but keep the size - no realloc

void ResetContentConditional(const Int_t nrow, const Int_t ncol, const Int_t ntime)
 Reset the array but keep the size if no need to enlarge - no realloc

void ClearAll()
 Reset the values - clear all!

Bool_t CheckSorting(Int_t& row, Int_t& col)
 Check whether array was read to end or it was not sorted until now

Bool_t NextRCTbinIndex(Int_t& row, Int_t& col, Int_t& tbin)
 Returns the next tbin, or if there is no next time bin, it returns the
 next used RC combination.

Bool_t NextTbinIndex(Int_t& tbin)
 Returns the next tbin of the current RC combination

void InitSortedIndex()
 Creates the SortedIndex

void ResetCounters()
 Reset the counters/iterators

void AddIndexRC(const Int_t row, const Int_t col)
 Adds RC combination to array

Bool_t NextRCIndex(Int_t& row, Int_t& col)
 Returns next used RC combination

AliTRDSignalIndex & operator=(const AliTRDSignalIndex& d)
void ResetTbinCounter() const
{ }
Int_t GetCurrentRow() const
{ return fCurrRow; }
Int_t GetCurrentCol() const
{ return fCurrCol; }
Int_t GetCurrentTbin() const
{ return fCurrTbin; }
Bool_t IsBoolIndex(Int_t row, Int_t col) const
{return fBoolIndex[row*fNcols+col];}
Bool_t IsAllocated() const
 Return kTRUE if array allocated and there is no need to call allocate
void SetSM(const Int_t ix)
{ fSM = ix; }
void SetStack(const Int_t ix)
{ fStack = ix; }
void SetLayer(const Int_t ix)
{ fLayer = ix; }
void SetDetNumber(const Int_t ix)
{ fDet = ix; }
Int_t GetDetNumber() const
{ return fDet; }
Int_t GetLayer() const
{ return fLayer; }
Int_t GetStack() const
{ return fStack; }
Int_t GetSM() const
{ return fSM; }
Short_t * GetArray() const
{ return (Short_t*)fSortedIndex; }
Int_t GetNoOfIndexes() const
{ return fCountRC-1; }
Bool_t HasEntry() const
{ return fCountRC > 1 ? kTRUE : kFALSE; }
Int_t GetNrow() const
{ return fNrows; }
Int_t GetNcol() const
{ return fNcols; }
Int_t GetNtime() const
{ return fNtbins; }