Merge branch 'master' into TPCdev
[u/mrichter/AliRoot.git] / STEER / STEER / AliTreeLoader.h
CommitLineData
a9bbb414 1#ifndef ALITREELOADER_H
2#define ALITREELOADER_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8////////////////////////////////////////////
9// //
10// class AliTreeLoader //
11// //
12// Loader responsible for one data type //
13// i.e. Hits, Kine, etc. //
14// many objects type can be assciated //
15// with one data type: storing object //
16// (usually tree), task producing it, //
17// Quality Assurance(QA), QA Task, and //
18// others. //
19// //
20// //
21////////////////////////////////////////////
22
23class TString;
a9bbb414 24
25#include "AliObjectLoader.h"
c93255fe 26#include <TTree.h>
27#include <TObject.h>
a9bbb414 28
29class AliTreeLoader: public AliObjectLoader
30 {
dc86eb51 31public:
a9bbb414 32 AliTreeLoader(){};
33 AliTreeLoader(const TString& name, AliDataLoader* dl, Bool_t storeontop = kFALSE);
a9bbb414 34 virtual ~AliTreeLoader(){};
35
36 virtual TTree* Tree() const {return dynamic_cast<TTree*>(Get());}
37 virtual void MakeTree();
38 virtual Int_t WriteData(Option_t* opt="");
39
dc86eb51 40private:
41 AliTreeLoader(const AliTreeLoader&); //Not implemented
42 AliTreeLoader& operator=(const AliTreeLoader&); //Not implemented
43
44 ClassDef(AliTreeLoader,1)
a9bbb414 45 };
46
47#endif
48
49