* 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
/// - 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 <TObject.h>
-#include <TString.h>
#include "AliMpStationType.h"
+#include "AliMpStation12Type.h"
#include "AliMpPlaneType.h"
+#include <TString.h>
+
class AliMpFiles : public TObject
{
public:
// 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
};