3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
9 // Class to name the folders
10 // This class contains
11 // the names of the top level folders
15 // Class to name the folders
16 // This class contains
17 // the names of the top level folders
31 class AliConfig : public TNamed {
35 virtual ~ AliConfig ();
37 void Add(TDatabasePDG *pdg);
39 void Add(AliGenerator *generator,const char* eventfolder = fgkDefaultEventFolderName);
40 void Add (TVirtualMC *mc,const char* eventfolder = fgkDefaultEventFolderName);
41 void Add (AliModule *module,const char* eventfolder = fgkDefaultEventFolderName);
42 void Add (AliDetector *detector,const char* eventfolder = fgkDefaultEventFolderName);
44 Int_t AddDetector(const char* evntfoldername,const char *name, const char* title);
45 Int_t AddDetector(TFolder* evntfolder,const char *name, const char* title);
47 Int_t CreateDetectorFolders(const char* evntfoldername,const char *name, const char* title);//Used by AliRunGetter
48 Int_t CreateDetectorFolders(TFolder* evntfolder,const char *name, const char* title);//Used by AliRunGetter
50 static AliConfig* Instance();
52 TFolder* BuildEventFolder(const char* name,const char* tilte);
54 TFolder* GetTopFolder(){return fTopFolder;}
55 TFolder* GetConstFolder(){return fConstFolder;}
57 static const TString& GetModulesFolderName(){return fgkModuleFolderName;}
58 static const TString& GetDefaultEventFolderName()
59 {return fgkDefaultEventFolderName;}
61 const TString& GetDataFolderName() const;//returns name of data folder
64 AliConfig(const AliConfig&); // Not implemented
65 AliConfig& operator=(const AliConfig&); // Not implemented
66 AliConfig(); // Not implemented
67 AliConfig(const char * name, const char * title );
69 static const TString fgkTopFolderName; //name of top AliRoot folder
71 static const TString fgkDefaultEventFolderName; //name of event folder
72 static const TString fgkConstantsFolderName; //name of constants folder
74 static const TString fgkDataFolderName; //name of data folde
75 static const TString fgkConditionsFolderName; //name of conditions folder
76 static const TString fgkConfigurationFolderName;//name of configuration foolder
77 static const TString fgkHeaderFolderName; //name of header folder
79 static const TString fgkCalibrationFolderName; //name of calibration folder
80 static const TString fgkAligmentFolderName; //name of alignment folder
82 static const TString fgkFieldFolderName; //name of magn.field folder
83 static const TString fgkGeneratorsFolderName; //name of generator folder
84 static const TString fgkVirtualMCFolderName; //name of virtual MC folder
86 void AddInFolder (const char * dir, TObject *obj);
87 Int_t AddSubFolder(TFolder* topfolder, const char* infoler, //helper method
88 const char* newfoldname, const char* newfoldtitle);
89 TObject* FindInFolder (const char *dir, const char *name);
92 TFolder* fTopFolder; //pointer to top folder
93 TFolder* fConstFolder; //pointer to constants folder
95 static const TString fgkPDGFolderName; //name of PDG folder
96 static const TString fgkGeneratorFolderName; //name of generator name
97 static const TString fgkMCFolderName; //name of MC folder
98 static const TString fgkModuleFolderName; //name of module folder
100 TString *fDetectorFolder;//!array with names for detector folders (where detector is going to be put)
102 static AliConfig* fgInstance; //pointer to the AliConfig instance
105 ClassDef(AliConfig,3) //Configuration class for AliRun
106 }; // end class AliConfig