Skip to content
Snippets Groups Projects
Commit 40e02561 authored by Johannes Junggeburth's avatar Johannes Junggeburth :dog2: Committed by Tadej Novak
Browse files

MuonR4 Fast digi - Fix atomic summary count

MuonR4 Fast digi - Fix atomic summary count
parent d7909617
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,7 @@ StatusCode xAODSimHitToRpcMeasCnvAlg::execute(const EventContext& ctx) const {
const double uncert = design.stripPitch() / std::sqrt(12.);
const double smearedX = CLHEP::RandGaussZiggurat::shoot(rndEngine, locX, uncert);
const Amg::Vector2D locHitPos{locX * Amg::Vector2D::UnitX()};
m_allHits[measPhi] = m_allHits[measPhi] + 1;
++(m_allHits[measPhi]);
if (!design.insideTrapezoid(locHitPos)) {
ATH_MSG_VERBOSE("The hit "<<Amg::toString(locHitPos)<<" is outside of the trapezoid bounds for "
<<m_idHelperSvc->toStringGasGap(hitId)<<", measuresPhi: "<<(measPhi ? "yay" : "nay"));
......@@ -107,7 +107,7 @@ StatusCode xAODSimHitToRpcMeasCnvAlg::execute(const EventContext& ctx) const {
<<" /// "<<design);
return;
}
m_acceptedHits[measPhi] = m_acceptedHits[measPhi] + 1;
++(m_acceptedHits[measPhi]);
xAOD::RpcStrip* prd = new xAOD::RpcStrip();
prdContainer->push_back(prd);
prd->setIdentifier(prdId.get_compact());
......
......@@ -66,7 +66,7 @@ StatusCode xAODSimHitToTgcMeasCnvAlg::execute(const EventContext& ctx) const {
prd->setChannelNumber(id_helper.channel(hitId));
prd->setGasGap(id_helper.gasGap(hitId));
const bool measPhi{id_helper.measuresPhi(hitId)};
m_acceptedHits[measPhi] = m_acceptedHits[measPhi] + 1;
++(m_acceptedHits[measPhi]);
prd->setMeasuresPhi(measPhi);
const MuonGMR4::TgcReadoutElement* readOutEle = m_DetMgr->getTgcReadoutElement(hitId);
prd->setReadoutElement(readOutEle);
......@@ -77,7 +77,7 @@ StatusCode xAODSimHitToTgcMeasCnvAlg::execute(const EventContext& ctx) const {
auto processEtaHit = [&] (const Amg::Vector3D& locSimHitPos,
const Identifier& hitId) {
m_allHits[false] = m_allHits[false] + 1;
++(m_allHits[false]);
const MuonGMR4::TgcReadoutElement* readOutEle = m_DetMgr->getTgcReadoutElement(hitId);
const unsigned int gasGap = id_helper.gasGap(hitId);
const MuonGMR4::WireGroupDesign& design{readOutEle->wireGangLayout(gasGap)};
......@@ -121,7 +121,7 @@ StatusCode xAODSimHitToTgcMeasCnvAlg::execute(const EventContext& ctx) const {
auto processStripHit = [&] (const Amg::Vector3D& locSimHitPos,
const Identifier& hitId) {
m_allHits[true] = m_allHits[true] + 1;
++(m_allHits[true]);
const MuonGMR4::TgcReadoutElement* readOutEle = m_DetMgr->getTgcReadoutElement(hitId);
const unsigned int gasGap = id_helper.gasGap(hitId);
const MuonGMR4::RadialStripDesign& design{readOutEle->stripLayout(gasGap)};
......
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