]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONReconstructor.cxx
First prototype of the reco-param classes. Removal of static instance in the muon...
[u/mrichter/AliRoot.git] / MUON / AliMUONReconstructor.cxx
index d34ad4969a28eb2329d62aa5165256b721b2873d..b3b94c5768e731151fc45002f47a7cbb2106f352 100644 (file)
@@ -178,25 +178,9 @@ const AliMUONRecoParam* AliMUONReconstructor::GetRecoParam()
 {
   /// get reconstruction parameters
   
-  if (!fgRecoParam) {
-    
-    // get reconstruction parameters from AliRecoParam if any
-    TObjArray *recoParams = AliRecoParam::Instance()->GetRecoParam("MUON");
-    
-    if (recoParams) {
-      
-      fgRecoParam = (AliMUONRecoParam*) recoParams->Last();
-      
-    } else {
-      
-      // initialize reconstruction parameters if not already done
-      cout<<"W-AliMUONReconstructor::GetRecoParam: Reconstruction parameters not initialized - Use default one"<<endl;
-      fgRecoParam = AliMUONRecoParam::GetLowFluxParam();
-      AliRecoParam::Instance()->RegisterRecoParam(fgRecoParam);
-      
-    }
-    
-  }
+  // initialize reconstruction parameters if not already done
+  cout<<"W-AliMUONReconstructor::GetRecoParam: Reconstruction parameters not initialized - Use default one"<<endl;
+  fgRecoParam = AliMUONRecoParam::GetLowFluxParam();
   
   return fgRecoParam;
 }