]>
Commit | Line | Data |
---|---|---|
dee1d5f1 | 1 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
2 | * See cxx source for full Copyright notice */ | |
3 | ||
5f91c9e8 | 4 | // $Id$ |
dee1d5f1 | 5 | // $MpId: AliMpFiles.h,v 1.4 2005/08/26 15:43:36 ivana Exp $ |
6 | ||
7 | /// \ingroup basic | |
8 | /// \class AliMpFiles | |
9 | /// \brief Class for generating file names and paths. | |
10 | /// | |
11 | /// The input files: | |
12 | /// - zones.dat, zones_special.dat - sector description | |
13 | /// - motif*.dat - motif description (generated from Exceed) | |
14 | /// - padPos*.dat - pad positions in motif | |
15 | /// | |
16 | /// Authors: David Guez, Ivana Hrivnacova; IPN Orsay | |
5f91c9e8 | 17 | |
be2a6782 | 18 | #ifndef ALI_MP_FILES_H |
19 | #define ALI_MP_FILES_H | |
5f91c9e8 | 20 | |
21 | #include <TObject.h> | |
22 | #include <TString.h> | |
23 | ||
be2a6782 | 24 | #include "AliMpStationType.h" |
5f91c9e8 | 25 | #include "AliMpPlaneType.h" |
26 | ||
27 | class AliMpFiles : public TObject | |
28 | { | |
29 | public: | |
30 | AliMpFiles(); | |
31 | // --> protected | |
32 | //AliMpFiles(const AliMpFiles& right); | |
33 | virtual ~AliMpFiles(); | |
34 | ||
35 | // static access method | |
36 | static AliMpFiles* Instance(); | |
37 | ||
38 | // methods | |
dee1d5f1 | 39 | TString SlatFilePath(const char* slatType, |
40 | AliMpPlaneType plane) const; | |
41 | TString SlatPCBFilePath(const char* pcbType) const; | |
42 | ||
43 | TString DetElemIdToSlatTypeFilePath() const; | |
44 | ||
be2a6782 | 45 | TString SectorFilePath(AliMpStationType station, |
46 | AliMpPlaneType plane) const; | |
47 | TString SectorSpecialFilePath(AliMpStationType station, | |
48 | AliMpPlaneType plane) const; | |
49 | TString SectorSpecialFilePath2(AliMpStationType station, | |
50 | AliMpPlaneType plane) const; | |
51 | TString MotifFilePath(AliMpStationType station, AliMpPlaneType plane, | |
5f91c9e8 | 52 | const TString& motifTypeID) const; |
be2a6782 | 53 | TString MotifSpecialFilePath(AliMpStationType station, |
54 | AliMpPlaneType plane, const TString& motifID) const; | |
55 | TString PadPosFilePath(AliMpStationType station, | |
56 | AliMpPlaneType plane, const TString& motifTypeID) const; | |
57 | TString BergToGCFilePath(AliMpStationType station) const; | |
5f91c9e8 | 58 | |
59 | // set methods | |
60 | void SetTopPath(const TString& topPath); | |
61 | ||
62 | protected: | |
63 | AliMpFiles(const AliMpFiles& right); | |
64 | ||
65 | // operators | |
66 | AliMpFiles& operator=(const AliMpFiles& right); | |
67 | ||
68 | private: | |
69 | // methods | |
be2a6782 | 70 | TString PlaneDataDir(AliMpStationType station, AliMpPlaneType plane) const; |
71 | TString StationDataDir(AliMpStationType station) const; | |
5f91c9e8 | 72 | |
73 | // static data members | |
be2a6782 | 74 | static AliMpFiles* fgInstance; //this instance |
75 | static const TString fgkDefaultTop; //top directory path (default) | |
76 | static const TString fgkDataDir; //data directory | |
77 | static const TString fgkStationDir; //station directory | |
78 | static const TString fgkBendingDir; //bending plane directory | |
79 | static const TString fgkNonBendingDir; //non-bending plane directory | |
80 | static const TString fgkSector; //sector data file name | |
81 | static const TString fgkSectorSpecial; //sector special data file name | |
82 | static const TString fgkSectorSpecial2;//sector special data file name | |
83 | static const TString fgkMotifPrefix; //motif data file name | |
5f91c9e8 | 84 | static const TString fgkMotifSpecialPrefix; //special motif data file name |
be2a6782 | 85 | static const TString fgkPadPosPrefix; //pad position data file name |
86 | static const TString fgkDataExt; //file extension | |
5f91c9e8 | 87 | static const TString fgkBergToGCFileName; //name of the file with BergToGC mapping |
88 | ||
89 | // data members | |
90 | TString fTop; // top directory path | |
91 | ||
92 | ||
93 | ClassDef(AliMpFiles, 1) //File names and paths | |
94 | }; | |
95 | ||
96 | // inline functions | |
97 | ||
98 | inline void AliMpFiles::SetTopPath(const TString& topPath) | |
99 | { fTop = topPath; } | |
100 | ||
be2a6782 | 101 | #endif //ALI_MP_FILES_H |