]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
bugfix: initialisation of geometry when running in the online system (Gaute)
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 13 Aug 2009 11:55:53 +0000 (11:55 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 13 Aug 2009 11:55:53 +0000 (11:55 +0000)
HLT/ITS/AliHLTITSClusterHistoComponent.cxx

index 258efc478de8a49edc7377b91bb1727398b020b8..78fd228099b5f6ffc1f3f7bf535e265572ced6a3 100644 (file)
@@ -34,6 +34,7 @@ using namespace std;
 #include <TString.h>
 #include "TObjString.h"
 #include "TObjArray.h"
+#include "AliGeomManager.h"
 
 //#include <stdlib.h>
 //#include <cerrno>
@@ -105,6 +106,17 @@ AliHLTComponent* AliHLTITSClusterHistoComponent::Spawn()
 
 int AliHLTITSClusterHistoComponent::DoInit( int argc, const char** argv )
 {
+
+  AliCDBManager* man = AliCDBManager::Instance();
+  if (!man->IsDefaultStorageSet()){
+    HLTError("Default CDB storage has not been set !");
+    return -ENOENT;
+  }
+
+  if(AliGeomManager::GetGeometry()==NULL){
+    AliGeomManager::LoadGeometry();
+  }
+
   fPlotCharge=kFALSE;   
   fPlotXY=kTRUE;
   fPlotPhieta=kFALSE;