5 '''Function to configure LVL1 EfexInput algorithm in the monitoring system.'''
8 from AthenaConfiguration.ComponentFactory
import CompFactory
9 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
12 from LArBadChannelTool.LArBadChannelConfig
import LArMaskedSCCfg
17 from TrigT1CaloMonitoring.LVL1CaloMonitoringConfig
import L1CaloMonitorCfgHelper
18 helper = L1CaloMonitorCfgHelper(flags,CompFactory.EfexInputMonitorAlgorithm,
'EfexInputMonAlg')
20 helper.defineHistogram(
'LBNString,Error;h_summary',title=
'EfexInput Monitoring summary;LBN;Error',
24 ybins=1,ymin=0,ymax=1,ylabels=[
""],
25 opt=[
'kCanRebin',
'kAlwaysCreate'],merge=
"merge")
27 helper.defineHistogram(
'LBN,TowerEta,TowerCount;h_dataTowers_ecal',title=
'DataTowers ECAL Average;LBN;Eta',
30 xbins=1,xmin=0,xmax=1,
31 ybins=50,ymin=-2.5,ymax=2.5,
32 opt=[
'kAddBinsDynamically',
'kAlwaysCreate'],merge=
"merge")
33 helper.defineHistogram(
'LBN,TowerEta,TowerCount;h_dataTowers_hcal',title=
'DataTowers HCAL Average;LBN;Eta',
36 xbins=1,xmin=0,xmax=1,
37 ybins=50,ymin=-2.5,ymax=2.5,
38 opt=[
'kAddBinsDynamically',
'kAlwaysCreate'],merge=
"merge")
39 helper.defineTree(
'LBNString,Error,EventNumber,TowerId,TowerEta,TowerPhi,TowerEmstatus,TowerHadstatus,TowerSlot,TowerCount,RefTowerCount,SlotSCID,timeSince,timeUntil;errors',
40 "lbnString/string:error/string:eventNumber/l:id/I:eta/F:phi/F:em_status/i:had_status/i:slot/I:count/I:ref_count/I:scid/string:timeSince/I:timeUntil/I",
41 title=
"errors tree;LBN;Error",fillGroup=
"errors")
44 result.merge(helper.result())
48 if __name__==
'__main__':
50 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
53 inputs = glob.glob(
'/eos/atlas/atlastier0/rucio/data18_13TeV/physics_Main/00354311/data18_13TeV.00354311.physics_Main.recon.ESD.f1129/data18_13TeV.00354311.physics_Main.recon.ESD.f1129._lb0013._SFO-8._0001.1')
56 flags.Input.Files = inputs
57 flags.Output.HISTFileName =
'ExampleMonitorOutput_LVL1_MC.root'
62 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
63 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
68 cfg.merge(EfexInputMonitorCfg)
71 cfg.printConfig(withDetails=
False, summariseProps =
True)