![]() |
AliRoot Core
3dc7879 (3dc7879)
|
#include <AliSegmentArray.h>
Public Member Functions | |
AliSegmentArray () | |
AliSegmentArray (const char *classname, Int_t n) | |
virtual | ~AliSegmentArray () |
Bool_t | SetClass (const char *classname) |
const AliSegmentID * | At (Int_t i) |
const AliSegmentID * | operator[] (Int_t i) |
Bool_t | AddSegment (AliSegmentID *segment) |
AliSegmentID * | AddSegment (Int_t index) |
Bool_t | MakeArray (Int_t n) |
void | ClearSegment (Int_t index) |
virtual AliSegmentID * | NewSegment () |
TTree * | GetTree () |
virtual void | MakeTree (char *file=0) |
virtual void | MakeTree (TTree *tree) |
virtual Bool_t | ConnectTree (const char *treeName) |
virtual Bool_t | ConnectTree (TTree *tree) |
virtual AliSegmentID * | LoadSegment (Int_t index) |
virtual AliSegmentID * | LoadEntry (Int_t index) |
virtual void | StoreSegment (Int_t index) |
Bool_t | MakeDictionary (Int_t size) |
TClass * | GetClass () |
Protected Member Functions | |
AliSegmentArray (const AliSegmentArray &segment) | |
AliSegmentArray & | operator= (const AliSegmentArray &segment) |
Protected Attributes | |
TObjArray * | fSegment |
! pointer to array of pointers to segment More... | |
TArrayI * | fTreeIndex |
! pointers(index) table in tree More... | |
Int_t | fNSegment |
number of alocated segments More... | |
TTree * | fTree |
! tree with segment objects More... | |
Bool_t | fTreeOwner |
flag determing the ownership of the fTree More... | |
TBranch * | fBranch |
! total branch More... | |
Private Attributes | |
TClass * | fClass |
! class type of included objects More... | |
Alice segment manager object
Manager class general Alice segment segment is for example one pad row in TPC
Definition at line 23 of file AliSegmentArray.h.
AliSegmentArray::AliSegmentArray | ( | ) |
Definition at line 46 of file AliSegmentArray.cxx.
Referenced by GetClass().
AliSegmentArray::AliSegmentArray | ( | const char * | classname, |
Int_t | n | ||
) |
constructor which
Create an array of objects of classname. The class must inherit from AliSegmentID . The second argument adjust number of entries in the array.
Definition at line 62 of file AliSegmentArray.cxx.
|
virtual |
default destructor
Definition at line 110 of file AliSegmentArray.cxx.
|
protected |
copy constructor to be later implemented
Definition at line 86 of file AliSegmentArray.cxx.
Bool_t AliSegmentArray::AddSegment | ( | AliSegmentID * | segment | ) |
add segment to array
Definition at line 177 of file AliSegmentArray.cxx.
Referenced by AliTPCDigitsArray::CreateRow().
AliSegmentID * AliSegmentArray::AddSegment | ( | Int_t | index | ) |
add segment to array
Definition at line 194 of file AliSegmentArray.cxx.
|
inline |
return segment with given index
Definition at line 81 of file AliSegmentArray.h.
Referenced by AliTPCDigitsArray::StoreRow().
void AliSegmentArray::ClearSegment | ( | Int_t | index | ) |
remove segment from active memory
PH if ((*fSegment)[index]){
Definition at line 209 of file AliSegmentArray.cxx.
Referenced by AliTPCDigitsArray::ClearRow(), and LoadEntry().
|
virtual |
connect tree from current directory
Definition at line 323 of file AliSegmentArray.cxx.
Referenced by AliTPCAltro(), AliTPCDDL(), FindKrClusters(), GetTree(), and StoreSegment().
|
virtual |
Definition at line 311 of file AliSegmentArray.cxx.
|
inline |
Definition at line 50 of file AliSegmentArray.h.
|
inline |
Definition at line 38 of file AliSegmentArray.h.
Referenced by AliTPCDDL().
|
virtual |
load segment at position inex in tree to the memory
Definition at line 376 of file AliSegmentArray.cxx.
Referenced by AliTPCAltro(), AliTPCDDL(), and GetTree().
|
virtual |
load segment with index to the memory
Definition at line 346 of file AliSegmentArray.cxx.
Referenced by GetTree(), and AliTPCDigitsArray::LoadRow().
Bool_t AliSegmentArray::MakeArray | ( | Int_t | n | ) |
make array of pointers to Segments
Definition at line 224 of file AliSegmentArray.cxx.
Referenced by AliSegmentArray(), ConnectTree(), AliTPCDigitsArray::Setup(), and AliTPCDigitsArray::Update().
Bool_t AliSegmentArray::MakeDictionary | ( | Int_t | size | ) |
create index table for tree
Definition at line 287 of file AliSegmentArray.cxx.
Referenced by ConnectTree(), GetTree(), LoadSegment(), and AliTPCDigitsArray::Update().
|
virtual |
AliSegmentID segment;
Definition at line 248 of file AliSegmentArray.cxx.
Referenced by GetTree(), and StoreSegment().
|
virtual |
Make tree with the name
Definition at line 237 of file AliSegmentArray.cxx.
|
virtual |
create object according class information
Definition at line 166 of file AliSegmentArray.cxx.
Referenced by AddSegment(), LoadEntry(), LoadSegment(), MakeDictionary(), and MakeTree().
|
protected |
assignment operator to be later implemented
Definition at line 102 of file AliSegmentArray.cxx.
Referenced by GetClass().
|
inline |
return segment with given index
Definition at line 72 of file AliSegmentArray.h.
Bool_t AliSegmentArray::SetClass | ( | const char * | classname | ) |
set class of stored object
Definition at line 127 of file AliSegmentArray.cxx.
Referenced by AliSegmentArray().
|
virtual |
make segment persistent
Definition at line 397 of file AliSegmentArray.cxx.
Referenced by GetTree(), and AliTPCDigitsArray::StoreRow().
|
protected |
! total branch
Definition at line 60 of file AliSegmentArray.h.
Referenced by ConnectTree(), LoadEntry(), LoadSegment(), MakeDictionary(), MakeTree(), SetClass(), and StoreSegment().
|
private |
! class type of included objects
Definition at line 62 of file AliSegmentArray.h.
Referenced by AddSegment(), GetClass(), NewSegment(), and SetClass().
|
protected |
number of alocated segments
Definition at line 57 of file AliSegmentArray.h.
Referenced by AddSegment(), At(), ConnectTree(), MakeArray(), operator[](), and ~AliSegmentArray().
|
protected |
! pointer to array of pointers to segment
Definition at line 55 of file AliSegmentArray.h.
Referenced by AddSegment(), At(), ClearSegment(), LoadEntry(), LoadSegment(), MakeArray(), operator[](), SetClass(), and ~AliSegmentArray().
|
protected |
! tree with segment objects
Definition at line 58 of file AliSegmentArray.h.
Referenced by ConnectTree(), GetTree(), LoadEntry(), LoadSegment(), MakeDictionary(), MakeTree(), SetClass(), StoreSegment(), AliTPCDigitsArray::Update(), and ~AliSegmentArray().
|
protected |
! pointers(index) table in tree
Definition at line 56 of file AliSegmentArray.h.
Referenced by ConnectTree(), LoadSegment(), MakeDictionary(), SetClass(), and ~AliSegmentArray().
|
protected |
flag determing the ownership of the fTree
Definition at line 59 of file AliSegmentArray.h.
Referenced by ConnectTree(), MakeTree(), SetClass(), StoreSegment(), and ~AliSegmentArray().