]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliConfig.h
Coverity 15064
[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
e191bb57 8//
9// Class to name the folders
10// This class contains
11// the names of the top level folders
12//
13
8b2d7c39 14//
15// Class to name the folders
16// This class contains
17// the names of the top level folders
18//
19
88cb7938 20#include <TNamed.h>
b16a1b1e 21class TDatabasePDG;
22class TFolder;
23class TString;
98490ea9 24class TVirtualMC;
b16a1b1e 25
26class AliConfig;
27class AliDetector;
9e1a0ddb 28class AliGenerator;
29class AliModule;
9e1a0ddb 30class AliTasks;
31
32class AliConfig : public TNamed {
7e90ff59 33
34public:
88cb7938 35
88cb7938 36 virtual ~ AliConfig ();
37
38 void Add(TDatabasePDG *pdg);
88cb7938 39
40 void Add(AliGenerator *generator,const char* eventfolder = fgkDefaultEventFolderName);
41 void Add (TVirtualMC *mc,const char* eventfolder = fgkDefaultEventFolderName);
42 void Add (AliModule *module,const char* eventfolder = fgkDefaultEventFolderName);
43 void Add (AliDetector *detector,const char* eventfolder = fgkDefaultEventFolderName);
44
45 Int_t AddDetector(const char* evntfoldername,const char *name, const char* title);
46 Int_t AddDetector(TFolder* evntfolder,const char *name, const char* title);
7e90ff59 47
88cb7938 48 Int_t CreateDetectorFolders(const char* evntfoldername,const char *name, const char* title);//Used by AliRunGetter
49 Int_t CreateDetectorFolders(TFolder* evntfolder,const char *name, const char* title);//Used by AliRunGetter
50 Int_t CreateDetectorTasks(const char *name, const char* title);
7e90ff59 51
88cb7938 52 static AliConfig* Instance();
7e90ff59 53
88cb7938 54 TFolder* BuildEventFolder(const char* name,const char* tilte);
55
56 TFolder* GetTopFolder(){return fTopFolder;}
57 TFolder* GetTaskFolder(){return fTaskFolder;}
58 TFolder* GetConstFolder(){return fConstFolder;}
59
60 static const TString& GetModulesFolderName(){return fgkModuleFolderName;}
e191bb57 61 static const TString& GetDefaultEventFolderName()
62 {return fgkDefaultEventFolderName;}
63 static const TString& GetTasksFolderName() {return fgkTasksFolderName;}
88cb7938 64
65 TString GetQATaskName() const; //returns path to QA tasks
66 TString GetDigitizerTaskName () const;
67 TString GetSDigitizerTaskName () const;
68 TString GetReconstructionerTaskName () const;
69 TString GetTrackerTaskName () const;
70 TString GetPIDTaskName () const;
71
72
73 const TString& GetQAFolderName() const; //returns path to folder with QA output
74
d0d4a6b3 75 const TString& GetDataFolderName() const;//returns name of data folder
e191bb57 76
77private:
cb5b8b21 78 AliConfig(const AliConfig&); // Not implemented
79 AliConfig& operator=(const AliConfig&); // Not implemented
80 AliConfig(); // Not implemented
81 AliConfig(const char * name, const char * title );
82
88cb7938 83 static const TString fgkTopFolderName; //name of top AliRoot folder
84
d0d4a6b3 85 static const TString fgkDefaultEventFolderName; //name of event folder
86 static const TString fgkTasksFolderName; //name of task folder
87 static const TString fgkConstantsFolderName; //name of constants folder
88
89 static const TString fgkDataFolderName; //name of data folde
90 static const TString fgkConditionsFolderName; //name of conditions folder
91 static const TString fgkConfigurationFolderName;//name of configuration foolder
92 static const TString fgkHeaderFolderName; //name of header folder
93
94 static const TString fgkDigitizerTaskName; //name of digitizer task
95 static const TString fgkSDigitizerTaskName; //name of sdigitizer task
96 static const TString fgkQATaskName; //name of Q-A task
97 static const TString fgkReconstructionerTaskName;//name of reconstructioner
98 //task
99 static const TString fgkTrackerTaskName; //name of tracker task
100 static const TString fgkPIDTaskName; //name of PID task
101
102 static const TString fgkCalibrationFolderName; //name of calibration folder
103 static const TString fgkAligmentFolderName; //name of alignment folder
104 static const TString fgkQAFolderName; //name of QA folder
105
106 static const TString fgkFieldFolderName; //name of magn.field folder
107 static const TString fgkGeneratorsFolderName; //name of generator folder
108 static const TString fgkVirtualMCFolderName; //name of virtual MC folder
109
d0d4a6b3 110 void AddInFolder (const char * dir, TObject *obj);
111 Int_t AddSubTask(const char *taskname, const char* name, const char* title);
112 Int_t AddSubFolder(TFolder* topfolder, const char* infoler, //helper method
113 const char* newfoldname, const char* newfoldtitle);
114 TObject* FindInFolder (const char *dir, const char *name);
115
116 // folders
117 TFolder* fTopFolder; //pointer to top folder
118 TFolder* fTaskFolder; //pointer to task folder
119 TFolder* fConstFolder; //pointer to constants folder
120
121 static const TString fgkPDGFolderName; //name of PDG folder
122 static const TString fgkGeneratorFolderName; //name of generator name
123 static const TString fgkMCFolderName; //name of MC folder
124 static const TString fgkModuleFolderName; //name of module folder
125
126 TString *fDetectorTask;//!array with names for detector tasks
127 TString *fDetectorFolder;//!array with names for detector folders (where detector is going to be put)
128
129 static AliConfig* fgInstance; //pointer to the AliConfig instance
130
88cb7938 131
132 ClassDef(AliConfig,2) //Configuration class for AliRun
9e1a0ddb 133}; // end class AliConfig
134
135#endif