21#include "GaudiKernel/ITHistSvc.h"
68 ATH_MSG_FATAL(
"Cannot retrieve TrackingGeometrySvc. Abort job. " );
69 return StatusCode::FAILURE;
73 return StatusCode::SUCCESS;
99 m_unmappedTree =
new TTree(
"UnmappedHits",
"Unmapped Hits of the MappingTest Algorithm");
107 SmartIF<ITHistSvc> tHistSvc{service(
"THistSvc")};
109 ATH_MSG_ERROR(
"initialize() Could not find Hist Service -> Switching Tree output off !" );
113 if (tHistSvc && ((tHistSvc->regTree(
"/val/UnmappedAssociations",
m_unmappedTree)).isFailure()
114 || (tHistSvc->regTree(
"/val/MappingTest",
m_mappingTree)).isFailure()) ) {
115 ATH_MSG_ERROR(
"initialize() Could not register the validation Tree -> Switching Tree output off !" );
120 return StatusCode::SUCCESS;
140 ATH_MSG_INFO(
"Retrieved TrackingVolume '" << tVolume->
volumeName() <<
"'. Start the mapping validation.");
152 double mapX = mapRad*cos(mapPhi);
153 double mapY = mapRad*sin(mapPhi);
195 return StatusCode::SUCCESS;
#define ATH_MSG_VERBOSE(x)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
const ServiceHandle< StoreGateSvc > & detStore() const
Bounds for a cylindrical Volume, the decomposeToSurfaces method creates a vector of up to 6 surfaces:
double innerRadius() const
This method returns the inner radius.
double halflengthZ() const
This method returns the halflengthZ.
double deltaRadius() const
This method returns the delta radius.
Intersection intersection
int value() const
layerIndex expressed in an integer
const LayerIndex & layerIndex() const
get the layerIndex
ServiceHandle< Trk::ITrackingGeometrySvc > m_trackingGeometrySvc
Service handle for retrieving the TrackingGeometry.
StatusCode initializeTest()
float m_assignedPositionZ
float m_unmappedPositionZ
float m_unmappedPositionX
float m_assignmentDistance
bool m_executed
Make sure it only runs once.
double m_etaCutOff
do not map beyond this point
std::string m_mappingTreeDescription
float m_assignedCorrection
float m_assignedPositionY
float m_assignedPositionR
MappingTest(const std::string &name, ISvcLocator *pSvcLocator)
Standard Athena-Algorithm Constructor.
float m_unmappedPositionY
const TrackingGeometry * m_trackingGeometry
The TrackingGeometry to be retrieved.
std::string m_mappingVolumeName
only map within this volume
std::string m_trackingGeometryName
The Name of the TrackingGeometry.
float m_unmappedPositionR
std::string m_mappingTreeName
float m_assignedPositionX
Full Volume description used in Tracking, it inherits from Volume to get the geometrical structure,...
const std::string & volumeName() const
Returns the VolumeName - for debug reason, might be depreciated later.
TrkDetDescrUnitTestBase(const std::string &name, ISvcLocator *pSvcLocator)
Standard Athena-Algorithm Constructor.
size_t m_numTests
number of tests
Rndm::Numbers * m_flatDist
const VolumeBounds & volumeBounds() const
returns the volumeBounds()
Eigen::Matrix< double, 3, 1 > Vector3D
Ensure that the ATLAS eigen extensions are properly loaded.
CurvilinearParametersT< NeutralParametersDim, Neutral, PlaneSurface > NeutralCurvilinearParameters
FullIntersection< Layer, Surface, T > LayerIntersection