Transition to NewIO
[u/mrichter/AliRoot.git] / STEER / AliConfig.h
CommitLineData
9e1a0ddb 1#ifndef ALICONFIG_H
2#define ALICONFIG_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
9e1a0ddb 7
88cb7938 8#include <TNamed.h>
b16a1b1e 9class TDatabasePDG;
10class TFolder;
11class TString;
98490ea9 12class TVirtualMC;
b16a1b1e 13
14class AliConfig;
15class AliDetector;
9e1a0ddb 16class AliGenerator;
17class AliModule;
9e1a0ddb 18class AliTasks;
19
20class AliConfig : public TNamed {
7e90ff59 21
22public:
88cb7938 23
b16a1b1e 24 AliConfig();
7e90ff59 25
88cb7938 26 virtual ~ AliConfig ();
27
28 void Add(TDatabasePDG *pdg);
29 void Add(char *list);
30
31 void Add(AliGenerator *generator,const char* eventfolder = fgkDefaultEventFolderName);
32 void Add (TVirtualMC *mc,const char* eventfolder = fgkDefaultEventFolderName);
33 void Add (AliModule *module,const char* eventfolder = fgkDefaultEventFolderName);
34 void Add (AliDetector *detector,const char* eventfolder = fgkDefaultEventFolderName);
35
36 Int_t AddDetector(const char* evntfoldername,const char *name, const char* title);
37 Int_t AddDetector(TFolder* evntfolder,const char *name, const char* title);
7e90ff59 38
88cb7938 39 Int_t CreateDetectorFolders(const char* evntfoldername,const char *name, const char* title);//Used by AliRunGetter
40 Int_t CreateDetectorFolders(TFolder* evntfolder,const char *name, const char* title);//Used by AliRunGetter
41 Int_t CreateDetectorTasks(const char *name, const char* title);
7e90ff59 42
88cb7938 43 static AliConfig* Instance();
7e90ff59 44
45private:
88cb7938 46 AliConfig(const char * name, const char * title );
47 AliConfig(const AliConfig&);
b16a1b1e 48
88cb7938 49 void AddInFolder (const char * dir, TObject *obj);
50 Int_t AddSubTask(const char *taskname, const char* name, const char* title);
51 Int_t AddSubFolder(TFolder* topfolder, const char* infoler, //helper method
52 const char* newfoldname, const char* newfoldtitle);
53 TObject* FindInFolder (const char *dir, const char *name);
54
7e90ff59 55 // folders
88cb7938 56 TFolder* fTopFolder;
57 TFolder* fTaskFolder;
58 TFolder* fConstFolder;
116cbefd 59
88cb7938 60 static const TString fgkPDGFolderName;
61 static const TString fgkGeneratorFolderName;
62 static const TString fgkMCFolderName;
63 static const TString fgkModuleFolderName;
64
65 TString *fDetectorTask;//!array with names for detector tasks
66 TString *fDetectorFolder;//!array with names for detector folders (where detector is going to be put)
67
68 static AliConfig* fInstance;
69
70
71 public:
72
73 TFolder* BuildEventFolder(const char* name,const char* tilte);
74
75 TFolder* GetTopFolder(){return fTopFolder;}
76 TFolder* GetTaskFolder(){return fTaskFolder;}
77 TFolder* GetConstFolder(){return fConstFolder;}
78
79 static const TString& GetModulesFolderName(){return fgkModuleFolderName;}
80
81 TString GetQATaskName() const; //returns path to QA tasks
82 TString GetDigitizerTaskName () const;
83 TString GetSDigitizerTaskName () const;
84 TString GetReconstructionerTaskName () const;
85 TString GetTrackerTaskName () const;
86 TString GetPIDTaskName () const;
87
88
89 const TString& GetQAFolderName() const; //returns path to folder with QA output
90
91 const TString& GetDataFolderName();//returns name of data folder
92
93 static const TString fgkTopFolderName; //name of top AliRoot folder
94
95 static const TString fgkDefaultEventFolderName;
96 static const TString fgkTasksFolderName;
97 static const TString fgkConstantsFolderName;
98
99 static const TString fgkDataFolderName;
100 static const TString fgkConditionsFolderName;
101 static const TString fgkConfigurationFolderName;
102 static const TString fgkHeaderFolderName;
103
104 static const TString fgkDigitizerTaskName;
105 static const TString fgkSDigitizerTaskName;
106 static const TString fgkQATaskName;
107 static const TString fgkReconstructionerTaskName;
108 static const TString fgkTrackerTaskName;
109 static const TString fgkPIDTaskName;
110
111 static const TString fgkCalibrationFolderName;
112 static const TString fgkAligmentFolderName;
113 static const TString fgkQAFolderName;
114
115 static const TString fgkFieldFolderName;
116 static const TString fgkGeneratorsFolderName;
117 static const TString fgkVirtualMCFolderName;
118
119 ClassDef(AliConfig,2) //Configuration class for AliRun
9e1a0ddb 120}; // end class AliConfig
121
122#endif