X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STEER%2FAliRunLoader.h;h=55ea4da83323e67b636e491805be7fd2599fa1b6;hb=277cad1104095e44c585167ea7a3e5ea307725c3;hp=2989830104c2b987553126b63456ad0bda721570;hpb=e191bb57c96a66bf4f60381b9a3f8c511bc6188e;p=u%2Fmrichter%2FAliRoot.git diff --git a/STEER/AliRunLoader.h b/STEER/AliRunLoader.h index 2989830104c..55ea4da8332 100644 --- a/STEER/AliRunLoader.h +++ b/STEER/AliRunLoader.h @@ -23,11 +23,12 @@ ///////////////////////////////////////////////////////////////////// #include -#include + #include "AliConfig.h" #include "AliLoader.h" #include "AliDataLoader.h" +class TFile; class TString; class TFolder; class TObjArray; @@ -50,6 +51,9 @@ class AliRunLoader: public TNamed AliRunLoader(); AliRunLoader(const char* topfoldername); AliRunLoader(TFolder* topfolder); + AliRunLoader(const AliRunLoader &rl); + AliRunLoader & operator = (const AliRunLoader &rl) + {rl.Copy(*this); return *this;} virtual ~AliRunLoader(); @@ -150,7 +154,7 @@ class AliRunLoader: public TNamed TString GetFileName() const;//returns name of galice file const TObjArray* GetArrayOfLoaders() const {return fLoaders;} Int_t GetDebug() const {return AliLoader::GetDebug();} - void cd(){fgRunLoader = this;} + void Cd(){fgRunLoader = this;} void Synchronize(); AliLoader* GetDetectorLoader(const char* detname); @@ -182,15 +186,16 @@ class AliRunLoader: public TNamed static TTask* GetRunTracker(); // static TTask* GetRunPIDTask(); // static TTask* GetRunQATask(); // + + static TString GetRunLoaderName () {return fgkRunLoaderName;} + static TString GetHeaderContainerName () {return fgkHeaderContainerName;} + static TString GetKineContainerName () {return fgkKineContainerName;} + static TString GetTrackRefsContainerName () {return fgkTrackRefsContainerName;} + static TString GetHeaderBranchName () {return fgkHeaderBranchName;} + static TString GetKineBranchName () {return fgkKineBranchName;} + static TString GetGAliceName () {return fgkGAliceName;} - static const TString fgkRunLoaderName; //default name of the run loader - static const TString fgkHeaderContainerName; //default name of the kinematics container (TREE) name - TreeE - static const TString fgkKineContainerName; //default name of the kinematics container (TREE) name - TreeK - static const TString fgkTrackRefsContainerName; //default name of the track references container (TREE) name - TreeTR - static const TString fgkHeaderBranchName; //default name of the branch containing the header - static const TString fgkKineBranchName; //default name of the branch with kinematics - static const TString fgkGAliceName; //default name for gAlice file - protected: +protected: /**********************************************/ /************ PROTECTED ***************/ /********* D A T A ************/ @@ -238,6 +243,16 @@ class AliRunLoader: public TNamed static AliRunLoader* fgRunLoader; //pointer to the AliRunLoader instance +private: + void Copy(TObject &arun) const; + + static const TString fgkRunLoaderName; //default name of the run loader + static const TString fgkHeaderContainerName; //default name of the kinematics container (TREE) name - TreeE + static const TString fgkKineContainerName; //default name of the kinematics container (TREE) name - TreeK + static const TString fgkTrackRefsContainerName; //default name of the track references container (TREE) name - TreeTR + static const TString fgkHeaderBranchName; //default name of the branch containing the header + static const TString fgkKineBranchName; //default name of the branch with kinematics + static const TString fgkGAliceName; //default name for gAlice file ClassDef(AliRunLoader,1) };