16#include "GaudiKernel/SmartDataPtr.h"
17#include "GaudiKernel/ITHistSvc.h"
19#include "GaudiKernel/ISvcLocator.h"
53 declareInterface<IValidationNtupleHelperTool>(
this);
67 m_hitX =
new std::vector<float>();
68 m_hitY =
new std::vector<float>();
69 m_hitZ =
new std::vector<float>();
81 return StatusCode::SUCCESS;
104 return StatusCode::SUCCESS;
133 return StatusCode::SUCCESS;
148 return StatusCode::FAILURE;
161 m_hitX->push_back(
float(gp.x()) );
162 m_hitY->push_back(
float(gp.y()) );
163 m_hitZ->push_back(
float(gp.z()) );
165 m_hitPhi->push_back(
float(gp.phi()) );
186 return StatusCode::SUCCESS;
205 return StatusCode::SUCCESS;
214 return StatusCode::SUCCESS;
#define ATH_MSG_VERBOSE(x)
HitPositionNtupleHelper(const std::string &, const std::string &, const IInterface *)
virtual StatusCode fillMeasurementData(const Trk::MeasurementBase *, const Trk::TrackParameters *, const int &detectorType, const bool &isOutlier)
fill hit position data
std::vector< float > * m_hitZ
x-coordinate of GlobalPosition of the measurement UNIT:mm
std::vector< float > * m_hitSurfaceX
x-coordinate of GlobalPosition of the center of the measurement surface UNIT:mm
std::vector< float > * m_hitSurfacePhi
phi() of the center of the measurement surface UNIT:rad
StatusCode finalize()
finalize
std::vector< float > * m_hitRadius
perp() of GlobalPosition of the measurement UNIT:mm
std::vector< float > * m_hitPhi
phi() of GlobalPosition of the measurement UNIT:rad
std::vector< float > * m_hitSurfaceY
y-coordinate of GlobalPosition of the center of the measurement surface UNIT:mm
virtual StatusCode resetVariables(const int &detectorType)
reset ntuple variables
std::vector< float > * m_hitSurfaceZ
z-coordinate of GlobalPosition of the center of the measurement surface UNIT:mm
StatusCode initialize()
initialize
std::vector< float > * m_hitX
x-coordinate of GlobalPosition of the measurement UNIT:mm
std::vector< float > * m_hitSurfaceTheta
theta() of the center of the measurement surface UNIT:rad
std::vector< float > * m_hitY
y-coordinate of GlobalPosition of the measurement UNIT:mm
virtual StatusCode addNtupleItems(TTree *tree, const int &detectorType)
add items to the ntuple and configure the helper tool: should be called once (per detector type) by t...
std::vector< float > * m_hitLoc2
Trk::loc2 of the local position.
virtual StatusCode fillHoleData(const Trk::TrackStateOnSurface &, const int &)
fill special data about holes on track (here: do nothing)
~HitPositionNtupleHelper()
std::vector< float > * m_hitSurfaceRadius
perp() of the center of the measurement surface UNIT:mm
std::vector< float > * m_hitLoc1
Trk::loc1 of the local position of the measurement UNIT:mm.
bool contains(ParamDefs par) const
The simple check for the clients whether the parameter is contained.
This class is the pure abstract base class for all fittable tracking measurements.
const LocalParameters & localParameters() const
Interface method to get the LocalParameters.
virtual const Surface & associatedSurface() const =0
Interface method to get the associated Surface.
virtual const Amg::Vector3D & globalPosition() const =0
Interface method to get the global Position.
Abstract Base Class for tracking surfaces.
const Amg::Vector3D & center() const
Returns the center position of the Surface.
represents the track state (measurement, material, fit parameters and quality) at a surface.
Eigen::Matrix< double, 3, 1 > Vector3D
@ loc2
generic first and second local coordinate
ParametersBase< TrackParametersDim, Charged > TrackParameters