AliRoot Core  v5-06-15 (45dab64)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONVStore.h
Go to the documentation of this file.
1 #ifndef ALIMUONVSTORE_H
2 #define ALIMUONVSTORE_H
3 
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6 
7 // $Id$
8 
13 // Author Laurent Aphecetche, Subatech
14 
15 #ifndef ROOT_TObject
16 # include "TObject.h"
17 #endif
18 
19 class TIterator;
20 class TTree;
21 
22 class AliMUONVStore : public TObject
23 {
24 public:
25  AliMUONVStore();
26  virtual ~AliMUONVStore();
27 
29  virtual Bool_t Add(TObject* object) = 0;
30 
32  virtual void Clear(Option_t* opt="") = 0;
33 
35  virtual AliMUONVStore* Create() const = 0;
36 
38  static AliMUONVStore* Create(TTree& tree, const char* what);
39 
41  virtual TIterator* CreateIterator() const = 0;
42 
44  virtual Bool_t CanConnect() const = 0;
45 
47  virtual Bool_t Connect(TTree& tree, Bool_t alone=kTRUE) const;
48 
50  virtual TObject* FindObject(const char* name) const;
51 
53  virtual TObject* FindObject(const TObject* object) const;
54 
56  virtual TObject* FindObject(UInt_t uniqueID) const;
57 
59  virtual TObject* FindObject(Int_t i, Int_t j) const;
60 
62  virtual Int_t GetSize() const = 0;
63 
65  virtual Int_t GetSize(Int_t i) const;
66 
68  virtual Bool_t IsEmpty() const { return GetSize() == 0; }
69 
71  virtual void Print(Option_t* wildcard="") const;
72 
74  virtual void Print(Option_t* wildcard, Option_t* opt) const;
75 
76  ClassDef(AliMUONVStore,1) // Base class for a MUON data store
77 };
78 
79 #endif
virtual TIterator * CreateIterator() const =0
Return an iterator to loop over the whole store.
virtual void Print(Option_t *wildcard="") const
Print all objects whose name matches wildcard.
virtual ~AliMUONVStore()
virtual Bool_t CanConnect() const =0
Whether the Connect(TTree&) method is implemented.
virtual Int_t GetSize() const =0
The number of objects stored.
TTree * tree
virtual AliMUONVStore * Create() const =0
Create an empty copy of this.
virtual Bool_t IsEmpty() const
Whether we are empty or not.
Definition: AliMUONVStore.h:68
virtual Bool_t Add(TObject *object)=0
Add an object to the store.
virtual void Clear(Option_t *opt="")=0
Clear ourselves (i.e. Reset)
Base class for MUON data stores.
Definition: AliMUONVStore.h:22
virtual Bool_t Connect(TTree &tree, Bool_t alone=kTRUE) const
Connect us to a TTree (only valid if CanConnect()==kTRUE)
virtual TObject * FindObject(const char *name) const
Find an object by name.