Flexible pt range for the efficiency histogramming
[u/mrichter/AliRoot.git] / MUON / AliMUONTrackerConditionDataMaker.cxx
index 4379f55..64ccdb0 100644 (file)
@@ -107,7 +107,16 @@ fIsOwnerOfData(kTRUE)
     {
       fData = CreateData(type,*store,startOfValidity);
     }
-    // we do not delete the store, as it's supposedly part of the OCDB cache...
+    delete store;
+  }
+
+  if ( fData )
+  {
+    TString name(fData->GetName());
+    name += "(";
+    name += ocdbPath;
+    name += ")";
+    fData->SetName(name);
   }
   
   AliCDBManager::Instance()->SetDefaultStorage(storage);
@@ -297,7 +306,7 @@ AliMUONTrackerConditionDataMaker::CreateHVStore(TMap& m)
       
       if ( nPCBs ) 
       {
-        TString switchName(hvNamer.DCSSwitchName(detElemId,i));
+        TString switchName(hvNamer.DCSSwitchAliasName(detElemId,i));
 
         TPair* p = static_cast<TPair*>(m.FindObject(switchName.Data()));
         TObjArray* a = static_cast<TObjArray*>(p->Value());