Skip to content
Snippets Groups Projects
Commit 64ce7577 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

MuonDetectorFactoryLite: don't call fillCache() on MM and sTGC readout elements

Fixes the WARNINGs about duplicate calls to fillCache() methods
parent 776b97d4
No related branches found
No related tags found
1 merge request!76463MuonDetectorFactoryLite: don't call fillCache() on MM and sTGC readout elements
......@@ -72,14 +72,12 @@ namespace MuonGM {
std::string sName = vName.substr(4,4);
std::unique_ptr<MuonGM::MMReadoutElement> re = std::make_unique<MuonGM::MMReadoutElement>(pV, sName, ec*eta,phi,ml,m_manager,nullptr);
re->initDesign();
re->fillCache();
m_manager->addMMReadoutElement(std::move(re));
}
else if (key.substr(0,3)=="sTG") {
std::string sName = vName.substr(7,4);
std::unique_ptr<sTgcReadoutElement> re = std::make_unique<sTgcReadoutElement>(pV, sName, ec*eta, phi, ml, m_manager);
re->initDesign(2.6);
re->fillCache();
m_manager->addsTgcReadoutElement(std::move(re));
}
}
......
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