Skip to content
Snippets Groups Projects
Commit 6f59a965 authored by Debottam Bakshi Gupta's avatar Debottam Bakshi Gupta
Browse files

Making TRTHTH variables enable to be monitored

parent 92c80c7a
No related branches found
No related tags found
11 merge requests!69091Fix correlated smearing bug in JER in JetUncertainties in 22.0,!58791DataQualityConfigurations: Modify L1Calo config for web display,!51674Fixing hotSpotInHIST for Run3 HIST,!50012RecExConfig: Adjust log message levels from GetRunNumber and GetLBNumber,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!46538Draft: Added missing xAOD::TrigConfKeys from DESDM_MCP,!46514TGC Digitization: Implementation of signal propagation time between the sensor edge and ASD,!46389URGENT : egamma monitoring tag for reprocessing,!46095Draft: fix TrackingGeometry reordering bugs in serial athena,!45645Making TRTHTH variables enable to be monitored
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration # Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
from TrigTRTHighTHitCounter.TrigTRTHighTHitCounterConf import TrigTRTHTHhypoTool from TrigTRTHighTHitCounter.TrigTRTHighTHitCounterConf import TrigTRTHTHhypoTool
from AthenaMonitoringKernel.GenericMonitoringTool import GenericMonitoringTool, defineHistogram
def _IncTool(name): def _IncTool(name):
monTool = GenericMonitoringTool("MonTool_"+name)
monTool.Histograms = [ defineHistogram('HTRatioRoad', type='TH1F', path='EXPERT', title="TrigTRTHTH Hypo HTRatioRoad", xbins=10, xmin=0.0, xmax=0.9),
defineHistogram('HTRatioWedge', type='TH1F', path='EXPERT', title="TrigTRTHTH Hypo HTRatioWedge", xbins=10, xmin=0.0, xmax=0.9),
defineHistogram('TRTHTHitsRoad', type='TH1F', path='EXPERT', title="TrigTRTHTH Hypo TRTHTHitsRoad", xbins=100, xmin=0, xmax=100),
defineHistogram('TRTHTHitsWedge', type='TH1F', path='EXPERT', title="TrigTRTHTH Hypo TRTHTHitsWedge", xbins=100, xmin=0, xmax=100),]
tool = TrigTRTHTHhypoTool( name ) tool = TrigTRTHTHhypoTool( name )
tool.AcceptAll = False tool.AcceptAll = False
tool.MinTRTHTHitsRoad = 20 tool.MinTRTHTHitsRoad = 20
...@@ -11,7 +18,9 @@ def _IncTool(name): ...@@ -11,7 +18,9 @@ def _IncTool(name):
tool.MinTRTHTHitsWedge = 30 tool.MinTRTHTHitsWedge = 30
tool.MinHTRatioWedge = 0.4 tool.MinHTRatioWedge = 0.4
tool.DoWedge = True tool.DoWedge = True
tool.DoRoad = False tool.DoRoad = False
monTool.HistPath = 'TrigTRTHTHhypo/'+tool.getName()
tool.MonTool = monTool
return tool return tool
def TrigTRTHTHhypoToolFromDict( d ): def TrigTRTHTHhypoToolFromDict( d ):
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
*/ */
#include "TrigTRTHTHhypoTool.h" #include "TrigTRTHTHhypoTool.h"
#include "AthenaMonitoringKernel/Monitored.h"
#include "TrigCompositeUtils/TrigCompositeUtils.h" #include "TrigCompositeUtils/TrigCompositeUtils.h"
namespace TCU = TrigCompositeUtils; namespace TCU = TrigCompositeUtils;
...@@ -25,6 +25,12 @@ StatusCode TrigTRTHTHhypoTool::initialize() { ...@@ -25,6 +25,12 @@ StatusCode TrigTRTHTHhypoTool::initialize() {
bool TrigTRTHTHhypoTool::decide( const ITrigTRTHTHhypoTool::RNNOutputInfo& input ) const { bool TrigTRTHTHhypoTool::decide( const ITrigTRTHTHhypoTool::RNNOutputInfo& input ) const {
bool pass = false; bool pass = false;
auto fHT_road = Monitored::Scalar( "HTRatioRoad", -1. );
auto fHT_wedge = Monitored::Scalar( "HTRatioWedge", -1. );
auto trththits_road = Monitored::Scalar( "TRTHTHitsRoad" , -1.0 );
auto trththits_wedge = Monitored::Scalar( "TRTHTHitsWedge", -1.0 );
auto monitorIt = Monitored::Group( m_monTool, fHT_road, fHT_wedge, trththits_road, trththits_wedge);
if( m_acceptAll ){ if( m_acceptAll ){
pass=true; pass=true;
...@@ -42,10 +48,10 @@ bool TrigTRTHTHhypoTool::decide( const ITrigTRTHTHhypoTool::RNNOutputInfo& input ...@@ -42,10 +48,10 @@ bool TrigTRTHTHhypoTool::decide( const ITrigTRTHTHhypoTool::RNNOutputInfo& input
//Parse the vector to assign fHT and nHT appropriately //Parse the vector to assign fHT and nHT appropriately
float fHT_road = vec.at(1); fHT_road = vec.at(1);
float fHT_wedge = vec.at(3); fHT_wedge = vec.at(3);
float trththits_road = vec.at(0); trththits_road = vec.at(0);
float trththits_wedge = vec.at(2); trththits_wedge = vec.at(2);
ATH_MSG_DEBUG ( "trththits_road: " << trththits_road); ATH_MSG_DEBUG ( "trththits_road: " << trththits_road);
ATH_MSG_DEBUG ("m_minTRTHTHitsRoad in hypotool: "<<m_minTRTHTHitsRoad); ATH_MSG_DEBUG ("m_minTRTHTHitsRoad in hypotool: "<<m_minTRTHTHitsRoad);
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include "AthenaBaseComps/AthAlgTool.h" #include "AthenaBaseComps/AthAlgTool.h"
#include "TrigCompositeUtils/HLTIdentifier.h" #include "TrigCompositeUtils/HLTIdentifier.h"
#include "AthenaMonitoringKernel/GenericMonitoringTool.h"
#include "ITrigTRTHTHhypoTool.h" #include "ITrigTRTHTHhypoTool.h"
...@@ -38,6 +39,8 @@ class TrigTRTHTHhypoTool : public extends<AthAlgTool, ITrigTRTHTHhypoTool> { ...@@ -38,6 +39,8 @@ class TrigTRTHTHhypoTool : public extends<AthAlgTool, ITrigTRTHTHhypoTool> {
Gaudi::Property< bool > m_doWedge { this, "DoWedge", true , "Bins of eta" }; Gaudi::Property< bool > m_doWedge { this, "DoWedge", true , "Bins of eta" };
Gaudi::Property< bool > m_doRoad { this, "DoRoad", false , "Bins of eta" }; Gaudi::Property< bool > m_doRoad { this, "DoRoad", false , "Bins of eta" };
ToolHandle< GenericMonitoringTool > m_monTool{ this, "MonTool", "", "Monitoring tool" };
}; };
#endif #endif
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