X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=MUON%2Fmapping%2FAliMpFiles.h;h=d30e18b791de1750e08edbf8155bff685ac88824;hp=0ece09271100792c1cbfd4b3f439fbe25e756538;hb=909eee575ce9f77645113230cc0acd685d40bc71;hpb=0025a53e550c3ad37f497464bce2638601604562 diff --git a/MUON/mapping/AliMpFiles.h b/MUON/mapping/AliMpFiles.h index 0ece0927110..d30e18b791d 100755 --- a/MUON/mapping/AliMpFiles.h +++ b/MUON/mapping/AliMpFiles.h @@ -2,7 +2,7 @@ * See cxx source for full Copyright notice */ // $Id$ -// $MpId: AliMpFiles.h,v 1.6 2006/01/11 10:05:01 ivana Exp $ +// $MpId: AliMpFiles.h,v 1.10 2006/05/24 13:58:07 ivana Exp $ /// \ingroup basic /// \class AliMpFiles @@ -13,17 +13,19 @@ /// - motif*.dat - motif description (generated from Exceed) /// - padPos*.dat - pad positions in motif /// -/// Authors: David Guez, Ivana Hrivnacova; IPN Orsay +/// \author David Guez, Ivana Hrivnacova; IPN Orsay #ifndef ALI_MP_FILES_H #define ALI_MP_FILES_H #include -#include #include "AliMpStationType.h" +#include "AliMpStation12Type.h" #include "AliMpPlaneType.h" +#include + class AliMpFiles : public TObject { public: @@ -36,80 +38,102 @@ class AliMpFiles : public TObject // methods // + static TString PlaneDataDir(AliMp::StationType station, + AliMq::Station12Type station12Type, + AliMp::PlaneType plane); + static TString StationDataDir(AliMp::StationType station, + AliMq::Station12Type station12Type); + // bus patch // static TString BusPatchFilePath(); + static TString BusPatchInfoFilePath(); + static TString BusPatchSpecialFilePath(); // de names // - static TString DENamesFilePath(AliMpStationType stationType); + static TString DENamesFilePath(AliMp::StationType stationType, + AliMq::Station12Type station12Type); // trigger // static TString LocalTriggerBoardMapping(); - + static TString GlobalTriggerBoardMapping(); + // slats // - static TString SlatFilePath(AliMpStationType stationType, - const char* slatType, AliMpPlaneType plane); - static TString SlatPCBFilePath(AliMpStationType stationType, + static TString SlatFilePath(AliMp::StationType stationType, + const char* slatType, AliMp::PlaneType plane); + static TString SlatPCBFilePath(AliMp::StationType stationType, const char* pcbType); // sectors // - static TString SectorFilePath(AliMpStationType station, - AliMpPlaneType plane); - static TString SectorSpecialFilePath(AliMpStationType station, - AliMpPlaneType plane); - static TString SectorSpecialFilePath2(AliMpStationType station, - AliMpPlaneType plane); + static TString SectorFilePath(AliMq::Station12Type station, + AliMp::PlaneType plane); + static TString SectorSpecialFilePath(AliMq::Station12Type station, + AliMp::PlaneType plane); + static TString SectorSpecialFilePath2(AliMq::Station12Type station, + AliMp::PlaneType plane); // motifs // - static TString MotifFilePath(AliMpStationType station, - AliMpPlaneType plane, + static TString MotifFilePath(AliMp::StationType station, + AliMq::Station12Type station12Type, + AliMp::PlaneType plane, const TString& motifTypeID); - static TString MotifSpecialFilePath(AliMpStationType station, - AliMpPlaneType plane, const TString& motifID); - static TString PadPosFilePath(AliMpStationType station, - AliMpPlaneType plane, const TString& motifTypeID); - static TString BergToGCFilePath(AliMpStationType station); - + static TString MotifFileName(const TString& motifTypeID); + static TString MotifSpecialFilePath(AliMp::StationType station, + AliMq::Station12Type station12Type, + AliMp::PlaneType plane, const TString& motifID); + static TString MotifSpecialFileName(const TString& motifID); + static TString PadPosFilePath(AliMp::StationType station, + AliMq::Station12Type station12Type, + AliMp::PlaneType plane, const TString& motifTypeID); + static TString PadPosFileName(const TString& motifTypeID); + + static TString BergToGCFilePath(AliMp::StationType station, + AliMq::Station12Type station12Type); + + static TString ManuToSerialPath(const TString& deName, + AliMp::StationType station, + AliMq::Station12Type station12Type); + + static TString SerialToBinFilePath(); + // set methods static void SetTopPath(const TString& topPath); + static TString GetTop(); - protected: + private: + /// Not implemented AliMpFiles(); + /// Not implemented AliMpFiles(const AliMpFiles& right); - - // operators + /// Not implemented AliMpFiles& operator=(const AliMpFiles& right); - - private: - // methods - static const char* GetDefaultTop(); - static TString PlaneDataDir(AliMpStationType station, AliMpPlaneType plane); - static TString StationDataDir(AliMpStationType station); - + // static data members - static const TString fgkDefaultTop; //top directory path (default) - static const TString fgkDataDir; //data directory - static const TString fgkStationDir; //station directory - static const TString fgkBendingDir; //bending plane directory - static const TString fgkNonBendingDir; //non-bending plane directory - static const TString fgkDENames; //DE names data file name - static const TString fgkSector; //sector data file name - static const TString fgkSectorSpecial; //sector special data file name - static const TString fgkSectorSpecial2;//sector special data file name - static const TString fgkMotifPrefix; //motif data file name - static const TString fgkMotifSpecialPrefix; //special motif data file name - static const TString fgkPadPosPrefix; //pad position data file name - static const TString fgkDataExt; //file extension - static const TString fgkBergToGCFileName; //BergToGC mapping filr name - static const TString fgkTriggerLocalBoards;// local board name to id mapping - static const TString fgkBusPatchFileName; //DetElemIdToBusPatch file name - - static TString fgTop; // top directory path + static const TString fgkDataDir; ///< data directory + static const TString fgkDataRunDir; ///< directory for run dependent data + static const TString fgkStationDir; ///< station directory + static const TString fgkBendingDir; ///< bending plane directory + static const TString fgkNonBendingDir; ///< non-bending plane directory + static const TString fgkDENames; ///< DE names data file name + static const TString fgkSector; ///< sector data file name + static const TString fgkSectorSpecial; ///< sector special data file name + static const TString fgkSectorSpecial2;///< sector special data file name + static const TString fgkMotifPrefix; ///< motif data file name + static const TString fgkMotifSpecialPrefix; ///< special motif data file name + static const TString fgkManuToSerial; ///< manu to serial file name suffix + static const TString fgkPadPosPrefix; ///< pad position data file name + static const TString fgkDataExt; ///< file extension + static const TString fgkBergToGCFileName; ///< BergToGC mapping file name + static const TString fgkTriggerLocalBoards;///< local board name to id mapping + static const TString fgkTriggerGlobalBoards;///< global board name to id mapping + static const TString fgkBusPatchFileName; ///< DetElemIdToBusPatch file name + static const TString fgkBusPatchInfoFileName;///< BusPatch length file name + static const TString fgkBusPatchSpecialFileName;///< BusPatch special file name + static const TString fgkSerialToBinFileName; ///< serial to bin number file name - ClassDef(AliMpFiles, 0) //File names and paths };