A concrete implementation of the Vertex smoother Takes the tracks from the VxCandidates and updates them with the knowledge of the reconstructed vertex position.
More...
#include <SequentialVertexSmoother.h>
|
| static const InterfaceID & | interfaceID () |
| | AlgTool interface methods.
|
A concrete implementation of the Vertex smoother Takes the tracks from the VxCandidates and updates them with the knowledge of the reconstructed vertex position.
Can be used with any VertexTrackUpdator. The default is KalmanVertexTrackUpdator
- Author
- Kirill Prokofiev, November 2005
Modifications due to EDM changes + additional protection against empty pointers. August 2006 Kiril.nosp@m.l.Pr.nosp@m.okofi.nosp@m.ev@c.nosp@m.ern.c.nosp@m.h
Changes:
David Shope david.nosp@m..ric.nosp@m.hard..nosp@m.shop.nosp@m.e@cer.nosp@m.n.ch (2016-04-19) EDM Migration to xAOD - from Trk::VxCandidate to xAOD::Vertex
Definition at line 41 of file SequentialVertexSmoother.h.
◆ StoreGateSvc_t
◆ SequentialVertexSmoother()
| Trk::SequentialVertexSmoother::SequentialVertexSmoother |
( |
const std::string & | t, |
|
|
const std::string & | n, |
|
|
const IInterface * | p ) |
constructor and destructor
Definition at line 28 of file SequentialVertexSmoother.cxx.
28 :
31 {
33 declareInterface<IVertexSmoother>(this);
34 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ToolHandle< IVertexTrackUpdator > m_vertexTrackUpdator
◆ ~SequentialVertexSmoother()
| Trk::SequentialVertexSmoother::~SequentialVertexSmoother |
( |
| ) |
|
|
virtualdefault |
◆ declareGaudiProperty()
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
158 {
161 hndl.documentation());
162
163 }
◆ 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
◆ initialize()
| StatusCode Trk::SequentialVertexSmoother::initialize |
( |
| ) |
|
|
overridevirtual |
default AlgTools methods
Definition at line 13 of file SequentialVertexSmoother.cxx.
14 {
15
16
19 return StatusCode::FAILURE;
20 }
22
23 return StatusCode::SUCCESS;
24 }
◆ 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::IVertexSmoother::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
AlgTool interface methods.
Definition at line 52 of file IVertexSmoother.h.
static const InterfaceID IID_IVertexSmoother("IVertexSmoother", 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()
◆ smooth()
| void Trk::SequentialVertexSmoother::smooth |
( |
xAOD::Vertex & | vtx | ) |
const |
|
overridevirtual |
Smooth method itself: updates the tracks belonging to the VxCandidate with the knowledge of the vertex position.
Implements Trk::IVertexSmoother.
Definition at line 42 of file SequentialVertexSmoother.cxx.
43 {
44
45
46
48 {
50
51
52 if(!tracks.empty())
53 {
54 for(auto & track : tracks)
55 {
56
57
58
59
60
61
63 }
64 }
65 else{
66
67
68 msg(MSG::ERROR) <<
"Vertex to be smoothed containes no tracks!" <<
endmsg;
69 msg(MSG::ERROR) <<
"No action taken; Initial xAOD::Vertex returned." <<
endmsg;
70 }
71 }else{
72 msg(MSG::ERROR) <<
"Vertex to be smoothed has no vxTrackAtVertices available!" <<
endmsg;
73 msg(MSG::ERROR) <<
"No action taken; Initial xAOD::Vertex returned." <<
endmsg;
74 }
75 }
bool vxTrackAtVertexAvailable() const
Check if VxTrackAtVertices are attached to the object.
std::vector< Trk::VxTrackAtVertex > & vxTrackAtVertex()
Non-const access to the VxTrackAtVertex vector.
◆ 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_varHandleArraysDeclared
◆ m_vertexTrackUpdator
◆ m_vhka
The documentation for this class was generated from the following files: