AliRoot Core  edcc906 (edcc906)
AliMUON1DArray Class Reference

Implementation of AliMUONVStore. More...

#include <AliMUON1DArray.h>

Inheritance diagram for AliMUON1DArray:

Public Member Functions

 AliMUON1DArray (Int_t theSize=0)
 
 AliMUON1DArray (const AliMUON1DArray &other)
 
AliMUON1DArrayoperator= (const AliMUON1DArray &other)
 
virtual ~AliMUON1DArray ()
 
virtual AliMUON1DArrayCreate () const
 Create an empty copy of this. More...
 
virtual Bool_t Add (TObject *object)
 
virtual Bool_t CanConnect () const
 Whether the Connect(TTree&) method is implemented. More...
 
virtual void Clear (Option_t *opt="")
 Clear ourselves (i.e. Reset) More...
 
virtual TIterator * CreateIterator () const
 Return an iterator to loop over the whole store. More...
 
virtual TObject * FindObject (UInt_t identifier) const
 Return the object stored with id. More...
 
virtual Int_t GetSize () const
 The number of objects stored. More...
 
- Public Member Functions inherited from AliMUONVStore
 AliMUONVStore ()
 
virtual ~AliMUONVStore ()
 
virtual Bool_t Connect (TTree &tree, Bool_t alone=kTRUE) const
 Connect us to a TTree (only valid if CanConnect()==kTRUE) More...
 
virtual TObject * FindObject (const char *name) const
 Find an object by name. More...
 
virtual TObject * FindObject (const TObject *object) const
 Find an object. More...
 
virtual TObject * FindObject (Int_t i, Int_t j) const
 Find an object using 2 ids. More...
 
virtual Int_t GetSize (Int_t i) const
 The number of objects stored for firstid=i. Not implemented by default. More...
 
virtual Bool_t IsEmpty () const
 Whether we are empty or not. More...
 
virtual void Print (Option_t *wildcard="") const
 Print all objects whose name matches wildcard. More...
 
virtual void Print (Option_t *wildcard, Option_t *opt) const
 Print, with option, all objects whose name matches wildcard. More...
 

Private Member Functions

void CopyTo (AliMUON1DArray &to) const
 
Bool_t Set (Int_t i, TObject *object, Bool_t replace)
 

Private Attributes

TObjArrayfArray
 Internal array. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from AliMUONVStore
static AliMUONVStoreCreate (TTree &tree, const char *what)
 Create a store from a TTree. More...
 

Detailed Description

Implementation of AliMUONVStore.

This class is simply a wrapper to a TObjArray, offering in addition a control over the replacement policy when you add something to it.

Author
Laurent Aphecetche

Definition at line 21 of file AliMUON1DArray.h.

Constructor & Destructor Documentation

AliMUON1DArray::AliMUON1DArray ( Int_t  theSize = 0)

Default ctor

Definition at line 39 of file AliMUON1DArray.cxx.

Referenced by Create().

AliMUON1DArray::AliMUON1DArray ( const AliMUON1DArray other)

Copy constructor

Definition at line 52 of file AliMUON1DArray.cxx.

AliMUON1DArray::~AliMUON1DArray ( )
virtual

dtor, we're the owner of our internal array.

Definition at line 73 of file AliMUON1DArray.cxx.

Member Function Documentation

Bool_t AliMUON1DArray::Add ( TObject *  object)
virtual

Add an object. Object must have a valid UniqueID, which is used as the index of the array.

Add an object to this, if its uniqueID is below maxsize

Implements AliMUONVStore.

Definition at line 83 of file AliMUON1DArray.cxx.

Referenced by AliMUONTrackerData::GetManuSparseHisto().

virtual Bool_t AliMUON1DArray::CanConnect ( ) const
inlinevirtual

Whether the Connect(TTree&) method is implemented.

Implements AliMUONVStore.

Definition at line 36 of file AliMUON1DArray.h.

void AliMUON1DArray::Clear ( Option_t *  opt = "")
virtual

Clear ourselves (i.e. Reset)

Reset

Implements AliMUONVStore.

Definition at line 101 of file AliMUON1DArray.cxx.

Referenced by CanConnect().

void AliMUON1DArray::CopyTo ( AliMUON1DArray to) const
private

Make a deep copy

Definition at line 109 of file AliMUON1DArray.cxx.

Referenced by AliMUON1DArray(), CanConnect(), and operator=().

AliMUON1DArray * AliMUON1DArray::Create ( ) const
virtual

Create an empty copy of this.

Create an empty clone of this

Implements AliMUONVStore.

Definition at line 125 of file AliMUON1DArray.cxx.

TIterator * AliMUON1DArray::CreateIterator ( ) const
virtual

Return an iterator to loop over the whole store.

Return an iterator on this

Implements AliMUONVStore.

Definition at line 147 of file AliMUON1DArray.cxx.

Referenced by CanConnect().

TObject * AliMUON1DArray::FindObject ( UInt_t  identifier) const
virtual

Return the object stored with id.

Get the object located at index i, if it exists, and if i is correct.

Reimplemented from AliMUONVStore.

Definition at line 133 of file AliMUON1DArray.cxx.

Referenced by CanConnect(), AliMUONTrackerData::GetManuSparseHisto(), and Set().

Int_t AliMUON1DArray::GetSize ( ) const
virtual

The number of objects stored.

Return the number of object we hold

Implements AliMUONVStore.

Definition at line 189 of file AliMUON1DArray.cxx.

Referenced by CanConnect(), and Set().

AliMUON1DArray & AliMUON1DArray::operator= ( const AliMUON1DArray other)

Assignment operator

Definition at line 64 of file AliMUON1DArray.cxx.

Bool_t AliMUON1DArray::Set ( Int_t  i,
TObject *  object,
Bool_t  replace 
)
private

Set the object located at i If replace=kFALSE and there's already an object at location i, this method fails and returns kFALSE, otherwise it returns kTRUE

Definition at line 155 of file AliMUON1DArray.cxx.

Referenced by Add(), and CanConnect().

Member Data Documentation

TObjArray* AliMUON1DArray::fArray
private

Internal array.

Definition at line 57 of file AliMUON1DArray.h.

Referenced by Add(), Clear(), CopyTo(), Create(), CreateIterator(), FindObject(), GetSize(), Set(), and ~AliMUON1DArray().


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