diff --git a/InnerDetector/InDetRecAlgs/SiSpacePointFormation/python/InDetOnlineMonitor.py b/InnerDetector/InDetRecAlgs/SiSpacePointFormation/python/InDetOnlineMonitor.py index 2a6916ce434a4cef20699d04ec959758096ab49b..43ed43e711293ca802dff6744de8131fe3d0f5d3 100644 --- a/InnerDetector/InDetRecAlgs/SiSpacePointFormation/python/InDetOnlineMonitor.py +++ b/InnerDetector/InDetRecAlgs/SiSpacePointFormation/python/InDetOnlineMonitor.py @@ -3,8 +3,8 @@ from AthenaMonitoringKernel.GenericMonitoringTool import GenericMonitoringTool def InDetMonitoringTool(): newMonTool = GenericMonitoringTool("MonTool") - newMonTool.defineHistogram('numSctClusters', type='TH1F',path='EXPERT',title="Number of SCT Clusters", xbins=50, xmin=0., xmax=100) - newMonTool.defineHistogram('numPixClusters', type='TH1F',path='EXPERT',title="Number of PIXEL Clusters", xbins=50, xmin=0., xmax=100) + newMonTool.defineHistogram('numSctSpacePoints', type='TH1F',path='EXPERT',title="Number of SCT SpacePoints", xbins=50, xmin=0., xmax=5000) + newMonTool.defineHistogram('numPixSpacePoints', type='TH1F',path='EXPERT',title="Number of PIXEL SpacePoints", xbins=50, xmin=0., xmax=5000) return newMonTool diff --git a/InnerDetector/InDetRecAlgs/SiSpacePointFormation/src/SiTrackerSpacePointFinder.cxx b/InnerDetector/InDetRecAlgs/SiSpacePointFormation/src/SiTrackerSpacePointFinder.cxx index b799bfb07877e632755312e364e088e88939d252..bc7c133580da02f4ac943e675864f889c0742909 100755 --- a/InnerDetector/InDetRecAlgs/SiSpacePointFormation/src/SiTrackerSpacePointFinder.cxx +++ b/InnerDetector/InDetRecAlgs/SiSpacePointFormation/src/SiTrackerSpacePointFinder.cxx @@ -124,10 +124,10 @@ StatusCode SiTrackerSpacePointFinder::execute (const EventContext& ctx) const const InDetDD::SiDetectorElementCollection* elements = nullptr; const SiElementPropertiesTable* properties = nullptr; - auto nReceivedClustersSCT = Monitored::Scalar<int>( "numSctClusters" , 0 ); - auto nReceivedClustersPIX = Monitored::Scalar<int>( "numPixClusters" , 0 ); + auto nReceivedSPsSCT = Monitored::Scalar<int>( "numSctSpacePoints" , 0 ); + auto nReceivedSPsPIX = Monitored::Scalar<int>( "numPixSpacePoints" , 0 ); - auto mon = Monitored::Group( m_monTool, nReceivedClustersPIX,nReceivedClustersSCT ); + auto mon = Monitored::Group( m_monTool, nReceivedSPsPIX,nReceivedSPsSCT ); if (m_selectSCTs) { SG::ReadCondHandle<InDetDD::SiDetectorElementCollection> sctDetEle(m_SCTDetEleCollKey, ctx); @@ -211,7 +211,6 @@ StatusCode SiTrackerSpacePointFinder::execute (const EventContext& ctx) const for (; it != itend; ++it){ const SCT_ClusterCollection *colNext=&(**it); - nReceivedClustersSCT = colNext->size(); // Create SpacePointCollection IdentifierHash idHash = colNext->identifyHash(); @@ -244,6 +243,7 @@ StatusCode SiTrackerSpacePointFinder::execute (const EventContext& ctx) const return StatusCode::RECOVERABLE; } ATH_MSG_VERBOSE( size << " SpacePoints successfully added to Container !" ); + nReceivedSPsSCT += size; } } m_numberOfSCT+= sct_clcontainer->size(); @@ -269,7 +269,6 @@ StatusCode SiTrackerSpacePointFinder::execute (const EventContext& ctx) const for (; colNext != lastCol; ++colNext) { ATH_MSG_VERBOSE( "Collection num " << numColl++ ); - nReceivedClustersPIX = (*colNext)->size(); IdentifierHash idHash = (*colNext)->identifyHash(); SpacePointContainer::IDC_WriteHandle lock = spacePointContainerPixel->getWriteHandle(idHash); if(lock.OnlineAndPresentInAnotherView()){ @@ -305,6 +304,7 @@ StatusCode SiTrackerSpacePointFinder::execute (const EventContext& ctx) const } ATH_MSG_VERBOSE( size << " SpacePoints successfully added to Container !" ); + nReceivedSPsPIX += size; } } m_numberOfPixel+= pixel_clcontainer->size();