]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONv1.cxx
Adding fIsTailEffect data member (an option to turn on/off
[u/mrichter/AliRoot.git] / MUON / AliMUONv1.cxx
index 078893a844c993a58f67ece02e7a7621f3f6f2ba..6ad827c500f75a09ceefd5752d1a832e4552a6eb 100644 (file)
@@ -33,6 +33,7 @@
 #include "AliMUONStringIntMap.h"       
 #include "AliMUONGeometryDetElement.h" 
 
+#include "AliMpCDB.h"
 #include "AliMpDEManager.h"
 
 #include "AliConst.h" 
@@ -92,6 +93,11 @@ AliMUONv1::AliMUONv1(const char *name, const char* title)
 
     AliDebug(1,Form("ctor this=%p",this));     
        
+    // Load mapping
+    if ( ! AliMpCDB::LoadMpSegmentation() ) {
+      AliFatal("Could not access mapping from OCDB !");
+    }
+       
     // By default include all stations
 
     fStepSum   = new Float_t [AliMUONConstants::NCh()];
@@ -176,7 +182,7 @@ void AliMUONv1::Init()
   //
   // Build response
   //
-  AliMUONResponseFactory respFactory("default");
+  AliMUONResponseFactory respFactory("default", fIsTailEffect);
   respFactory.Build(this);
   
 }