From e8cee7b46f4cdb235c3948a20e191849b29aaff0 Mon Sep 17 00:00:00 2001 From: kristin <kristin.lohwasser@cern.ch> Date: Mon, 9 Mar 2020 14:57:34 +0100 Subject: [PATCH] add updates --- .../python/Run3AFPExampleMonitorAlgorithm.py | 5 +++-- .../AFP/Run3AFPMonitoring/src/AFPSiLayerAlgorithm.cxx | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ForwardDetectors/AFP/Run3AFPMonitoring/python/Run3AFPExampleMonitorAlgorithm.py b/ForwardDetectors/AFP/Run3AFPMonitoring/python/Run3AFPExampleMonitorAlgorithm.py index 8001dc4cd022..24bb8430d81c 100644 --- a/ForwardDetectors/AFP/Run3AFPMonitoring/python/Run3AFPExampleMonitorAlgorithm.py +++ b/ForwardDetectors/AFP/Run3AFPMonitoring/python/Run3AFPExampleMonitorAlgorithm.py @@ -88,9 +88,10 @@ def Run3AFPExampleMonitoringConfig(inputFlags): #array = helper.addArray([sideList,stationList,layerList],alg,'AFPSiLayerTool') array2D = helper.addArray([combinedList,layerList],alg,'AFPSiLayerTool', topPath = 'Hits') - array2D.defineHistogram( 'h_hitMap', title='Map of hits', type='TH2F', path='AFPSiLayer', xbins=80,xmin=0.5,xmax=80.5, ybins=336,ymin=0.5,ymax=336.5) + array2D.defineHistogram( 'pixelColIDChip,pixelRowIDChip', title='hitmap for {0} Layer {1}', type='TH2F', path='AFPSiLayer', xbins=80,xmin=0.5,xmax=80.5, ybins=336,ymin=0.5,ymax=336.5) #array.defineHistogram('h_hitMap', title='hitmap for {0} {1} Layer {2}', path='Keys/{0}', xmax=3. ) - array2D.defineHistogram('h_hitMap', title='hitmap for {0} Layer {1}', path='Keys/{0}', xmax=3. ) + + #array2D.defineHistogram('h_hitMap', title='hitmap for {0} Layer {1}', path='Keys/{0}', xmax=3. ) ### STEP 6 ### # Finalize. The return value should be a tuple of the ComponentAccumulator diff --git a/ForwardDetectors/AFP/Run3AFPMonitoring/src/AFPSiLayerAlgorithm.cxx b/ForwardDetectors/AFP/Run3AFPMonitoring/src/AFPSiLayerAlgorithm.cxx index 43f94e726a9c..65c99d2cc0bd 100644 --- a/ForwardDetectors/AFP/Run3AFPMonitoring/src/AFPSiLayerAlgorithm.cxx +++ b/ForwardDetectors/AFP/Run3AFPMonitoring/src/AFPSiLayerAlgorithm.cxx @@ -162,7 +162,7 @@ StatusCode AFPSiLayerAlgorithm::fillHistograms( const EventContext& ctx ) const { std::cout << "I AM RIGHT BEFORE FILL METHOD\n" << std::endl; //fill(m_tools[m_HitmapGroups.at( m_stationnames.at(hitsItr->stationID())).at( m_pixlayers.at(hitsItr->pixelLayerID()))] , pixelRowIDChip , pixelColIDChip); - fill(m_tools[m_HitmapGroups.at( m_stationnames.at(hitsItr->stationID())).at( m_pixlayers.at(hitsItr->pixelLayerID()))] , h_hitMap); + fill(m_tools[m_HitmapGroups.at( m_stationnames.at(hitsItr->stationID())).at( m_pixlayers.at(hitsItr->pixelLayerID()))] , pixelRowIDChip, pixelColIDChip); } else ATH_MSG_WARNING("Unrecognised station index: " << hitsItr->stationID()); -- GitLab