Skip to content
Snippets Groups Projects
Commit a7efdf53 authored by Shaun Roe's avatar Shaun Roe Committed by Vakhtang Tsulaia
Browse files

22.0-cppcheck-InDetDetDescrExample

parent f33be002
9 merge requests!69091Fix correlated smearing bug in JER in JetUncertainties in 22.0,!58791DataQualityConfigurations: Modify L1Calo config for web display,!51674Fixing hotSpotInHIST for Run3 HIST,!50012RecExConfig: Adjust log message levels from GetRunNumber and GetLBNumber,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!46538Draft: Added missing xAOD::TrigConfKeys from DESDM_MCP,!46514TGC Digitization: Implementation of signal propagation time between the sensor edge and ASD,!4645522.0-cppcheck-InDetDetDescrExample
...@@ -23,13 +23,7 @@ ...@@ -23,13 +23,7 @@
#include <string> #include <string>
using namespace InDetDD; using namespace InDetDD;
// or just the ones we need.
// using InDetDD::SiDetectorManager;
// using InDetDD::SiDetectorElement;
// using InDetDD::SiDetectorElementCollection;
// using InDetDD::SiLocalPosition;
// using InDetDD::SiCellId;
// using InDetDD::SiIntersect;
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// //
...@@ -563,7 +557,7 @@ ReadSiDetectorElements::printDifference() const { ...@@ -563,7 +557,7 @@ ReadSiDetectorElements::printDifference() const {
SiDetectorElementCollection::const_iterator elementC = elementsC->begin(); SiDetectorElementCollection::const_iterator elementC = elementsC->begin();
SiDetectorElementCollection::const_iterator elementM = elementsM->begin(); SiDetectorElementCollection::const_iterator elementM = elementsM->begin();
SiDetectorElementCollection::const_iterator elementMe = elementsM->end(); SiDetectorElementCollection::const_iterator elementMe = elementsM->end();
for (; elementM!=elementMe; elementC++, elementM++) { for (; elementM!=elementMe; ++elementC, ++elementM) {
auto diff = (*elementC)->center()-(*elementM)->center(); auto diff = (*elementC)->center()-(*elementM)->center();
if (diff[0]!=0. or diff[1]!=0. or diff[2]!=0.) { if (diff[0]!=0. or diff[1]!=0. or diff[2]!=0.) {
ATH_MSG_ALWAYS("----------------------------------------------"); ATH_MSG_ALWAYS("----------------------------------------------");
...@@ -693,8 +687,7 @@ ReadSiDetectorElements::testElement(const Identifier & id, ...@@ -693,8 +687,7 @@ ReadSiDetectorElements::testElement(const Identifier & id,
ATH_MSG_ALWAYS(" Near bond gap: (tolerance = " << tolerance/CLHEP::mm << " mm) : " ATH_MSG_ALWAYS(" Near bond gap: (tolerance = " << tolerance/CLHEP::mm << " mm) : "
<< element->nearBondGap(globalPos, tolerance)); << element->nearBondGap(globalPos, tolerance));
SiCellId returnedCellId = element->cellIdOfPosition(localPosNew); SiCellId returnedCellId = element->cellIdOfPosition(localPosNew);
// ATH_MSG_ALWAYS(" Returned cell Id (phiIndex,etaIndex) = "
// << returnedCellId.phiIndex() << ", " << returnedCellId.etaIndex());
ATH_MSG_ALWAYS(" Returned cell Id [phiIndex.etaIndex] = " ATH_MSG_ALWAYS(" Returned cell Id [phiIndex.etaIndex] = "
<< returnedCellId); << returnedCellId);
ATH_MSG_ALWAYS(" using global position sin(tilt), tilt (deg), sin(stereo), stereo (deg) = " ATH_MSG_ALWAYS(" using global position sin(tilt), tilt (deg), sin(stereo), stereo (deg) = "
......
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