21 :
Trk::ObjectCounter<
Trk::VertexPositions>()
23 , m_useWeightTimesPosition(false)
31 , m_useWeightTimesPosition(false)
38 if (m_useWeightTimesPosition) {
39 sl <<
"Trk::VertexPositions weight times position: (";
41 sl <<
"Trk::VertexPositions position: (";
43 sl <<
"xv " << m_position[
jet_xv] <<
", "
44 <<
"yv " << m_position[
jet_yv] <<
", "
45 <<
"zv " << m_position[
jet_zv] <<
", "
46 <<
"phi " << m_position[
jet_phi] <<
", "
48 for (
int i = 5;
i < m_position.rows();
i++) {
49 sl <<
"dist" <<
i <<
" " << m_position[
i] <<
" ." <<
endmsg;
57 if (m_useWeightTimesPosition) {
58 sl <<
"Trk::VertexPositions weight times position: (";
60 sl <<
"Trk::VertexPositions position: (";
62 sl <<
"xv " << m_position[
jet_xv] <<
", "
63 <<
"yv " << m_position[
jet_yv] <<
", "
64 <<
"zv " << m_position[
jet_zv] <<
", "
65 <<
"phi " << m_position[
jet_phi] <<
", "
66 <<
"theta " << m_position[
jet_theta] << std::endl;
67 for (
int i = 5;
i < m_position.rows();
i++) {
68 sl <<
"dist" <<
i <<
" " << m_position[
i] <<
" ." << std::endl;
86 VertexPositions::position()
const
88 if (!m_useWeightTimesPosition) {
91 std::cout <<
"FATAL: VertexPositions is not able to return a valid position "
92 <<
" as a const object: need to go from Update to Use mode. "
100 VertexPositions::setPosition(
const Amg::VectorX& newposition)
102 m_position = newposition;