Add path for buspatch cable length file
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 6 Jul 2007 13:28:47 +0000 (13:28 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 6 Jul 2007 13:28:47 +0000 (13:28 +0000)
(Christian)

MUON/mapping/AliMpFiles.cxx
MUON/mapping/AliMpFiles.h

index 5c09525..365c91f 100755 (executable)
@@ -63,7 +63,7 @@ const TString AliMpFiles::fgkDataExt = ".dat";
 const TString AliMpFiles::fgkBergToGCFileName = "/bergToGC"; 
 const TString AliMpFiles::fgkTriggerLocalBoards = "crate";
 const TString AliMpFiles::fgkBusPatchFileName = "DetElemIdToBusPatch";
-
+const TString AliMpFiles::fgkBusPatchLengthFileName = "BusPatchLength";
 //______________________________________________________________________________
 AliMpFiles::~AliMpFiles() 
 {
@@ -166,6 +166,14 @@ TString AliMpFiles::BusPatchFilePath()
 }  
 
 //______________________________________________________________________________
+TString AliMpFiles::BusPatchLengthFilePath()
+{
+/// Return path to data file with bus patch mapping.
+
+  return GetTop() + fgkDataDir + "/" + fgkBusPatchLengthFileName + fgkDataExt;
+}  
+
+//______________________________________________________________________________
 TString AliMpFiles::DENamesFilePath(AliMp::StationType station)
 {
 /// Return path to data file with DE names for given station.
index 2412fb8..f3de52d 100755 (executable)
@@ -40,6 +40,7 @@ class AliMpFiles : public TObject
     // bus patch
     //
     static TString BusPatchFilePath(); 
+    static TString BusPatchLengthFilePath(); 
 
     // de names
     //
@@ -115,6 +116,7 @@ class AliMpFiles : public TObject
     static const TString fgkBergToGCFileName;  ///< BergToGC mapping file name
     static const TString fgkTriggerLocalBoards;///<  local board name to id mapping
     static const TString fgkBusPatchFileName;  ///< DetElemIdToBusPatch file name
+    static const TString fgkBusPatchLengthFileName;///< BusPatch length file name
 
   ClassDef(AliMpFiles, 0) //File names and paths 
 };