diff --git a/LHCbG4Tests/G4RichTbSimHTest/CMakeLists.txt b/LHCbG4Tests/G4RichTbSimHTest/CMakeLists.txt
index 396d26280f8dc64a1a262c13b45ed2363b211469..232060aa191135ffb875eab671dfefb6ec398f83 100644
--- a/LHCbG4Tests/G4RichTbSimHTest/CMakeLists.txt
+++ b/LHCbG4Tests/G4RichTbSimHTest/CMakeLists.txt
@@ -3,7 +3,7 @@ gaudi_subdir(G4RichTbSimHTest v1r0)
 gaudi_depends_on_subdirs(Geant4/G4config)
 
 find_package(CLHEP REQUIRED COMPONENTS Random)
-find_package(ROOT REQUIRED COMPONENTS Hist Tree)
+find_package(ROOT REQUIRED COMPONENTS Hist Tree RIO)
 
 include_directories(${CMAKE_INSTALL_PREFIX}/include)
 link_directories(${CMAKE_INSTALL_PREFIX}/lib)
diff --git a/LHCbG4Tests/G4RichTbSimHTest/include/RichTbExtHpdGeometryParameters.hh b/LHCbG4Tests/G4RichTbSimHTest/include/RichTbExtHpdGeometryParameters.hh
index 8961e0338035fd3e37af8ef2de02032e2d4406f0..4d608ed9676d4ed3b5dd3d6f33f3657dfc4be218 100644
--- a/LHCbG4Tests/G4RichTbSimHTest/include/RichTbExtHpdGeometryParameters.hh
+++ b/LHCbG4Tests/G4RichTbSimHTest/include/RichTbExtHpdGeometryParameters.hh
@@ -1,9 +1,10 @@
-#ifndef INCLUDE_RICHTBEXTHPDGEOMETRYPARAMETERS_HH 
+#ifndef INCLUDE_RICHTBEXTHPDGEOMETRYPARAMETERS_HH
 #define INCLUDE_RICHTBEXTHPDGEOMETRYPARAMETERS_HH 1
 
 // Include files
-const G4int NumHpds= 1;
+#include <vector>
 
+const G4int NumHpds= 1;
 
 const G4double RichTbHpdMasterRadius = 43.5*CLHEP::mm;
 const G4double RichTbHpdMasterZSize = 160.0*CLHEP::mm;
@@ -31,7 +32,7 @@ const G4double RichTbHpdSiDetDistZFromPhCathode=111.2*CLHEP::mm;
 const G4double RichTbHpdQWCylEnvOuterLargeValue=500.0*CLHEP::mm;
 const G4double RichTbHpdQWCylEnvZLargeValue=1000.0*CLHEP::mm;
 
-// create a hexagonal array. The max radius is 22 x 0.5 
+// create a hexagonal array. The max radius is 22 x 0.5
 
 const G4double RichTbHpdSiDetRadiusSize= 11*CLHEP::mm;
 const G4double RichTbHpdSiDetZSize=0.3*CLHEP::mm;