]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/mapping/AliMpFiles.h
First big commit of the mchview program and its accompanying library,
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpFiles.h
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice                               */
3
4 // $Id$
5 // $MpId: AliMpFiles.h,v 1.10 2006/05/24 13:58:07 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 /// \author David Guez, Ivana Hrivnacova; IPN Orsay
17
18 #ifndef ALI_MP_FILES_H
19 #define ALI_MP_FILES_H
20
21 #include <TObject.h>
22
23 #include "AliMpStationType.h"
24 #include "AliMpPlaneType.h"
25
26 #include <TString.h>
27
28 class AliMpFiles : public TObject
29 {
30   public:
31     // --> protected
32     //AliMpFiles();
33     //AliMpFiles(const AliMpFiles& right);
34     virtual ~AliMpFiles();
35   
36     //
37     // methods
38     //
39     
40     // bus patch
41     //
42     static TString BusPatchFilePath(); 
43     static TString BusPatchLengthFilePath(); 
44
45     // de names
46     //
47     static TString DENamesFilePath(AliMp::StationType stationType);
48
49     // trigger
50     //
51     static TString LocalTriggerBoardMapping();
52     static TString GlobalTriggerBoardMapping();
53     
54     // slats
55     //
56     static TString SlatFilePath(AliMp::StationType stationType, 
57                                 const char* slatType, AliMp::PlaneType plane);
58     static TString SlatPCBFilePath(AliMp::StationType stationType, 
59                                 const char* pcbType);
60     // sectors
61     //
62     static TString SectorFilePath(AliMp::StationType station, 
63                                   AliMp::PlaneType plane);
64     static TString SectorSpecialFilePath(AliMp::StationType station, 
65                                   AliMp::PlaneType plane);
66     static TString SectorSpecialFilePath2(AliMp::StationType station, 
67                                   AliMp::PlaneType plane);
68     // motifs
69     //
70     static TString MotifFilePath(AliMp::StationType station, 
71                                  AliMp::PlaneType plane, 
72                                  const TString& motifTypeID);
73     static TString MotifFileName(const TString& motifTypeID);
74     static TString MotifSpecialFilePath(AliMp::StationType station,
75                                  AliMp::PlaneType plane, const TString& motifID);
76     static TString MotifSpecialFileName(const TString& motifID);
77     static TString PadPosFilePath(AliMp::StationType station, 
78                                  AliMp::PlaneType plane, const TString& motifTypeID);
79     static TString PadPosFileName(const TString& motifTypeID);
80
81     static TString BergToGCFilePath(AliMp::StationType station);
82
83     static TString ManuToSerialPath(const TString& deName, AliMp::StationType station);
84
85   
86     // set methods
87     static void SetTopPath(const TString& topPath);
88   
89   private: 
90     /// Not implemented
91     AliMpFiles();
92     /// Not implemented
93     AliMpFiles(const AliMpFiles& right);
94     /// Not implemented
95     AliMpFiles& operator=(const AliMpFiles& right);    
96
97     // methods
98     static TString GetTop();
99     static TString PlaneDataDir(AliMp::StationType station, AliMp::PlaneType plane); 
100     static TString StationDataDir(AliMp::StationType station); 
101   
102     // static data members  
103     static const TString fgkDataDir;       ///< data directory
104     static const TString fgkStationDir;    ///< station directory
105     static const TString fgkBendingDir;    ///< bending plane directory
106     static const TString fgkNonBendingDir; ///< non-bending plane directory
107     static const TString fgkDENames;       ///< DE names data file name
108     static const TString fgkSector;        ///< sector data file name
109     static const TString fgkSectorSpecial; ///< sector special data file name
110     static const TString fgkSectorSpecial2;///< sector special data file name
111     static const TString fgkMotifPrefix;   ///< motif data file name
112     static const TString fgkMotifSpecialPrefix; ///< special motif data file name 
113     static const TString fgkManuToSerialDir;///< manu to serial file directory
114     static const TString fgkManuToSerial;  ///< manu to serial file name suffix
115     static const TString fgkPadPosPrefix;  ///< pad position data file name
116     static const TString fgkDataExt;       ///< file extension
117     static const TString fgkBergToGCFileName;  ///< BergToGC mapping file name
118     static const TString fgkTriggerLocalBoards;///<  local board name to id mapping
119     static const TString fgkTriggerGlobalBoards;///<  global board name to id mapping
120     static const TString fgkBusPatchFileName;  ///< DetElemIdToBusPatch file name
121     static const TString fgkBusPatchLengthFileName;///< BusPatch length file name
122
123   ClassDef(AliMpFiles, 0) //File names and paths 
124 };  
125
126 #endif //ALI_MP_FILES_H