Skip to content
Snippets Groups Projects

Test for override of Velo motion system from YAML files

Merged Roel Aaij requested to merge velo_motion_yaml_test into master
Files
8
@@ -27,6 +27,9 @@ using DeVPSensor = LHCb::Detector::DeVPSensor;
#else
# include "DetDesc/Condition.h"
# include "GaudiKernel/SmartDataPtr.h"
// Local
# include "VPDet/DeVPSensor.h"
@@ -82,7 +85,7 @@ public:
}
/// Added for forward-compatibility with dd4hep
auto beamSpot() const { return Gaudi::XYZPoint{0., 0., 0.}; }
auto beamSpot() const { return m_beamSpot; }
private:
/// local to global matrix cache
@@ -103,6 +106,10 @@ private:
/// cache of the pixel size of sensors
float m_pixel_size = 0;
// beamspot
Condition const* m_beamSpotCond = nullptr;
Gaudi::XYZPoint m_beamSpot = {0., 0., 0.};
public:
/// Return local x for a given sensor.
float local_x( unsigned int n ) const { return m_local_x[n]; }
@@ -142,6 +149,9 @@ private:
/// code updateing the cached data when geometry changes
StatusCode updateCache();
// update beamspot location
StatusCode updateBeamSpot();
};
#endif
Loading