![]() |
AliRoot Core
v5-06-30 (35d6c57)
|
Implementation of AliMUONVStore. More...
#include <AliMUON1DArray.h>
Public Member Functions | |
AliMUON1DArray (Int_t theSize=0) | |
AliMUON1DArray (const AliMUON1DArray &other) | |
AliMUON1DArray & | operator= (const AliMUON1DArray &other) |
virtual | ~AliMUON1DArray () |
virtual AliMUON1DArray * | Create () 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... | |
![]() | |
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 | |
TObjArray * | fArray |
Internal array. More... | |
Additional Inherited Members | |
![]() | |
static AliMUONVStore * | Create (TTree &tree, const char *what) |
Create a store from a TTree. More... | |
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.
Definition at line 21 of file AliMUON1DArray.h.
AliMUON1DArray::AliMUON1DArray | ( | Int_t | theSize = 0 | ) |
AliMUON1DArray::AliMUON1DArray | ( | const AliMUON1DArray & | other | ) |
Copy constructor
Definition at line 52 of file AliMUON1DArray.cxx.
|
virtual |
dtor, we're the owner of our internal array.
Definition at line 73 of file AliMUON1DArray.cxx.
|
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().
|
inlinevirtual |
Whether the Connect(TTree&) method is implemented.
Implements AliMUONVStore.
Definition at line 36 of file AliMUON1DArray.h.
|
virtual |
Clear ourselves (i.e. Reset)
Reset
Implements AliMUONVStore.
Definition at line 101 of file AliMUON1DArray.cxx.
|
private |
Make a deep copy
Definition at line 109 of file AliMUON1DArray.cxx.
Referenced by AliMUON1DArray(), and operator=().
|
virtual |
Create an empty copy of this.
Create an empty clone of this
Implements AliMUONVStore.
Definition at line 125 of file AliMUON1DArray.cxx.
|
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.
|
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 AliMUONTrackerData::GetManuSparseHisto(), and Set().
|
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 Set().
AliMUON1DArray & AliMUON1DArray::operator= | ( | const AliMUON1DArray & | other | ) |
Assignment operator
Definition at line 64 of file AliMUON1DArray.cxx.
|
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().
|
private |
Internal array.
Definition at line 57 of file AliMUON1DArray.h.
Referenced by Add(), Clear(), CopyTo(), Create(), CreateIterator(), FindObject(), GetSize(), Set(), and ~AliMUON1DArray().