|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #include "CLHEP/Random/RandFlat.h"
18 declareInterface<IVertexSelectionTool> (
this );
28 msg(MSG::INFO) <<
"Initialization successful" <<
endmsg;
30 return StatusCode::SUCCESS;
35 return StatusCode::SUCCESS;
53 const HepMC::GenEvent *
evt = (*itr);
59 auto vitr =
evt->vertices().begin();
61 HepMC::GenEvent::vertex_const_iterator vitr =
evt->vertices_begin();
67 HepMC::FourVector vxGenPos = (*vitr)->position();
70 unsigned int res_pos = 0;
74 unsigned int cont_size = vertexContainer->
size();
77 float z_sim = vxGenPos.z();
79 float significance = fabs(z_sim - (*vertexContainer)[0]->position().
z());
80 for(
unsigned int i = 1;
i < cont_size; ++
i)
84 if(loc_significance < significance)
86 significance = loc_significance;
Const iterator class for DataVector/DataList.
@ z
global position (cartesian)
const Amg::Vector3D & position() const
Returns the 3-pos.
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
Ensure that the ATLAS eigen extensions are properly loaded.
double error(const Amg::MatrixX &mat, int index)
return diagonal error of the matrix caller should ensure the matrix is symmetric and the index is in ...
Class describing a Vertex.
#define ATH_MSG_WARNING(x)
size_type size() const noexcept
Returns the number of elements in the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.