]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONCalibrationData.cxx
Changed default OCDB from 2009 to 2010
[u/mrichter/AliRoot.git] / MUON / AliMUONCalibrationData.cxx
index c98799584e745d12e0f8e25531bfbfef227841bd..64eca8effd7f0550111c70437ff33d76bc738073 100644 (file)
 
 #include "AliCDBEntry.h"
 #include "AliCDBManager.h"
-#include "AliCDBStorage.h"
+#include "AliCodeTimer.h"
 #include "AliLog.h"
-#include "AliMUONV2DStore.h"
+#include "AliMUONRejectList.h"
+#include "AliMUONTriggerEfficiencyCells.h"
+#include "AliMUONTriggerLut.h"
+#include "AliMUONVStore.h"
+#include "AliMUONVStore.h"
 #include "AliMUONVCalibParam.h"
-#include "Riostream.h"
+#include "AliMUONGlobalCrateConfig.h"
+#include "AliMUONRegionalTriggerConfig.h"
 
+#include <Riostream.h>
+#include <TClass.h>
+#include <TMap.h>
+
+//-----------------------------------------------------------------------------
+/// \class AliMUONCalibrationData
+///
+/// For the moment, this class stores pedestals, gains, hv (for tracker)
+/// and lut, masks and efficiencies (for trigger) that are fetched from the CDB.
+///
+/// This class is to be considered as a convenience class.
+/// Its aim is to ease retrieval of calibration data from the 
+/// condition database.
+///
+/// It acts as a "facade" to a bunch of underlying 
+/// containers/calibration classes.
+///
+/// \author Laurent Aphecetche
+//-----------------------------------------------------------------------------
+
+/// \cond CLASSIMP
 ClassImp(AliMUONCalibrationData)
+/// \endcond
+
+AliMUONVStore* AliMUONCalibrationData::fBypassPedestals(0x0);
+AliMUONVStore* AliMUONCalibrationData::fBypassGains(0x0);
 
 //_____________________________________________________________________________
 AliMUONCalibrationData::AliMUONCalibrationData(Int_t runNumber, 
@@ -35,224 +65,618 @@ fIsValid(kTRUE),
 fRunNumber(runNumber), 
 fGains(0x0), 
 fPedestals(0x0),
-fDeadChannels(0x0)
+fHV(0x0),
+fTriggerDCS(0x0),
+fLocalTriggerBoardMasks(0x0),
+fRegionalTriggerConfig(0x0),
+fGlobalTriggerCrateConfig(0x0),
+fTriggerLut(0x0),
+fTriggerEfficiency(0x0),
+fCapacitances(0x0),
+fNeighbours(0x0),
+fOccupancyMap(0x0),
+fRejectList(0x0),
+fConfig(0x0)
 {
-  //
-  // Default ctor.
+/// Default ctor.
+
   // If deferredInitialization is false, we read *all* calibrations
   // at once.
   // So when using this class to access only one kind of calibrations (e.g.
   // only pedestals), you should put deferredInitialization to kTRUE, which
   // will instruct this object to fetch the data only when neeeded.
-  //
+
   if ( deferredInitialization == kFALSE )
   {
     Gains();
     Pedestals();
-    DeadChannels();
+    OccupancyMap();
+    RejectList();
+    HV();
+    TriggerDCS();
+    LocalTriggerBoardMasks(0);
+    RegionalTriggerConfig();
+    GlobalTriggerCrateConfig();
+    TriggerLut();
+    TriggerEfficiency();
+    Capacitances();
+    Neighbours();
+    Config();
   }
 }
 
-//______________________________________________________________________________
-AliMUONCalibrationData::AliMUONCalibrationData(const AliMUONCalibrationData& right) 
-  : TObject(right) 
-{  
-/// Protected copy constructor (not implemented)
+//_____________________________________________________________________________
+AliMUONCalibrationData::~AliMUONCalibrationData()
+{
+  /// Destructor. Note that we're the owner of our pointers if the OCDB cache
+  /// is not set. Otherwise the cache is supposed to take care of them...
+  if (!(AliCDBManager::Instance()->GetCacheFlag())) Reset();
+}
 
-  AliFatal("Copy constructor not provided.");
+//_____________________________________________________________________________
+AliMUONVStore*
+AliMUONCalibrationData::Capacitances() const
+{
+  /// Create (if needed) and return the internal store for capacitances.
+  
+  if (!fCapacitances)
+  {
+    fCapacitances = CreateCapacitances(fRunNumber);
+  }
+  return fCapacitances;
 }
 
 //_____________________________________________________________________________
-AliMUONCalibrationData::~AliMUONCalibrationData()
+AliMUONVStore*
+AliMUONCalibrationData::CreateCapacitances(Int_t runNumber, Int_t* startOfValidity)
 {
-  //
-  // dtor. Note that we're the owner of our pointers.
-  //
-  delete fPedestals;
-  delete fGains;
-  delete fDeadChannels;
+  /// Create capa store from OCDB for a given run
+  
+  return dynamic_cast<AliMUONVStore*>(CreateObject(runNumber,"MUON/Calib/Capacitances",startOfValidity));
+}
+
+//_____________________________________________________________________________
+AliMUONVStore*
+AliMUONCalibrationData::CreateGains(Int_t runNumber, Int_t* startOfValidity)
+{
+  /// Create a new gain store from the OCDB for a given run
+  return dynamic_cast<AliMUONVStore*>(CreateObject(runNumber,"MUON/Calib/Gains",startOfValidity));
+}
+
+//_____________________________________________________________________________
+AliMUONGlobalCrateConfig*
+AliMUONCalibrationData::CreateGlobalTriggerCrateConfig(Int_t runNumber, Int_t* startOfValidity)
+{
+  /// Create the internal store for GlobalTriggerCrateConfig from OCDB
+  
+  return dynamic_cast<AliMUONGlobalCrateConfig*>(CreateObject(runNumber,"MUON/Calib/GlobalTriggerCrateConfig",startOfValidity));
+}
+
+
+
+//_____________________________________________________________________________
+TMap*
+AliMUONCalibrationData::CreateHV(Int_t runNumber, Int_t* startOfValidity)
+{
+  /// Create a new HV map from the OCDB for a given run
+  return dynamic_cast<TMap*>(CreateObject(runNumber,"MUON/Calib/HV",startOfValidity));
 }
 
-//______________________________________________________________________________
-AliMUONCalibrationData& 
-AliMUONCalibrationData::operator=(const AliMUONCalibrationData& right)
+//_____________________________________________________________________________
+TMap*
+AliMUONCalibrationData::CreateTriggerDCS(Int_t runNumber, Int_t* startOfValidity)
 {
-/// Protected assignement operator (not implemented)
+  /// Create a new Trigger HV and curent map from the OCDB for a given run
+  return dynamic_cast<TMap*>(CreateObject(runNumber,"MUON/Calib/TriggerDCS",startOfValidity));
+}
 
-  // check assignement to self
-  if (this == &right) return *this;
+//_____________________________________________________________________________
+AliMUONVStore*
+AliMUONCalibrationData::CreateLocalTriggerBoardMasks(Int_t runNumber, Int_t* startOfValidity)
+{
+  /// Get the internal store for LocalTriggerBoardMasks from OCDB
+  
+  return dynamic_cast<AliMUONVStore*>(CreateObject(runNumber,"MUON/Calib/LocalTriggerBoardMasks",startOfValidity));
+}
 
-  AliFatal("Assignement operator not provided.");
+//_____________________________________________________________________________
+AliMUONVStore*
+AliMUONCalibrationData::CreateNeighbours(Int_t runNumber, Int_t* startOfValidity)
+{
+  /// Create a neighbour store from the OCDB for a given run
+  return dynamic_cast<AliMUONVStore*>(CreateObject(runNumber,"MUON/Calib/Neighbours",startOfValidity));
+}
+
+//_____________________________________________________________________________
+TObject*
+AliMUONCalibrationData::CreateObject(Int_t runNumber, const char* path, Int_t* startOfValidity)
+{
+  /// Access the CDB for a given path (e.g. MUON/Calib/Pedestals),
+  /// and return the corresponding TObject.
+  
+  AliCodeTimerAutoClass(Form("%d : %s",runNumber,path),0);
+  
+  AliCDBManager* man = AliCDBManager::Instance();
+  
+  AliCDBEntry* entry =  man->Get(path,runNumber);
+  
+  if (entry)
+  {
+               if ( startOfValidity ) *startOfValidity = entry->GetId().GetFirstRun();
+               
+    TObject* object = entry->GetObject();
+    entry->SetOwner(kFALSE);
+    if (!(man->GetCacheFlag())) delete entry;
+    return object;
+  }
+       else
+       {
+               if ( startOfValidity )  *startOfValidity = AliCDBRunRange::Infinity();
+  }
+       
+  {
     
-  return *this;  
-}    
+    AliCodeTimerAutoClass(Form("Failed to get %s for run %d",path,runNumber),1);
+
+  }
+  
+  return 0x0;
+}
 
 //_____________________________________________________________________________
-AliMUONVCalibParam*
-AliMUONCalibrationData::DeadChannel(Int_t detElemId, Int_t manuId) const
+AliMUONVStore*
+AliMUONCalibrationData::CreateOccupancyMap(Int_t runNumber, Int_t* startOfValidity)
+{
+  /// Create a new occupancy map store from the OCDB for a given run
+  return dynamic_cast<AliMUONVStore*>(CreateObject(runNumber,"MUON/Calib/OccupancyMap",startOfValidity));
+}
+
+//_____________________________________________________________________________
+AliMUONRejectList*
+AliMUONCalibrationData::CreateRejectList(Int_t runNumber, Int_t* startOfValidity)
 {
-  //
-  // Return the calibration for a given (detElemId, manuId) pair
-  // Note that for DeadChannel, it's "legal" to return 0x0 (e.g. if a manu
-  // is perfect, we might simply forget it in the store).
-  //
-  return
-  static_cast<AliMUONVCalibParam*>(DeadChannels()->Get(detElemId,manuId));
+  /// Create a new rejectlist store from the OCDB for a given run
+  return dynamic_cast<AliMUONRejectList*>(CreateObject(runNumber,"MUON/Calib/RejectList",startOfValidity));
 }
 
 //_____________________________________________________________________________
-AliMUONV2DStore*
-AliMUONCalibrationData::DeadChannels() const
+AliMUONVStore*
+AliMUONCalibrationData::CreatePedestals(Int_t runNumber, Int_t* startOfValidity)
 {
-  //
-  // Create (if needed) and return the internal store for DeadChannels.
-  //
-  if (!fDeadChannels)
+  /// Create a new pedestal store from the OCDB for a given run
+  return dynamic_cast<AliMUONVStore*>(CreateObject(runNumber,"MUON/Calib/Pedestals",startOfValidity));
+}
+
+//_____________________________________________________________________________
+AliMUONVStore*
+AliMUONCalibrationData::CreateConfig(Int_t runNumber, Int_t* startOfValidity)
+{
+  /// Create a new config store from the OCDB for a given run
+  return dynamic_cast<AliMUONVStore*>(CreateObject(runNumber,"MUON/Calib/Config",startOfValidity));
+}
+
+
+//_____________________________________________________________________________
+AliMUONRegionalTriggerConfig*
+AliMUONCalibrationData::CreateRegionalTriggerConfig(Int_t runNumber, Int_t* startOfValidity)
+{
+  /// Create the internal store for RegionalTriggerConfig from OCDB
+  
+  return dynamic_cast<AliMUONRegionalTriggerConfig*>(CreateObject(runNumber,"MUON/Calib/RegionalTriggerConfig",startOfValidity));
+}
+
+//_____________________________________________________________________________
+AliMUONTriggerEfficiencyCells* 
+AliMUONCalibrationData::CreateTriggerEfficiency(Int_t runNumber, Int_t* startOfValidity)
+{
+  /// Create trigger efficiency object from OCBD
+  
+  return dynamic_cast<AliMUONTriggerEfficiencyCells*>(CreateObject(runNumber,"MUON/Calib/TriggerEfficiency",startOfValidity));
+}
+
+//_____________________________________________________________________________
+AliMUONTriggerLut* 
+AliMUONCalibrationData::CreateTriggerLut(Int_t runNumber, Int_t* startOfValidity)
+{
+  /// Create trigger LUT from OCDB
+  
+  return dynamic_cast<AliMUONTriggerLut*>(CreateObject(runNumber,"MUON/Calib/TriggerLut",startOfValidity));
+}
+
+//_____________________________________________________________________________
+AliMUONVStore*
+AliMUONCalibrationData::Gains() const
+{
+  /// Create (if needed) and return the internal store for gains.
+  if (fBypassGains) return fBypassGains;
+  
+  if (!fGains)
   {
-    AliCDBEntry* entry = GetEntry("MUON/Calib/DeadChannels");
-    if (entry)
-    {
-      fDeadChannels = dynamic_cast<AliMUONV2DStore*>(entry->GetObject());
-      if (!fDeadChannels)
-      {
-        AliError("fDeadChannels not of the expected type !!!");
-      }
-    }
-    else
-    {
-      AliError("Could not get dead channels !");
-    }
+    fGains = CreateGains(fRunNumber);
   }
-  return fDeadChannels;
+  return fGains;
 }
 
 //_____________________________________________________________________________
-AliCDBEntry*
-AliMUONCalibrationData::GetEntry(const char* path) const
+AliMUONVCalibParam*
+AliMUONCalibrationData::Gains(Int_t detElemId, Int_t manuId) const
 {
-  //
-  // Access the CDB for a given path (e.g. MUON/Calib/Pedestals),
-  // and return the corresponding CDBEntry.
-  //
-  AliInfo(Form("Fetching %s from Condition DataBase for run %d",path,fRunNumber));
+/// Return the gains for a given (detElemId, manuId) pair
+/// Note that, unlike the DeadChannel case, if the result is 0x0, that's an
+/// error (meaning that we should get gains for all channels).
+
+  AliMUONVStore* gains = Gains();
+  if (!gains)
+  {
+    return 0x0;
+  }
   
-  AliCDBManager* man = AliCDBManager::Instance();
-  if (!man->IsDefaultStorageSet())
+  return static_cast<AliMUONVCalibParam*>(gains->FindObject(detElemId,manuId));
+}
+
+//_____________________________________________________________________________
+AliMUONGlobalCrateConfig* 
+AliMUONCalibrationData::GlobalTriggerCrateConfig() const
+{
+  /// Return the config for the global trigger board.
+  
+  if (!fGlobalTriggerCrateConfig)
   {
-    AliError("No default CDB storage set !");
-    fIsValid = kFALSE;
-    return 0;
+    fGlobalTriggerCrateConfig = CreateGlobalTriggerCrateConfig(fRunNumber);
   }
+  return fGlobalTriggerCrateConfig;
+}
+
+
+//_____________________________________________________________________________
+TMap*
+AliMUONCalibrationData::HV() const
+{
+  /// Return the calibration for a given (detElemId, manuId) pair
   
-  AliCDBStorage* storage = man->GetDefaultStorage();
+  if (!fHV)
+  {
+    fHV = CreateHV(fRunNumber);
+  }
+  return fHV;
+}
+
+//_____________________________________________________________________________
+TMap*
+AliMUONCalibrationData::TriggerDCS() const
+{
+  /// Return the calibration for a given (detElemId, manuId) pair
   
-  AliCDBEntry* entry = storage->Get(path,fRunNumber);
-  return entry;
+  if (!fTriggerDCS)
+  {
+    fTriggerDCS = CreateTriggerDCS(fRunNumber);
+  }
+  return fTriggerDCS;
 }
 
 //_____________________________________________________________________________
-AliMUONVCalibParam*
-AliMUONCalibrationData::Gain(Int_t detElemId, Int_t manuId) const
+AliMUONVStore*
+AliMUONCalibrationData::Neighbours() const
 {
-  //
-  // Return the gains for a given (detElemId, manuId) pair
-  // Note that, unlike the DeadChannel case, if the result is 0x0, that's an
-  // error (meaning that we should get gains for all channels).
-  //
-  AliMUONVCalibParam* gain = 
-    static_cast<AliMUONVCalibParam*>(Gains()->Get(detElemId,manuId));
-  if (!gain)
+  /// Create (if needed) and return the internal store for neighbours.
+  if (!fNeighbours)
   {
-    AliError(Form("Could not get gain for detElemId=%d manuId=%d ",
-                    detElemId,manuId));
+    fNeighbours = CreateNeighbours(fRunNumber);
   }
-  return gain;
+  return fNeighbours;
 }
 
 //_____________________________________________________________________________
-AliMUONV2DStore*
-AliMUONCalibrationData::Gains() const
+AliMUONVCalibParam* 
+AliMUONCalibrationData::LocalTriggerBoardMasks(Int_t localBoardNumber) const
 {
-  //
-  // Create (if needed) and return the internal store for gains.
-  //
-  if (!fGains)
+/// Return the masks for a given trigger local board.
+
+  if (!fLocalTriggerBoardMasks)
   {
-    AliCDBEntry* entry = GetEntry("MUON/Calib/Gains");
-    if (entry)
-    {
-      fGains = dynamic_cast<AliMUONV2DStore*>(entry->GetObject());
-      if (!fGains)
-      {
-        AliError("Gains not of the expected type !!!");
-      }
-    }
-    else
+    fLocalTriggerBoardMasks = CreateLocalTriggerBoardMasks(fRunNumber);
+  }
+
+  if ( fLocalTriggerBoardMasks ) 
+  {
+    AliMUONVCalibParam* ltbm = 
+      static_cast<AliMUONVCalibParam*>(fLocalTriggerBoardMasks->FindObject(localBoardNumber));
+    if (!ltbm)
     {
-      AliError("Could not get gains !");
+      AliError(Form("Could not get mask for localBoardNumber=%d",localBoardNumber));
     }
+    return ltbm;  
   }
-  return fGains;
+  return 0x0;
 }
 
 //_____________________________________________________________________________
-AliMUONV2DStore*
+AliMUONVStore*
+AliMUONCalibrationData::OccupancyMap() const
+{
+  /// Get occupancy map
+  if (!fOccupancyMap)
+  {
+    fOccupancyMap = CreateOccupancyMap(fRunNumber);
+  }
+  return fOccupancyMap;
+}
+
+//_____________________________________________________________________________
+AliMUONRejectList*
+AliMUONCalibrationData::RejectList() const
+{
+  /// Get reject list
+  if (!fRejectList)
+  {
+    fRejectList = CreateRejectList(fRunNumber);
+  }
+  return fRejectList;
+}
+
+//_____________________________________________________________________________
+void
+AliMUONCalibrationData::BypassStores(AliMUONVStore* ped, AliMUONVStore* gain)
+{
+  /// Force the use of those pedestals and gains
+  fBypassPedestals = ped;
+  fBypassGains = gain;
+  
+}
+
+//_____________________________________________________________________________
+AliMUONVStore*
 AliMUONCalibrationData::Pedestals() const
 {
-  //
-  // Create (if needed) and return the internal storage for pedestals.
-  //
+  /// Return pedestals
+  
+  if (fBypassPedestals) return fBypassPedestals;
+  
   if (!fPedestals)
   {
-    AliCDBEntry* entry = GetEntry("MUON/Calib/Pedestals");
-    if (entry)
-    {
-      fPedestals = dynamic_cast<AliMUONV2DStore*>(entry->GetObject());
-      if (!fPedestals)
-      {
-        AliError("fPedestals not of the expected type !!!");
-      }
-    }
-    else
-    {
-      AliError("Could not get pedestals !");
-    }
+    fPedestals = CreatePedestals(fRunNumber);
   }
   return fPedestals;
 }
 
+//_____________________________________________________________________________
+AliMUONVStore*
+AliMUONCalibrationData::Config() const
+{
+  /// Return config
+  
+  if (!fConfig)
+  {
+    fConfig = CreateConfig(fRunNumber);
+  }
+  return fConfig;
+}
+
+//_____________________________________________________________________________
+AliMUONVCalibParam*
+AliMUONCalibrationData::Pedestals(Int_t detElemId, Int_t manuId) const
+{
+  /// Return the pedestals for a given (detElemId, manuId) pair.
+  /// A return value of 0x0 is considered an error, meaning we should get
+  /// pedestals for all channels.
+  
+  AliMUONVStore* pedestals = Pedestals();
+  if (!pedestals) 
+  {
+    return 0x0;
+  }
+  
+  return static_cast<AliMUONVCalibParam*>(pedestals->FindObject(detElemId,manuId));
+}
+
 //_____________________________________________________________________________
 void
 AliMUONCalibrationData::Print(Option_t*) const
 {
-  //
-  // A very basic dump of our guts.
-  //  
+  /// A very basic dump of our guts.
+
   cout << "RunNumber " << RunNumber()
-    << " fGains=" << fGains
-    << " fPedestals=" << fPedestals
-    << " fDeadChannels=" << fDeadChannels
+  << " fGains=" << fGains
+  << " fPedestals=" << fPedestals
+  << " fConfig=" << fConfig
+  << " fHV=" << fHV
+  << " fTriggerDCS=" << fTriggerDCS
+  << " fLocalTriggerBoardMasks=" << fLocalTriggerBoardMasks
+  << " fRegionalTriggerConfig=" << fRegionalTriggerConfig
+  << " fGlobalTriggerCrateConfig=" << fGlobalTriggerCrateConfig
+  << " fTriggerLut=" << fTriggerLut
   << endl;
 }
 
 
 //_____________________________________________________________________________
-AliMUONVCalibParam*
-AliMUONCalibrationData::Pedestal(Int_t detElemId, Int_t manuId) const
+AliMUONRegionalTriggerConfig* 
+AliMUONCalibrationData::RegionalTriggerConfig() const
+{
+  /// Return the config for the regional trigger board.
+  
+  if (!fRegionalTriggerConfig)
+  {
+    fRegionalTriggerConfig = CreateRegionalTriggerConfig(fRunNumber);
+    }
+  return fRegionalTriggerConfig;
+}
+
+
+//_____________________________________________________________________________
+AliMUONTriggerEfficiencyCells*
+AliMUONCalibrationData::TriggerEfficiency() const
+{
+/// Return the trigger efficiency.
+
+  if (!fTriggerEfficiency)
+  {
+    fTriggerEfficiency = CreateTriggerEfficiency(fRunNumber);
+  }
+  return fTriggerEfficiency;
+}
+
+
+//_____________________________________________________________________________
+AliMUONTriggerLut*
+AliMUONCalibrationData::TriggerLut() const
+{
+/// Return the trigger look up table.
+
+  if (!fTriggerLut)
+  {
+    fTriggerLut = CreateTriggerLut(fRunNumber);
+  }
+  return fTriggerLut;
+}
+
+//_____________________________________________________________________________
+void
+AliMUONCalibrationData::Reset()
+{
+/// Reset all data
+
+  delete fConfig;
+  fConfig = 0x0;
+  delete fPedestals;
+  fPedestals = 0x0;
+  delete fGains;
+  fGains = 0x0;
+  delete fHV;
+  fHV = 0x0;
+  delete fTriggerDCS;
+  fTriggerDCS = 0x0;
+  delete fLocalTriggerBoardMasks;
+  fLocalTriggerBoardMasks = 0x0;
+  delete fRegionalTriggerConfig;
+  fRegionalTriggerConfig = 0x0;
+  delete fGlobalTriggerCrateConfig;
+  fGlobalTriggerCrateConfig = 0x0;
+  
+  delete fTriggerLut;
+  fTriggerLut = 0x0;
+  delete fTriggerEfficiency;
+  fTriggerEfficiency = 0x0;
+  delete fCapacitances;
+  fCapacitances = 0x0;
+  delete fNeighbours;
+  fNeighbours = 0x0;
+}
+
+//_____________________________________________________________________________
+void
+AliMUONCalibrationData::Check(Int_t runNumber)
 {
-  //
-  // Return the pedestals for a given (detElemId, manuId) pair.
-  // A return value of 0x0 is considered an error, meaning we should get
-  // pedestals for all channels.
-  //
-  AliMUONVCalibParam* ped = 
-    static_cast<AliMUONVCalibParam*>(Pedestals()->Get(detElemId,manuId));
-  if (!ped)
+  /// Self-check to see if we can read all data for a given run 
+  /// from the current OCDB...
+  
+  if ( ! CreateCapacitances(runNumber) )
+  {
+    AliErrorClass("Could not read capacitances");
+  }
+  else
+  {
+    AliInfoClass("Capacitances read OK");
+  }
+
+  if ( ! CreateGains(runNumber) ) 
+  {
+    AliErrorClass("Could not read gains");
+  }
+  else
+  {
+    AliInfoClass("Gains read OK");
+  }
+
+  if ( ! CreateGlobalTriggerCrateConfig(runNumber) ) 
+  {
+    AliErrorClass("Could not read Trigger Crate Config");
+  }
+  else
+  {
+    AliInfoClass("TriggerBoardMasks read OK");
+  }
+
+  if ( !  CreateHV(runNumber) )
+  {
+    AliErrorClass("Could not read HV");
+  }
+  else
+  {
+    AliInfoClass("HV read OK");
+  }
+
+  if ( !  CreateTriggerDCS(runNumber) )
+  {
+    AliErrorClass("Could not read Trigger HV and Currents");
+  }
+  else
+  {
+    AliInfoClass("Trigger HV and Currents read OK");
+  }
+
+  if ( ! CreateNeighbours(runNumber) )
+  {
+    AliErrorClass("Could not read Neighbours");
+  }
+  else
+  {
+    AliInfoClass("Neighbours read OK");
+  }
+
+  if ( !  CreateLocalTriggerBoardMasks(runNumber) )
+  {
+    AliErrorClass("Could not read LocalTriggerBoardMasks");
+  }
+  else
+  {
+    AliInfoClass("LocalTriggerBoardMasks read OK");
+  }
+  
+  if ( ! CreatePedestals(runNumber) )
+  {
+    AliErrorClass("Could not read pedestals");
+  }
+  else
+  {
+    AliInfoClass("Pedestals read OK");
+  }
+
+  if ( ! CreateConfig(runNumber) )
+  {
+    AliErrorClass("Could not read config");
+  }
+  else
+  {
+    AliInfoClass("Config read OK");
+  }
+  
+  if ( ! CreateRegionalTriggerConfig(runNumber) )
+  {
+    AliErrorClass("Could not read RegionalTriggerConfig");
+  }
+  else
+  {
+    AliInfoClass("RegionalTriggerBoardMasks read OK");
+  }
+  
+  if ( ! CreateTriggerLut(runNumber) )
+  {
+    AliErrorClass("Could not read TriggerLut");
+  }
+  else
+  {
+    AliInfoClass("TriggerLut read OK");
+  }
+
+  if ( ! CreateTriggerEfficiency(runNumber) )
+  {
+    AliErrorClass("Could not read TriggerEfficiency");
+  }
+  else    
   {
-    AliError(Form("Could not get pedestal for detElemId=%d manuId=%d ",
-                  detElemId,manuId));
+    AliInfoClass("TriggerEfficiency read OK");
   }
-  return ped;
 }