This validation tool writes information about measurement positions and their surfaces.
More...
#include <HitPositionNtupleHelper.h>
◆ StoreGateSvc_t
◆ HitPositionNtupleHelper()
| Trk::HitPositionNtupleHelper::HitPositionNtupleHelper |
( |
const std::string & | t, |
|
|
const std::string & | n, |
|
|
const IInterface * | p ) |
Definition at line 31 of file HitPositionNtupleHelper.cxx.
35 :
37
51
52 {
53 declareInterface<IValidationNtupleHelperTool>(this);
54
55}
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
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
std::vector< float > * m_hitSurfaceZ
z-coordinate of GlobalPosition of the center of the measurement surface UNIT:mm
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
std::vector< float > * m_hitLoc2
Trk::loc2 of the local position.
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.
◆ ~HitPositionNtupleHelper()
| Trk::HitPositionNtupleHelper::~HitPositionNtupleHelper |
( |
| ) |
|
|
default |
◆ addNtupleItems()
| StatusCode Trk::HitPositionNtupleHelper::addNtupleItems |
( |
TTree * | tree, |
|
|
const int & | detectorType ) |
|
virtual |
◆ declareGaudiProperty()
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
158 {
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
◆ declareProperty()
Definition at line 145 of file AthCommonDataStore.h.
145 {
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
◆ detStore()
◆ evtStore()
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ fillHoleData()
◆ fillMeasurementData()
fill hit position data
Implements Trk::IValidationNtupleHelperTool.
Definition at line 139 of file HitPositionNtupleHelper.cxx.
143 {
144
145
146 if (!measurement) {
148 return StatusCode::FAILURE;
149 }
150
151
152
153
156
159
160
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()) );
166
167
174
175
178 else
180
183 else
185
186 return StatusCode::SUCCESS;
187}
bool contains(ParamDefs par) const
The simple check for the clients whether the parameter is contained.
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.
const Amg::Vector3D & center() const
Returns the center position of the Surface.
Eigen::Matrix< double, 3, 1 > Vector3D
@ loc2
generic first and second local coordinate
◆ finalize()
| StatusCode Trk::HitPositionNtupleHelper::finalize |
( |
| ) |
|
◆ initialize()
| StatusCode Trk::HitPositionNtupleHelper::initialize |
( |
| ) |
|
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ interfaceID()
| const InterfaceID & Trk::IValidationNtupleHelperTool::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
Interface ID, declared here, and defined below.
Definition at line 76 of file IValidationNtupleHelperTool.h.
76 {
78}
static const InterfaceID IID_IValidationNtupleHelperTool("IValidationNtupleHelperTool", 1, 0)
◆ msg()
◆ msgLvl()
| bool AthCommonMsg< AlgTool >::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
Definition at line 380 of file AthCommonDataStore.h.
381 {
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
◆ renounceArray()
◆ resetVariables()
| StatusCode Trk::HitPositionNtupleHelper::resetVariables |
( |
const int & | detectorType | ) |
|
|
virtual |
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
Definition at line 308 of file AthCommonDataStore.h.
308 {
309
310
313 for (
auto k :
keys) {
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka
◆ m_detStore
◆ m_evtStore
◆ m_hitLoc1
| std::vector<float>* Trk::HitPositionNtupleHelper::m_hitLoc1 |
|
private |
◆ m_hitLoc2
| std::vector<float>* Trk::HitPositionNtupleHelper::m_hitLoc2 |
|
private |
◆ m_hitPhi
| std::vector<float>* Trk::HitPositionNtupleHelper::m_hitPhi |
|
private |
◆ m_hitRadius
| std::vector<float>* Trk::HitPositionNtupleHelper::m_hitRadius |
|
private |
◆ m_hitSurfacePhi
| std::vector<float>* Trk::HitPositionNtupleHelper::m_hitSurfacePhi |
|
private |
◆ m_hitSurfaceRadius
| std::vector<float>* Trk::HitPositionNtupleHelper::m_hitSurfaceRadius |
|
private |
◆ m_hitSurfaceTheta
| std::vector<float>* Trk::HitPositionNtupleHelper::m_hitSurfaceTheta |
|
private |
◆ m_hitSurfaceX
| std::vector<float>* Trk::HitPositionNtupleHelper::m_hitSurfaceX |
|
private |
◆ m_hitSurfaceY
| std::vector<float>* Trk::HitPositionNtupleHelper::m_hitSurfaceY |
|
private |
◆ m_hitSurfaceZ
| std::vector<float>* Trk::HitPositionNtupleHelper::m_hitSurfaceZ |
|
private |
◆ m_hitX
| std::vector<float>* Trk::HitPositionNtupleHelper::m_hitX |
|
private |
◆ m_hitY
| std::vector<float>* Trk::HitPositionNtupleHelper::m_hitY |
|
private |
◆ m_hitZ
| std::vector<float>* Trk::HitPositionNtupleHelper::m_hitZ |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files: