Skip to content
Snippets Groups Projects
Commit 1636636b authored by Christopher Rob Jones's avatar Christopher Rob Jones
Browse files

Adapt to change in smartIDsHelper.globalPosition API

parent ed000e20
No related branches found
No related tags found
No related merge requests found
Pipeline #3739423 passed
......@@ -287,8 +287,7 @@ namespace Rich::Future::Mon {
m_tell40bit.emplace_back(
100 * ( 24 * ( tel40Data.sourceID.data() & 0x3F ) + tel40Data.connector.data() ) +
anodeData.bit.data() );
Gaudi::XYZPoint gPos;
smartIDsHelper.globalPosition( id, gPos );
const auto gPos = smartIDsHelper.globalPosition( id );
const auto lPos = smartIDsHelper.globalToPDPanel( gPos );
m_spaceLocX.emplace_back( lPos.X() );
m_spaceLocY.emplace_back( lPos.Y() );
......
......@@ -385,14 +385,12 @@ namespace Rich::Future::Mon {
if ( m_fillSpacePlots ) {
// get the spatial coordiates
Gaudi::XYZPoint gPos;
const auto gPos = smartIDsHelper.globalPosition( id );
// info() << "ID " << id << endmsg;
if ( smartIDsHelper.globalPosition( id, gPos ) ) {
// info() << "gPos " << gPos << endmsg;
const auto lPos = smartIDsHelper.globalToPDPanel( gPos );
// info() << "lPos " << lPos << endmsg;
fillHisto( h_hitMaps[rich], lPos.x(), lPos.y() );
}
// info() << "gPos " << gPos << endmsg;
const auto lPos = smartIDsHelper.globalToPDPanel( gPos );
// info() << "lPos " << lPos << endmsg;
fillHisto( h_hitMaps[rich], lPos.x(), lPos.y() );
}
} // hit loop
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment