29 return StatusCode::SUCCESS;
38 if (!vertexContainer.isValid()){
41 return StatusCode::FAILURE;
43 auto pvcont = vertexContainer.cptr();
44 if ( pvcont == 0 || pvcont->size()==0 ) {
46 return StatusCode::FAILURE;
48 for (
const auto vx : *pvcont) {
58 ATH_MSG_DEBUG(
"Could not find a primary vertex in this event" );
59 for (
auto theVertex : *pvcont) {
78 if (!pfoContainer.isValid()){
81 return StatusCode::FAILURE;
83 auto cpfos = pfoContainer.cptr();
97 dec_z0(*cpfo) = ptrk->
z0();
98 dec_vz(*cpfo) = ptrk->
vz();
99 dec_d0(*cpfo) = ptrk->
d0();
100 dec_theta(*cpfo) = ptrk->
theta();
110 dec_corrP4_pt(*cpfo) = weight*cpfo->pt();
111 dec_envWeight(*cpfo) = weight;
114 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
Handle class for adding a decoration to an object.
SG::ConstAccessor< T, ALLOC > ConstAccessor
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
Handle class for adding a decoration to an object.
float z0() const
Returns the parameter.
float theta() const
Returns the parameter, which has range 0 to .
float vz() const
The z origin for the parameters.
float d0() const
Returns the parameter.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
@ NoVtx
Dummy vertex. TrackParticle was not used in vertex fit.
FlowElement_v1 FlowElement
Definition of the current "pfo version".
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Vertex_v1 Vertex
Define the latest version of the vertex class.