Skip to content
Snippets Groups Projects
Commit 485a0e43 authored by Tadej Novak's avatar Tadej Novak
Browse files

Merge branch 'chargeCutInReco' into '21.3'

Adding strip charge cut in MM clusterization

See merge request !33920
parents 04fbc30b 59cb5e39
No related merge requests found
...@@ -58,6 +58,7 @@ Muon::MmRdoToPrepDataTool::MmRdoToPrepDataTool(const std::string& t, ...@@ -58,6 +58,7 @@ Muon::MmRdoToPrepDataTool::MmRdoToPrepDataTool(const std::string& t,
declareProperty("MergePrds", m_merge = true); declareProperty("MergePrds", m_merge = true);
declareProperty("ClusterBuilderTool",m_clusterBuilderTool); declareProperty("ClusterBuilderTool",m_clusterBuilderTool);
declareProperty("NSWCalibTool", m_calibTool); declareProperty("NSWCalibTool", m_calibTool);
declareProperty("singleStripChargeCut", m_singleStripChargeCut = 6241 * 0.4); // 0.4 fC from BB5 cosmics
} }
...@@ -69,7 +70,7 @@ Muon::MmRdoToPrepDataTool::~MmRdoToPrepDataTool() ...@@ -69,7 +70,7 @@ Muon::MmRdoToPrepDataTool::~MmRdoToPrepDataTool()
StatusCode Muon::MmRdoToPrepDataTool::initialize() StatusCode Muon::MmRdoToPrepDataTool::initialize()
{ {
ATH_MSG_DEBUG(" in initialize()"); ATH_MSG_DEBUG(" in initialize()");
/// get the detector descriptor manager /// get the detector descriptor manager
StoreGateSvc* detStore=0; StoreGateSvc* detStore=0;
StatusCode sc = serviceLocator()->service("DetectorStore", detStore); StatusCode sc = serviceLocator()->service("DetectorStore", detStore);
...@@ -231,6 +232,7 @@ StatusCode Muon::MmRdoToPrepDataTool::processCollection( const MM_RawDataCollect ...@@ -231,6 +232,7 @@ StatusCode Muon::MmRdoToPrepDataTool::processCollection( const MM_RawDataCollect
prdColl->push_back(std::move(mpd)); prdColl->push_back(std::move(mpd));
} else { } else {
MMPrepData mpd = MMPrepData(prdId, hash, localPos, rdoList, cov, detEl, calibStrip.time, calibStrip.charge, calibStrip.distDrift); 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 // 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.setHashAndIndex(hash,0);
mpd.setAuthor(Muon::MMPrepData::Author::RDOTOPRDConverter); mpd.setAuthor(Muon::MMPrepData::Author::RDOTOPRDConverter);
......
...@@ -102,6 +102,8 @@ namespace Muon ...@@ -102,6 +102,8 @@ namespace Muon
ToolHandle<IMMClusterBuilderTool> m_clusterBuilderTool; ToolHandle<IMMClusterBuilderTool> m_clusterBuilderTool;
ToolHandle<INSWCalibTool> m_calibTool; ToolHandle<INSWCalibTool> m_calibTool;
float m_singleStripChargeCut;
}; };
} // end of namespace } // 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