1 #ifndef ALIMUONDATAMANAGER_H
2 #define ALIMUONDATAMANAGER_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 /// \class AliMUONDataManager
11 /// \brief Utility class to ease access to data stores.
13 // Author Laurent Aphecetche
23 class AliMUONDataManager : public TObject
27 AliMUONDataManager(const char* file="galice.root");
28 virtual ~AliMUONDataManager();
30 AliMUONVStore* ReadConnectable(Int_t event, const char* tree, const char* what);
32 /// Whether we were properly initialized or not
33 Bool_t IsValid() const { return fIsValid; }
35 Int_t NumberOfEvents() const;
37 Int_t Load(Int_t event);
38 void Load(const char* tree);
39 TTree* Tree(const char* tree);
40 void Unload(const char* tree);
44 AliMUONDataManager(const AliMUONDataManager&);
46 AliMUONDataManager& operator=(const AliMUONDataManager&);
48 AliLoader* fLoader; //!< Our loader to access trees
49 Int_t fCurrentEvent; //!< Current loaded event
50 Bool_t fIsValid; //!< Whether we were properly initialized or not
51 static Int_t fgCount; //!< instance counter to be able to build a unique folder name
53 ClassDef(AliMUONDataManager,0) // Utility class to ease data store access