diff --git a/Scintillator/ScintDetDescr/ScintReadoutGeometry/ScintReadoutGeometry/ScintDetectorDesign.h b/Scintillator/ScintDetDescr/ScintReadoutGeometry/ScintReadoutGeometry/ScintDetectorDesign.h index b5ab7ac1b6997205c198ace3c1256ecaa927b6fa..c04fb9d240fd1e875c29bf749240bc540c9e1b27 100644 --- a/Scintillator/ScintDetDescr/ScintReadoutGeometry/ScintReadoutGeometry/ScintDetectorDesign.h +++ b/Scintillator/ScintDetDescr/ScintReadoutGeometry/ScintReadoutGeometry/ScintDetectorDesign.h @@ -152,10 +152,10 @@ private: double m_length; // !< dimnesion in "eta" direction int m_cells; // !< number of pmts + ScintDetectorDesign::Edge m_readoutSide; ScintDetectorDesign::Axis m_phiAxis; // which axis in hit frame corresponds to photon flight direction? ScintDetectorDesign::Axis m_etaAxis; // which axis in hit frame is normal to photon flight direction? ScintDetectorDesign::Axis m_depthAxis; // which axis in hit frame is depth? - ScintDetectorDesign::Edge m_readoutSide; const Trk::RectangleBounds* m_bounds; diff --git a/Scintillator/ScintDetDescr/ScintReadoutGeometry/src/ScintDetectorDesign.cxx b/Scintillator/ScintDetDescr/ScintReadoutGeometry/src/ScintDetectorDesign.cxx index fa69388db2f1edcc5359010d13dc2152277b9948..3c167351f53fc95745f0bc8f9540adb72c720a60 100644 --- a/Scintillator/ScintDetDescr/ScintReadoutGeometry/src/ScintDetectorDesign.cxx +++ b/Scintillator/ScintDetDescr/ScintReadoutGeometry/src/ScintDetectorDesign.cxx @@ -36,9 +36,13 @@ ScintDetectorDesign::ScintDetectorDesign( const double thickness, const ScintDetectorDesign::Axis photonDirection, const ScintDetectorDesign::Axis thicknessDirection ) : m_thickness(thickness), + m_width{width}, + m_length{length}, + m_cells{cells}, + m_readoutSide(readoutSide), m_phiAxis(photonDirection), /* same as ATLAS SCT for now */ - m_depthAxis(thicknessDirection), - m_readoutSide(readoutSide) { + m_depthAxis(thicknessDirection) +{ m_etaAxis = static_cast<Axis> ((xAxis + yAxis + zAxis) - (photonDirection + thicknessDirection)); m_bounds = new Trk::RectangleBounds(0.5*width, 0.5*length); }