21#include "GaudiKernel/ITHistSvc.h"
30 ATH_MSG_FATAL(
"Cannot retrieve TrackingGeometrySvc. Abort job. " );
31 return StatusCode::FAILURE;
35 return StatusCode::SUCCESS;
62 m_unmappedTree =
new TTree(
"UnmappedHits",
"Unmapped Hits of the MappingTest Algorithm");
70 SmartIF<ITHistSvc> tHistSvc{service(
"THistSvc")};
72 ATH_MSG_ERROR(
"initialize() Could not find Hist Service -> Switching Tree output off !" );
76 if (tHistSvc && ((tHistSvc->regTree(
"/val/UnmappedAssociations",
m_unmappedTree)).isFailure()
77 || (tHistSvc->regTree(
"/val/MappingTest",
m_mappingTree)).isFailure()) ) {
78 ATH_MSG_ERROR(
"initialize() Could not register the validation Tree -> Switching Tree output off !" );
83 return StatusCode::SUCCESS;
103 ATH_MSG_INFO(
"Retrieved TrackingVolume '" << tVolume->
volumeName() <<
"'. Start the mapping validation.");
115 double mapX = mapRad*cos(mapPhi);
116 double mapY = mapRad*sin(mapPhi);
158 return StatusCode::SUCCESS;
#define ATH_MSG_ERROR(x,...)
#define ATH_MSG_VERBOSE(x,...)
#define ATH_MSG_INFO(x,...)
#define ATH_MSG_FATAL(x,...)
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
Gaudi::Property< std::string > m_mappingVolumeName
ServiceHandle< Trk::ITrackingGeometrySvc > m_trackingGeometrySvc
StatusCode initializeTest()
Gaudi::Property< std::string > m_mappingTreeDescription
float m_assignedPositionZ
float m_unmappedPositionZ
float m_unmappedPositionX
Gaudi::Property< std::string > m_mappingTreeName
float m_assignmentDistance
bool m_executed
Make sure it only runs once.
float m_assignedCorrection
float m_assignedPositionY
float m_assignedPositionR
float m_unmappedPositionY
const TrackingGeometry * m_trackingGeometry
The TrackingGeometry to be retrieved.
std::string m_trackingGeometryName
The Name of the TrackingGeometry.
float m_unmappedPositionR
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.
Rndm::Numbers * m_flatDist
Gaudi::Property< size_t > m_numTests
number of tests
const VolumeBounds & volumeBounds() const
returns the volumeBounds()
Eigen::Matrix< double, 3, 1 > Vector3D
const Amg::Vector3D & direction() const
Method to retrieve the direction at the Intersection.
CurvilinearParametersT< NeutralParametersDim, Neutral, PlaneSurface > NeutralCurvilinearParameters
const Amg::Vector3D & position() const
Method to retrieve the position of the Intersection.
FullIntersection< Layer, Surface, T > LayerIntersection