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