This validation tool writes information about track positions.
More...
#include <TrackPositionNtupleHelper.h>
◆ StoreGateSvc_t
◆ TrackPositionNtupleHelper()
| Trk::TrackPositionNtupleHelper::TrackPositionNtupleHelper |
( |
const std::string & | t, |
|
|
const std::string & | n, |
|
|
const IInterface * | p ) |
Definition at line 18 of file TrackPositionNtupleHelper.cxx.
22 :
33
34 {
35 declareInterface<IValidationNtupleHelperTool>(this);
36
37}
std::vector< float > * m_trkMomentumZ
global momentum Z of track at measurement
std::vector< float > * m_trkLoc1
local position 1st coord.
std::vector< float > * m_trkY
global position Y of track intersecting meas't surface
std::vector< float > * m_trkX
global position X of track intersecting meas't surface
std::vector< float > * m_trkLoc2
local position 2nd coord.
bool m_trkParametersWarning
warn only once if no track pars exist
std::vector< float > * m_trkMomentumX
global momentum X of track at measurement
std::vector< float > * m_trkZ
global position Z of track intersection meas't surface
std::vector< float > * m_trkMomentumY
global momentum Y of track at measurement
◆ ~TrackPositionNtupleHelper()
| Trk::TrackPositionNtupleHelper::~TrackPositionNtupleHelper |
( |
| ) |
|
|
default |
◆ addNtupleItems()
| StatusCode Trk::TrackPositionNtupleHelper::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 103 of file TrackPositionNtupleHelper.cxx.
109 {
110
111 if (!trkPar) {
120 if (!isOutlier) {
121
123
124 ATH_MSG_WARNING (
"No TrackParameters: Track positions cannot be filled (filling dummy values).");
125 ATH_MSG_WARNING (
" This is possible for slimmed tracks; if track positions are needed choose another track collection");
128 }
129 }
130 return StatusCode::SUCCESS;
131 }
132
133
134
135
136
138
141
142 m_trkX->push_back(
float(gpos.x()) );
143 m_trkY->push_back(
float(gpos.y()) );
144 m_trkZ->push_back(
float(gpos.z()) );
148
151
152 return StatusCode::SUCCESS;
153}
#define ATH_MSG_WARNING(x)
const Amg::Vector3D & momentum() const
Access method for the momentum.
const Amg::Vector3D & position() const
Access method for the position.
Amg::Vector2D localPosition() const
Access method for the local coordinates, local parameter definitions differ for each surface type.
Eigen::Matrix< double, 2, 1 > Vector2D
Eigen::Matrix< double, 3, 1 > Vector3D
◆ finalize()
| StatusCode Trk::TrackPositionNtupleHelper::finalize |
( |
| ) |
|
◆ initialize()
| StatusCode Trk::TrackPositionNtupleHelper::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::TrackPositionNtupleHelper::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_trkLoc1
| std::vector<float>* Trk::TrackPositionNtupleHelper::m_trkLoc1 |
|
private |
◆ m_trkLoc2
| std::vector<float>* Trk::TrackPositionNtupleHelper::m_trkLoc2 |
|
private |
◆ m_trkMomentumX
| std::vector<float>* Trk::TrackPositionNtupleHelper::m_trkMomentumX |
|
private |
◆ m_trkMomentumY
| std::vector<float>* Trk::TrackPositionNtupleHelper::m_trkMomentumY |
|
private |
◆ m_trkMomentumZ
| std::vector<float>* Trk::TrackPositionNtupleHelper::m_trkMomentumZ |
|
private |
◆ m_trkParametersWarning
| bool Trk::TrackPositionNtupleHelper::m_trkParametersWarning |
|
private |
◆ m_trkX
| std::vector<float>* Trk::TrackPositionNtupleHelper::m_trkX |
|
private |
◆ m_trkY
| std::vector<float>* Trk::TrackPositionNtupleHelper::m_trkY |
|
private |
◆ m_trkZ
| std::vector<float>* Trk::TrackPositionNtupleHelper::m_trkZ |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files: