AliRoot Core  7e03155 (7e03155)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUON1DMap Class Reference

Implementation of AliMUONVStore. More...

#include <AliMUON1DMap.h>

Inheritance diagram for AliMUON1DMap:

Public Member Functions

 AliMUON1DMap (Int_t theSize)
 
 AliMUON1DMap (TRootIOCtor *ioCtor)
 
 AliMUON1DMap (const AliMUON1DMap &other)
 
AliMUON1DMapoperator= (const AliMUON1DMap &other)
 
virtual ~AliMUON1DMap ()
 
virtual Bool_t Add (TObject *object)
 Add an object to the store. More...
 
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 AliMUON1DMapCreate () const
 Create an empty copy of this. More...
 
virtual TObject * FindObject (UInt_t i) const
 Find an object using a single id. More...
 
virtual TObject * FindObject (Int_t i, Int_t j) const
 Find an object using 2 ids. More...
 
virtual TIterator * CreateIterator () const
 Return an iterator to loop over the whole store. 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 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

virtual Bool_t Set (Int_t i, TObject *object)
 
 AliMUON1DMap ()
 Not implemented. More...
 

Private Attributes

AliMpExMapfMap
 Internal array (map) 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 an AliMpExMap, offering in addition a control over the replacement policy when you add something to it.

Author
Laurent Aphecetche

Definition at line 21 of file AliMUON1DMap.h.

Constructor & Destructor Documentation

AliMUON1DMap::AliMUON1DMap ( Int_t  theSize)

Default ctor

Definition at line 47 of file AliMUON1DMap.cxx.

AliMUON1DMap::AliMUON1DMap ( TRootIOCtor *  ioCtor)

I/O ctor

Definition at line 38 of file AliMUON1DMap.cxx.

AliMUON1DMap::AliMUON1DMap ( const AliMUON1DMap other)

Copy constructor

Definition at line 61 of file AliMUON1DMap.cxx.

AliMUON1DMap::~AliMUON1DMap ( )
virtual

destructor

Definition at line 78 of file AliMUON1DMap.cxx.

AliMUON1DMap::AliMUON1DMap ( )
private

Not implemented.

Referenced by Create().

Member Function Documentation

Bool_t AliMUON1DMap::Add ( TObject *  object)
virtual

Add an object to the store.

Add an object to this, using uniqueID as the key

Implements AliMUONVStore.

Definition at line 86 of file AliMUON1DMap.cxx.

Referenced by AliMUONTrackerData::GetChannelSparseHisto().

virtual Bool_t AliMUON1DMap::CanConnect ( ) const
inlinevirtual

Whether the Connect(TTree&) method is implemented.

Implements AliMUONVStore.

Definition at line 32 of file AliMUON1DMap.h.

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

Clear ourselves (i.e. Reset)

Reset

Implements AliMUONVStore.

Definition at line 95 of file AliMUON1DMap.cxx.

AliMUON1DMap * AliMUON1DMap::Create ( ) const
virtual

Create an empty copy of this.

Create an empty clone of this

Implements AliMUONVStore.

Definition at line 103 of file AliMUON1DMap.cxx.

TIterator * AliMUON1DMap::CreateIterator ( ) const
virtual

Return an iterator to loop over the whole store.

Create and return an iterator on this map Returned iterator must be deleted by user.

Implements AliMUONVStore.

Definition at line 130 of file AliMUON1DMap.cxx.

TObject * AliMUON1DMap::FindObject ( UInt_t  uniqueID) const
virtual

Find an object using a single id.

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

Generic find method. Should be overriden by derived class if it can be made more efficient there.

Reimplemented from AliMUONVStore.

Definition at line 111 of file AliMUON1DMap.cxx.

Referenced by AliMUONTrackerData::GetChannelSparseHisto(), and Set().

TObject * AliMUON1DMap::FindObject ( Int_t  i,
Int_t  j 
) const
virtual

Find an object using 2 ids.

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

Find an object using 2 identifiers

Reimplemented from AliMUONVStore.

Definition at line 119 of file AliMUON1DMap.cxx.

Int_t AliMUON1DMap::GetSize ( ) const
virtual

The number of objects stored.

Return the number of objects we hold

Implements AliMUONVStore.

Definition at line 139 of file AliMUON1DMap.cxx.

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

Assignment operator

Definition at line 70 of file AliMUON1DMap.cxx.

Bool_t AliMUON1DMap::Set ( Int_t  i,
TObject *  object 
)
privatevirtual

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

Definition at line 147 of file AliMUON1DMap.cxx.

Referenced by Add().

Member Data Documentation

AliMpExMap* AliMUON1DMap::fMap
private

Internal array (map)

Definition at line 57 of file AliMUON1DMap.h.

Referenced by AliMUON1DMap(), Clear(), Create(), CreateIterator(), FindObject(), GetSize(), operator=(), Set(), and ~AliMUON1DMap().


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