From 3c66572943f670e3dec161d3a2a3f261e7b3aec8 Mon Sep 17 00:00:00 2001
From: Dmitry Popov <Dmitry.Popov@cern.ch>
Date: Tue, 9 Jan 2018 18:54:36 +0100
Subject: [PATCH] Fixed linking and missing include in G4RICH test

---
 LHCbG4Tests/G4RichTbSimHTest/CMakeLists.txt                | 2 +-
 .../include/RichTbExtHpdGeometryParameters.hh              | 7 ++++---
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/LHCbG4Tests/G4RichTbSimHTest/CMakeLists.txt b/LHCbG4Tests/G4RichTbSimHTest/CMakeLists.txt
index 396d262..232060a 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 8961e03..4d608ed 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;
-- 
GitLab