6 '''Function to configure LVL1 L1CaloLegacyEDM algorithm in the monitoring system.'''
11 from AthenaConfiguration.ComponentFactory
import CompFactory
12 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
18 from AthenaMonitoring
import AthMonitorCfgHelper
19 helper = AthMonitorCfgHelper(inputFlags,
'L1CaloLegacyEDMMonitoringCfg')
22 L1CaloLegacyEDMMonAlg = helper.addAlgorithm(CompFactory.L1CaloLegacyEDMMonitorAlgorithm,
'L1CaloLegacyEDMMonAlg')
25 groupName =
'L1CaloLegacyEDMMonitor'
26 L1CaloLegacyEDMMonAlg.PackageName = groupName
29 trigPath =
'L1CaloLegacyEDM/'
30 inputPath = trigPath +
'/Input/'
32 myGroup = helper.addGroup(L1CaloLegacyEDMMonAlg, groupName , mainDir)
35 myGroup.defineHistogram(
'run',title=
'Run Number;run;Events', path=trigPath,xbins=1,xmin=-0.5, xmax=1.5, opt=
'kAddBinsDynamically', merge=
'merge')
37 myGroup.defineHistogram(
'LVL1EmTauRoIs_eta',title=
'EM Tau RoIs eta;EM Tau RoI #eta;Number of EM Tau RoIs', path=inputPath,xbins=100,xmin=-3.5,xmax=3.5)
39 myGroup.defineHistogram(
'LVL1EmTauRoIs_phi',title=
'EM Tau RoIs eta;EM Tau RoI #phi;Number of EM Tau RoIs', path=inputPath,xbins=100,xmin=-3.5,xmax=3.5)
41 myGroup.defineHistogram(
'LVL1EmTauRoIs_core',title=
'EM Tau Core Energy;EM Tau Core Energy [GeV];Number of EM Tau RoIs', path=inputPath,xbins=20,xmin=0,xmax=100)
43 myGroup.defineHistogram(
'LVL1EmTauRoIs_emClus',title=
'EM Cluster Energy;EM Cluster Energy [GeV];Number of EM Tau RoIs', path=inputPath,xbins=20,xmin=0,xmax=100)
45 myGroup.defineHistogram(
'LVL1EmTauRoIs_tauClus',title=
'Hadronic Isolation Sum;Hadronic Isolation Sum [GeV];Number of EM Tau RoIs',path=inputPath,xbins=20,xmin=0,xmax=10)
47 myGroup.defineHistogram(
'LVL1EmTauRoIs_hadIsol',title=
'EM Isolation Sum;EM Isolation Sum [GeV];Number of EM Tau RoIs', path=inputPath,xbins=20,xmin=0,xmax=10)
49 myGroup.defineHistogram(
'LVL1EmTauRoIs_emIsol',title=
'Hadronic Core ;EM Isolation Sum;EM Isolation Sum [GeV];Number of EM Tau RoIs',path=inputPath,xbins=20,xmin=0,xmax=20)
51 myGroup.defineHistogram(
'LVL1EmTauRoIs_hadCore',title=
'Hadronic Core ;Hadronic Core [GeV];Number of EM Tau RoIs', path=inputPath,xbins=40,xmin=0,xmax=20)
53 myGroup.defineHistogram(
'LVL1EmTauRoIs_thrPattern',title=
'LVL1EmTauRoIs_thrPattern', path=inputPath,xbins=20,xmin=0,xmax=100000)
57 etabins_1d = [-4.9,-3.2,-2.9,-2.7,-2.4,-2.2,-2.0,-1.8,
58 -1.6,-1.4,-1.2,-1.0,-0.8,-0.6,-0.4,-0.2,
59 0.0,0.2,0.4,0.6,0.8,1.0,1.2,1.4,1.6,1.8,
60 2.0,2.2,2.4,2.7,2.9,3.2,4.9]
65 myGroup.defineHistogram(
'LVL1JetRoIs_eta',title=
'Jet RoIs eta;Jet RoI #eta;Number of Jet RoIs', path=inputPath,type=
'TH1F',**eta_bins)
67 myGroup.defineHistogram(
'LVL1JetRoIs_phi',title=
'Jet RoIs phi;Jet RoI #phi;Number of Jet RoIs', path=inputPath,xbins=100,xmin=-3.5,xmax=3.5)
69 myGroup.defineHistogram(
'LVL1JetRoIs_et4x4',title=
'Jet RoIs ET 4x4;Jet ET 4x4 [GeV]; Number of Jet RoIs', path=inputPath,xbins=100,xmin=0,xmax=500)
71 myGroup.defineHistogram(
'LVL1JetRoIs_et8x8',title=
'Jet RoIs ET 8x8;Jet ET 8x8 [GeV]; Number of Jet RoIs', path=inputPath,xbins=100,xmin=0,xmax=500)
74 myGroup.defineHistogram(
'LVL1EnergySumRoI_energyT',title=
'Energy Sum RoI energyT;Energy Sum RoI energyT [GeV];Number of Energy Sum RoIs', path=inputPath,xbins=100,xmin=0,xmax=1000)
76 myGroup.defineHistogram(
'LVL1EnergySumRoI_energyX',title=
'Energy Sum RoI energyX;Energy Sum RoI energyX [GeV];Number of Energy Sum RoIs', path=inputPath,xbins=100,xmin=-500,xmax=500)
78 myGroup.defineHistogram(
'LVL1EnergySumRoI_energyY',title=
'Energy Sum RoI energyY;Energy Sum RoI energyY [GeV];Number of Energy Sum RoIs', path=inputPath,xbins=100,xmin=-500,xmax=500)