]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONSt12QuadrantSegmentation.cxx
New segmentation with switch between old and new (Ch. Finck)
[u/mrichter/AliRoot.git] / MUON / AliMUONSt12QuadrantSegmentation.cxx
index 4ee2bc72d4538c3e294dbdf962bf74219db02f23..ecc2ef59908f61d209859c4c797b948dfbcb95ff 100644 (file)
@@ -39,6 +39,8 @@
 #include "AliMUON.h"
 #include "AliMUONChamber.h"
 #include "AliLog.h"
+#include "AliMpFiles.h"
+#include <TSystem.h>
 
 ClassImp(AliMUONSt12QuadrantSegmentation)
 
@@ -74,6 +76,15 @@ AliMUONSt12QuadrantSegmentation::AliMUONSt12QuadrantSegmentation(
   fCorrA(0)
 {
 // Normal constructor
+
+  // set path to mapping data files
+   if (!gSystem->Getenv("MINSTALL")) {    
+     TString dirPath = gSystem->Getenv("ALICE_ROOT");
+     dirPath += "/MUON/mapping"; 
+     AliMpFiles::Instance()->SetTopPath(dirPath);
+     gSystem->Setenv("MINSTALL", dirPath.Data());
+     //cout << "AliMpFiles top path set to " << dirPath << endl;         
+   }
   
   AliMpReader r(stationType, planeType);
   fSector = r.BuildSector();