]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/mapping/AliMpFiles.h
Adding AliMpBusPatch class
[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$
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
27class AliMpFiles : public TObject
28{
29 public:
5f91c9e8 30 // --> protected
7f54909e 31 //AliMpFiles();
5f91c9e8 32 //AliMpFiles(const AliMpFiles& right);
33 virtual ~AliMpFiles();
7f54909e 34
35 //
5f91c9e8 36 // methods
7f54909e 37 //
38
39 // trigger
40 //
41 static TString LocalTriggerBoardMapping();
42
43 // slats
44 //
45 static TString SlatFilePath(AliMpStationType stationType,
46 const char* slatType, AliMpPlaneType plane);
47 static TString SlatPCBFilePath(AliMpStationType stationType,
48 const char* pcbType);
49 // sectors
50 //
51 static TString SectorFilePath(AliMpStationType station,
52 AliMpPlaneType plane);
53 static TString SectorSpecialFilePath(AliMpStationType station,
54 AliMpPlaneType plane);
55 static TString SectorSpecialFilePath2(AliMpStationType station,
56 AliMpPlaneType plane);
57 // motifs
58 //
59 static TString MotifFilePath(AliMpStationType station,
60 AliMpPlaneType plane,
61 const TString& motifTypeID);
62 static TString MotifSpecialFilePath(AliMpStationType station,
63 AliMpPlaneType plane, const TString& motifID);
64 static TString PadPosFilePath(AliMpStationType station,
65 AliMpPlaneType plane, const TString& motifTypeID);
66 static TString BergToGCFilePath(AliMpStationType station);
67
5f91c9e8 68 // set methods
7f54909e 69 static void SetTopPath(const TString& topPath);
70
5f91c9e8 71 protected:
7f54909e 72 AliMpFiles();
5f91c9e8 73 AliMpFiles(const AliMpFiles& right);
7f54909e 74
5f91c9e8 75 // operators
76 AliMpFiles& operator=(const AliMpFiles& right);
7f54909e 77
5f91c9e8 78 private:
79 // methods
7f54909e 80 static const char* GetDefaultTop();
81 static TString PlaneDataDir(AliMpStationType station, AliMpPlaneType plane);
82 static TString StationDataDir(AliMpStationType station);
5f91c9e8 83
84 // static data members
be2a6782 85 static const TString fgkDefaultTop; //top directory path (default)
86 static const TString fgkDataDir; //data directory
87 static const TString fgkStationDir; //station directory
88 static const TString fgkBendingDir; //bending plane directory
89 static const TString fgkNonBendingDir; //non-bending plane directory
90 static const TString fgkSector; //sector data file name
91 static const TString fgkSectorSpecial; //sector special data file name
92 static const TString fgkSectorSpecial2;//sector special data file name
93 static const TString fgkMotifPrefix; //motif data file name
5f91c9e8 94 static const TString fgkMotifSpecialPrefix; //special motif data file name
be2a6782 95 static const TString fgkPadPosPrefix; //pad position data file name
96 static const TString fgkDataExt; //file extension
5f91c9e8 97 static const TString fgkBergToGCFileName; //name of the file with BergToGC mapping
7f54909e 98 static const TString fgkTriggerLocalBoards; // local board name to id mapping
99
100 static TString fgTop; // top directory path
5f91c9e8 101
102
7f54909e 103 ClassDef(AliMpFiles, 0) //File names and paths
5f91c9e8 104};
105
be2a6782 106#endif //ALI_MP_FILES_H