]>
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$ |
13985652 | 5 | // $MpId: AliMpFiles.h,v 1.10 2006/05/24 13:58:07 ivana Exp $ |
dee1d5f1 | 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 | /// | |
13985652 | 16 | /// \author 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> | |
5f91c9e8 | 22 | |
be2a6782 | 23 | #include "AliMpStationType.h" |
5f91c9e8 | 24 | #include "AliMpPlaneType.h" |
25 | ||
2a7ea2e6 | 26 | #include <TString.h> |
27 | ||
5f91c9e8 | 28 | class AliMpFiles : public TObject |
29 | { | |
30 | public: | |
5f91c9e8 | 31 | // --> protected |
7f54909e | 32 | //AliMpFiles(); |
5f91c9e8 | 33 | //AliMpFiles(const AliMpFiles& right); |
34 | virtual ~AliMpFiles(); | |
7f54909e | 35 | |
36 | // | |
5f91c9e8 | 37 | // methods |
7f54909e | 38 | // |
39 | ||
4df2ac68 | 40 | // bus patch |
41 | // | |
42 | static TString BusPatchFilePath(); | |
59754717 | 43 | static TString BusPatchInfoFilePath(); |
ae649dcb | 44 | static TString BusPatchSpecialFilePath(); |
4df2ac68 | 45 | |
0025a53e | 46 | // de names |
47 | // | |
cddd101e | 48 | static TString DENamesFilePath(AliMp::StationType stationType); |
0025a53e | 49 | |
7f54909e | 50 | // trigger |
51 | // | |
52 | static TString LocalTriggerBoardMapping(); | |
40c8e44b | 53 | static TString GlobalTriggerBoardMapping(); |
54 | ||
7f54909e | 55 | // slats |
56 | // | |
cddd101e | 57 | static TString SlatFilePath(AliMp::StationType stationType, |
58 | const char* slatType, AliMp::PlaneType plane); | |
59 | static TString SlatPCBFilePath(AliMp::StationType stationType, | |
7f54909e | 60 | const char* pcbType); |
61 | // sectors | |
62 | // | |
cddd101e | 63 | static TString SectorFilePath(AliMp::StationType station, |
64 | AliMp::PlaneType plane); | |
65 | static TString SectorSpecialFilePath(AliMp::StationType station, | |
66 | AliMp::PlaneType plane); | |
67 | static TString SectorSpecialFilePath2(AliMp::StationType station, | |
68 | AliMp::PlaneType plane); | |
7f54909e | 69 | // motifs |
70 | // | |
cddd101e | 71 | static TString MotifFilePath(AliMp::StationType station, |
72 | AliMp::PlaneType plane, | |
7f54909e | 73 | const TString& motifTypeID); |
82915841 | 74 | static TString MotifFileName(const TString& motifTypeID); |
cddd101e | 75 | static TString MotifSpecialFilePath(AliMp::StationType station, |
76 | AliMp::PlaneType plane, const TString& motifID); | |
82915841 | 77 | static TString MotifSpecialFileName(const TString& motifID); |
cddd101e | 78 | static TString PadPosFilePath(AliMp::StationType station, |
79 | AliMp::PlaneType plane, const TString& motifTypeID); | |
82915841 | 80 | static TString PadPosFileName(const TString& motifTypeID); |
81 | ||
cddd101e | 82 | static TString BergToGCFilePath(AliMp::StationType station); |
ec5079b1 | 83 | |
cddd101e | 84 | static TString ManuToSerialPath(const TString& deName, AliMp::StationType station); |
ec5079b1 | 85 | |
8b68068b | 86 | static TString SerialToBinFilePath(); |
87 | ||
5f91c9e8 | 88 | // set methods |
7f54909e | 89 | static void SetTopPath(const TString& topPath); |
90 | ||
13e7956b | 91 | private: |
f5671fc3 | 92 | /// Not implemented |
7f54909e | 93 | AliMpFiles(); |
f5671fc3 | 94 | /// Not implemented |
5f91c9e8 | 95 | AliMpFiles(const AliMpFiles& right); |
f5671fc3 | 96 | /// Not implemented |
5f91c9e8 | 97 | AliMpFiles& operator=(const AliMpFiles& right); |
f5671fc3 | 98 | |
5f91c9e8 | 99 | // methods |
d9100e8b | 100 | static TString GetTop(); |
cddd101e | 101 | static TString PlaneDataDir(AliMp::StationType station, AliMp::PlaneType plane); |
102 | static TString StationDataDir(AliMp::StationType station); | |
5f91c9e8 | 103 | |
104 | // static data members | |
829425a5 | 105 | static const TString fgkDataDir; ///< data directory |
106 | static const TString fgkStationDir; ///< station directory | |
107 | static const TString fgkBendingDir; ///< bending plane directory | |
108 | static const TString fgkNonBendingDir; ///< non-bending plane directory | |
109 | static const TString fgkDENames; ///< DE names data file name | |
110 | static const TString fgkSector; ///< sector data file name | |
111 | static const TString fgkSectorSpecial; ///< sector special data file name | |
112 | static const TString fgkSectorSpecial2;///< sector special data file name | |
113 | static const TString fgkMotifPrefix; ///< motif data file name | |
114 | static const TString fgkMotifSpecialPrefix; ///< special motif data file name | |
67f410f1 | 115 | static const TString fgkManuToSerialDir;///< manu to serial file directory |
ec5079b1 | 116 | static const TString fgkManuToSerial; ///< manu to serial file name suffix |
829425a5 | 117 | static const TString fgkPadPosPrefix; ///< pad position data file name |
118 | static const TString fgkDataExt; ///< file extension | |
5e53b756 | 119 | static const TString fgkBergToGCFileName; ///< BergToGC mapping file name |
829425a5 | 120 | static const TString fgkTriggerLocalBoards;///< local board name to id mapping |
40c8e44b | 121 | static const TString fgkTriggerGlobalBoards;///< global board name to id mapping |
829425a5 | 122 | static const TString fgkBusPatchFileName; ///< DetElemIdToBusPatch file name |
59754717 | 123 | static const TString fgkBusPatchInfoFileName;///< BusPatch length file name |
ae649dcb | 124 | static const TString fgkBusPatchSpecialFileName;///< BusPatch special file name |
7aa4ce37 | 125 | static const TString fgkSerialToBinFileName; ///< serial to bin number file name |
8b68068b | 126 | |
7f54909e | 127 | ClassDef(AliMpFiles, 0) //File names and paths |
5f91c9e8 | 128 | }; |
129 | ||
be2a6782 | 130 | #endif //ALI_MP_FILES_H |