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

#include <AliSegmentArray.h>

Inheritance diagram for AliSegmentArray:

Public Member Functions

 AliSegmentArray ()
 
 AliSegmentArray (const char *classname, Int_t n)
 
virtual ~AliSegmentArray ()
 
Bool_t SetClass (const char *classname)
 
const AliSegmentIDAt (Int_t i)
 
const AliSegmentIDoperator[] (Int_t i)
 
Bool_t AddSegment (AliSegmentID *segment)
 
AliSegmentIDAddSegment (Int_t index)
 
Bool_t MakeArray (Int_t n)
 
void ClearSegment (Int_t index)
 
virtual AliSegmentIDNewSegment ()
 
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 AliSegmentIDLoadSegment (Int_t index)
 
virtual AliSegmentIDLoadEntry (Int_t index)
 
virtual void StoreSegment (Int_t index)
 
Bool_t MakeDictionary (Int_t size)
 
TClass * GetClass ()
 

Protected Member Functions

 AliSegmentArray (const AliSegmentArray &segment)
 
AliSegmentArrayoperator= (const AliSegmentArray &segment)
 

Protected Attributes

TObjArrayfSegment
 ! 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...
 

Detailed Description

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.

Constructor & Destructor Documentation

AliSegmentArray::AliSegmentArray ( )

Definition at line 46 of file AliSegmentArray.cxx.

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.

AliSegmentArray::~AliSegmentArray ( )
virtual

default destructor

Definition at line 110 of file AliSegmentArray.cxx.

AliSegmentArray::AliSegmentArray ( const AliSegmentArray segment)
protected

copy constructor to be later implemented

Definition at line 86 of file AliSegmentArray.cxx.

Member Function Documentation

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.

const AliSegmentID * AliSegmentArray::At ( Int_t  i)
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().

Bool_t AliSegmentArray::ConnectTree ( const char *  treeName)
virtual

connect tree from current directory

Definition at line 323 of file AliSegmentArray.cxx.

Referenced by AliTPCAltro(), AliTPCDDL(), and FindKrClusters().

Bool_t AliSegmentArray::ConnectTree ( TTree *  tree)
virtual

Definition at line 311 of file AliSegmentArray.cxx.

TClass* AliSegmentArray::GetClass ( )
inline

Definition at line 50 of file AliSegmentArray.h.

TTree* AliSegmentArray::GetTree ( )
inline

Definition at line 38 of file AliSegmentArray.h.

Referenced by AliTPCDDL().

AliSegmentID * AliSegmentArray::LoadEntry ( Int_t  index)
virtual

load segment at position inex in tree to the memory

Definition at line 376 of file AliSegmentArray.cxx.

Referenced by AliTPCAltro(), and AliTPCDDL().

AliSegmentID * AliSegmentArray::LoadSegment ( Int_t  index)
virtual

load segment with index to the memory

Definition at line 346 of file AliSegmentArray.cxx.

Referenced by 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(), LoadSegment(), and AliTPCDigitsArray::Update().

void AliSegmentArray::MakeTree ( char *  file = 0)
virtual

AliSegmentID segment;

Definition at line 248 of file AliSegmentArray.cxx.

Referenced by StoreSegment().

void AliSegmentArray::MakeTree ( TTree *  tree)
virtual

Make tree with the name

Definition at line 237 of file AliSegmentArray.cxx.

AliSegmentID * AliSegmentArray::NewSegment ( )
virtual

create object according class information

Definition at line 166 of file AliSegmentArray.cxx.

Referenced by AddSegment(), LoadEntry(), LoadSegment(), MakeDictionary(), and MakeTree().

AliSegmentArray & AliSegmentArray::operator= ( const AliSegmentArray segment)
protected

assignment operator to be later implemented

Definition at line 102 of file AliSegmentArray.cxx.

const AliSegmentID * AliSegmentArray::operator[] ( Int_t  i)
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().

void AliSegmentArray::StoreSegment ( Int_t  index)
virtual

make segment persistent

Definition at line 397 of file AliSegmentArray.cxx.

Referenced by AliTPCDigitsArray::StoreRow().

Member Data Documentation

TBranch* AliSegmentArray::fBranch
protected

! total branch

Definition at line 60 of file AliSegmentArray.h.

Referenced by ConnectTree(), LoadEntry(), LoadSegment(), MakeDictionary(), MakeTree(), SetClass(), and StoreSegment().

TClass* AliSegmentArray::fClass
private

! class type of included objects

Definition at line 62 of file AliSegmentArray.h.

Referenced by AddSegment(), GetClass(), NewSegment(), and SetClass().

Int_t AliSegmentArray::fNSegment
protected

number of alocated segments

Definition at line 57 of file AliSegmentArray.h.

Referenced by AddSegment(), At(), ConnectTree(), MakeArray(), operator[](), and ~AliSegmentArray().

TObjArray* AliSegmentArray::fSegment
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().

TTree* AliSegmentArray::fTree
protected
TArrayI* AliSegmentArray::fTreeIndex
protected

! pointers(index) table in tree

Definition at line 56 of file AliSegmentArray.h.

Referenced by ConnectTree(), LoadSegment(), MakeDictionary(), SetClass(), and ~AliSegmentArray().

Bool_t AliSegmentArray::fTreeOwner
protected

flag determing the ownership of the fTree

Definition at line 59 of file AliSegmentArray.h.

Referenced by ConnectTree(), MakeTree(), SetClass(), and ~AliSegmentArray().


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