Skip to content
Snippets Groups Projects
Commit 8e85033e authored by Nicholas Styles's avatar Nicholas Styles
Browse files

Merge branch 'cherry-pick-485a0e43-21.9' into '21.9'

Sweeping !33920 from 21.3 to 21.9.
Adding strip charge cut in MM clusterization

See merge request !34072
parents b1845f6f 815e52d1
No related branches found
No related tags found
7 merge requests!44869Draft: Update to candidate store,!4217921.9-first_steps-InDetTrackingGeometryXML,!39162Draft: Insert BCM' support,!3645821.9: Improving material map description (ATLITKSW-127),!36293WIP pixel updates,!34864LH rings in front ot HR rigs,!34072Sweeping !33920 from 21.3 to 21.9. Adding strip charge cut in MM clusterization
......@@ -58,6 +58,7 @@ Muon::MmRdoToPrepDataTool::MmRdoToPrepDataTool(const std::string& t,
declareProperty("MergePrds", m_merge = true);
declareProperty("ClusterBuilderTool",m_clusterBuilderTool);
declareProperty("NSWCalibTool", m_calibTool);
declareProperty("singleStripChargeCut", m_singleStripChargeCut = 6241 * 0.4); // 0.4 fC from BB5 cosmics
}
......@@ -69,7 +70,7 @@ Muon::MmRdoToPrepDataTool::~MmRdoToPrepDataTool()
StatusCode Muon::MmRdoToPrepDataTool::initialize()
{
ATH_MSG_DEBUG(" in initialize()");
/// get the detector descriptor manager
StoreGateSvc* detStore=0;
StatusCode sc = serviceLocator()->service("DetectorStore", detStore);
......@@ -231,6 +232,7 @@ StatusCode Muon::MmRdoToPrepDataTool::processCollection( const MM_RawDataCollect
prdColl->push_back(std::move(mpd));
} else {
MMPrepData mpd = MMPrepData(prdId, hash, localPos, rdoList, cov, detEl, calibStrip.time, calibStrip.charge, calibStrip.distDrift);
if(mpd.charge() < m_singleStripChargeCut) continue;
// set the hash of the MMPrepData such that it contains the correct value in case it gets used in SimpleMMClusterBuilderTool::getClusters
mpd.setHashAndIndex(hash,0);
mpd.setAuthor(Muon::MMPrepData::Author::RDOTOPRDConverter);
......
......@@ -102,6 +102,8 @@ namespace Muon
ToolHandle<IMMClusterBuilderTool> m_clusterBuilderTool;
ToolHandle<INSWCalibTool> m_calibTool;
float m_singleStripChargeCut;
};
} // end of namespace
......
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