]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
- 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 84b6ef63148c8dc2dc0327e7bd08ed7499bea5d9..acdbe3265f2d187c35e885b9d12833ea8274ee5c 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");