- correct initialization of geometry for the component to work in the HLT framework
authorkkanaki <kkanaki@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 11 Nov 2009 10:41:26 +0000 (10:41 +0000)
committerkkanaki <kkanaki@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 11 Nov 2009 10:41:26 +0000 (10:41 +0000)
HLT/ITS/AliHLTITSSSDQARecPointsComponent.cxx

index 84b6ef6..acdbe32 100644 (file)
@@ -37,6 +37,7 @@ using namespace std;
 #include "TH1.h"
 #include "TH2.h"
 #include "AliITSgeomTGeo.h"
+#include "AliGeomManager.h"
 
 //#include <stdlib.h>
 //#include <cerrno>
@@ -97,6 +98,13 @@ AliHLTComponent* AliHLTITSSSDQARecPointsComponent::Spawn()
 
 int AliHLTITSSSDQARecPointsComponent::DoInit(int /*argc*/, const char** /*argv*/) {
   //Inititalization of histograms for the SSD QA component
+  
+  
+  if(AliGeomManager::GetGeometry()==NULL){
+     AliGeomManager::LoadGeometry();
+  }
+  
+  
   fHistSSDArray = new TObjArray();  
   fHistSSDArray->SetName("ssdArray");