Skip to content
Snippets Groups Projects
Commit 74020b93 authored by Gitlab CI's avatar Gitlab CI Committed by Hangyi Wu
Browse files

Fixed formatting

patch generated by https://gitlab.cern.ch/lhcb/Detector/-/jobs/31266501
parent bad0b6a2
No related branches found
No related tags found
No related merge requests found
Pipeline #5946778 passed
......@@ -237,10 +237,10 @@ namespace LHCb::Detector::UT {
const LayerGeom getLayerGeom( unsigned int layerid ) const {
LayerGeom layergeom;
auto SectorsInLayer = sectors( LayerID_t{layerid} );
auto tStation = layerid / 2;
unsigned int keysectorID = ( tStation == 0 ) ? 31 : 11;
layergeom.z = SectorsInLayer[keysectorID].globalCentre().z();
auto SectorsInLayer = sectors( LayerID_t{layerid} );
auto tStation = layerid / 2;
unsigned int keysectorID = ( tStation == 0 ) ? 31 : 11;
layergeom.z = SectorsInLayer[keysectorID].globalCentre().z();
float YFirstRow = 0;
float YLastRow = 0;
float smallestXLastCol = 0;
......@@ -252,21 +252,21 @@ namespace LHCb::Detector::UT {
unsigned int bottomMostRow = 1u;
// loop over sectors within this layer to get x, y of corner sectors
std::for_each(SectorsInLayer.begin(), SectorsInLayer.end(), [&](DeUTSector const& utSector) {
if (utSector.channelID().stave() < 1) return; // skip Stave0 due to its Y shift
auto pos = utSector.toGlobal( ROOT::Math::XYZPoint{0,0,0} );
std::for_each( SectorsInLayer.begin(), SectorsInLayer.end(), [&]( DeUTSector const& utSector ) {
if ( utSector.channelID().stave() < 1 ) return; // skip Stave0 due to its Y shift
auto pos = utSector.toGlobal( ROOT::Math::XYZPoint{0, 0, 0} );
auto pos_x = pos.x();
auto pos_y = pos.y();
if (pos_x < smallestXFirstcol) smallestXFirstcol = pos_x;
if (pos_x > smallestXLastCol) smallestXLastCol = pos_x;
if (pos_y < YFirstRow) YFirstRow = pos_y;
if (pos_y > YLastRow) YLastRow = pos_y;
});
dd4hep::printout(dd4hep::DEBUG, "DeUT::getLayerGeom", "smallestXFirstcol = %.3f", smallestXFirstcol);
dd4hep::printout(dd4hep::DEBUG, "DeUT::getLayerGeom", "smallestXLastCol = %.3f", smallestXLastCol);
dd4hep::printout(dd4hep::DEBUG, "DeUT::getLayerGeom", "YFirstRow = %.3f", YFirstRow);
dd4hep::printout(dd4hep::DEBUG, "DeUT::getLayerGeom", "YLastRow = %.3f", YLastRow);
if ( pos_x < smallestXFirstcol ) smallestXFirstcol = pos_x;
if ( pos_x > smallestXLastCol ) smallestXLastCol = pos_x;
if ( pos_y < YFirstRow ) YFirstRow = pos_y;
if ( pos_y > YLastRow ) YLastRow = pos_y;
} );
dd4hep::printout( dd4hep::DEBUG, "DeUT::getLayerGeom", "smallestXFirstcol = %.3f", smallestXFirstcol );
dd4hep::printout( dd4hep::DEBUG, "DeUT::getLayerGeom", "smallestXLastCol = %.3f", smallestXLastCol );
dd4hep::printout( dd4hep::DEBUG, "DeUT::getLayerGeom", "YFirstRow = %.3f", YFirstRow );
dd4hep::printout( dd4hep::DEBUG, "DeUT::getLayerGeom", "YLastRow = %.3f", YLastRow );
// gather all information into the corresponding LayerInfo object
auto ncols = biggestColumn - smallestColumn + 1;
......
......@@ -32,7 +32,7 @@ namespace LHCb::Detector::UT {
std::array<DeUTStaveObject, 9> m_staves;
ChannelID m_channelID;
ROOT::Math::Plane3D m_plane;
double m_angle = 0;
double m_angle = 0;
double m_sinAngle = 0;
double m_cosAngle = 0;
......
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