Skip to content
Snippets Groups Projects
Commit bbcd280f authored by Ahmed Tarek's avatar Ahmed Tarek
Browse files

Merge branch 'fixsTGCCaruanaError' into '24.0'

add cluster theta for error calculation in caruana cluster builder

See merge request !71353
parents 0bd95cd5 42e9d4ff
No related branches found
No related tags found
2 merge requests!714632024-05-17: merge of 24.0 into main,!71353add cluster theta for error calculation in caruana cluster builder
......@@ -340,10 +340,18 @@ std::optional<Muon::STgcClusterPosition> Muon::STgcClusterBuilderCommon::caruana
return std::nullopt;
}
Amg::Vector3D globalClusterPos {detEl->surface(clusterId).transform()*Amg::Vector3D{reconstructedPosX, 0,0}};
Amg::Vector3D clusDir{ NswClustering::toLocal(detEl->surface(clusterId), globalClusterPos) };
NswErrorCalibData::Input errorCalibIn{};
errorCalibIn.stripId = clusterId;
errorCalibIn.clusterAuthor = static_cast<unsigned>(sTgcPrepData::Author::Caruana);
errorCalibIn.clusterError = std::sqrt(sigmaSq);
errorCalibIn.clusterError = std::sqrt(sigmaSq);
errorCalibIn.locPhi = clusDir.phi();
errorCalibIn.locTheta = clusDir.theta();
errorCalibIn.localPos = Amg::Vector2D{reconstructedPosX, 0};
errorCalibIn.clusterSize = cluster.size();
const double localUncertainty = m_errorCalibData.clusterUncertainty(errorCalibIn);
......
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