#ifndef ALILOADER_H
#define ALILOADER_H
+class TDirectory;
+class TFile;
+class TString;
+class TTask;
+class TTree;
+
#include <TFolder.h>
#include <TObjArray.h>
-//#include <AliConfig.h>
-#include "AliDataLoader.h"
-
-class TString;
-class TFile;
-class TTree;
-class TTask;
-class AliRunLoader;
class AliDigitizer;
-class TDirectory;
+class AliRunLoader;
+
+#include "AliDataLoader.h"
+#include "AliTaskLoader.h"
//___________________________________________________________________
AliLoader();
AliLoader(const Char_t *detname,const Char_t *eventfoldername); //contructor with name of the top folder of the tree
AliLoader(const Char_t *detname,TFolder* eventfolder);
- AliLoader(const AliLoader& source); //copy constructor
- AliLoader& operator=(const AliLoader& source); //assignment operator
virtual ~AliLoader();//-----------------
AliDataLoader* GetRecParticlesDataLoader()const {return (AliDataLoader*)fDataLoaders->At(kRecParticles);}
AliDataLoader* GetDataLoader(const char* name);
+ void AddDataLoader(AliDataLoader* dl);
Int_t SetEventFolder(TFolder* eventfolder);//sets the event folder
static Bool_t TestFileOption(Option_t* opt);//checks is file is created from scratch
static Bool_t IsOptionWritable(const TString& opt);
- static Int_t GetDebug() {return fgDebug;}
- static void SetDebug(Int_t deb = 1){fgDebug = deb;}//Sets debugging information
+ static void SetDebug(Int_t deb = 1);//Sets debugging information
protected:
TObject* GetDetectorData(const char* name){return GetDetectorDataFolder()->FindObject(name);}
TObject** GetDetectorDataRef(TObject* obj);
- void InitDefaults();
+ virtual void InitDefaults();
void ResetDataInfo();
void SetTAddrInDet();//Call SetTreeAddress for corresponding detector
private:
//descendant classes should
//use protected interface methods to access these folders
-
- static Int_t fgDebug; //debug flag for loaders
+ AliLoader(const AliLoader&); //Not implemented
+ AliLoader& operator=(const AliLoader&); //Not implemented
ClassDef(AliLoader,2)
};