AliRoot Core  edcc906 (edcc906)
AliMUONTreeManager.h
Go to the documentation of this file.
1 #ifndef ALIMUONTREEMANAGER_H
2 #define ALIMUONTREEMANAGER_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 AliMUONVStore;
20 class TTree;
21 class TBranch;
22 
23 class AliMUONTreeManager : public TObject
24 {
25 public:
26 
28  virtual ~AliMUONTreeManager();
29 
30  void AddClassName(TTree& tree, const char* pattern,
31  const char* className) const;
32 
33  Bool_t MakeBranch(TTree& tree, const char* storeClassName,
34  const char* branchClassName, const char* branchName,
35  void* address,
36  Int_t bufferSize = 4000, Int_t splitLevel = 99) const;
37 
38  Bool_t SetAddress(TTree& tree, const char* branchName, void* address) const;
39 
40  TObject* CreateObject(const TTree& tree, const char* detail) const;
41 
42  void UpdateBranchStatuses(TTree& tree, const char* pattern) const;
43 
47  void GetEvent(TTree& tree, Int_t event) const;
48 
50  void ShowStatus(TTree& tree) const;
51 
52 private:
53 
54  TString GetClassName(const TTree& tree, const char* pattern,
55  Bool_t makeDefault) const;
56 
57  TString DefaultClassName(const char* treename, const char* pattern) const;
58 
59  ClassDef(AliMUONTreeManager,0) // Helper class to handle MUON TTrees
60 };
61 
62 #endif
Bool_t SetAddress(TTree &tree, const char *branchName, void *address) const
void GetEvent(TTree &tree, Int_t event) const
TString GetClassName(const TTree &tree, const char *pattern, Bool_t makeDefault) const
TTree * tree
Helper class to ease TTree (MUON) branches manipulations.
TString DefaultClassName(const char *treename, const char *pattern) const
TObject * CreateObject(const TTree &tree, const char *detail) const
void ShowStatus(TTree &tree) const
Debug method to show the tree branch statuses and addresses.
void AddClassName(TTree &tree, const char *pattern, const char *className) const
void UpdateBranchStatuses(TTree &tree, const char *pattern) const
Bool_t MakeBranch(TTree &tree, const char *storeClassName, const char *branchClassName, const char *branchName, void *address, Int_t bufferSize=4000, Int_t splitLevel=99) const
Base class for MUON data stores.
Definition: AliMUONVStore.h:22