Update of the "data cleaning" part of the reconstruction.
[u/mrichter/AliRoot.git] / MUON / AliMUONTrackerOCDBDataMaker.cxx
index 1eb4405..00735e9 100644 (file)
@@ -73,10 +73,14 @@ AliMUONTrackerOCDBDataMaker::AliMUONTrackerOCDBDataMaker(const char* ocdbPath,
                store = AliMUONCalibrationData::CreatePedestals(runNumber,&startOfValidity);
                fData = CreateDataPedestals(startOfValidity);
        }
-       else if ( stype == "KILLMAP" )
+       else if ( stype == "OCCUPANCY" )
        {
-               store = AliMUONCalibrationData::CreateKillMap(runNumber,&startOfValidity);
-               fData = CreateDataKillMap(startOfValidity);
+               store = AliMUONCalibrationData::CreateOccupancyMap(runNumber,&startOfValidity);
+    
+    fData = new AliMUONTrackerData(Form("OCC%d",runNumber),"OccupancyMap",*store);
+    
+    fData->SetDimensionName(0,"One");
+    fData->SetDimensionName(1,"Zero");
        }
        else if ( stype == "GAINS" ) 
        {
@@ -110,8 +114,11 @@ AliMUONTrackerOCDBDataMaker::AliMUONTrackerOCDBDataMaker(const char* ocdbPath,
                return;
        }
        
-       fData->Add(*store);
-       
+  if ( type != "OCCUPANCY" )
+  {
+    fData->Add(*store);
+       }
+  
        delete store;
 }
 
@@ -163,17 +170,6 @@ AliMUONTrackerOCDBDataMaker::CreateDataPedestals(Int_t runNumber)
 }
 
 //_____________________________________________________________________________
-AliMUONVTrackerData*
-AliMUONTrackerOCDBDataMaker::CreateDataKillMap(Int_t runNumber)
-{
-  /// Create data to hold pedestal values
-  
-  AliMUONVTrackerData* data  = new AliMUONTrackerData(Form("KILL%d",runNumber),"KillMap",1,kTRUE);
-  data->SetDimensionName(0,"Kill");
-  return data;
-}
-
-//_____________________________________________________________________________
 AliMUONVStore*
 AliMUONTrackerOCDBDataMaker::CreateHVStore(TMap& m)
 {