12def jetMonitoringExampleConfig(inputFlags):
13 '''Function to configures some algorithms in the monitoring system.'''
14
15
16
17
18
19 from AthenaMonitoring import AthMonitorCfgHelper
20 helper = AthMonitorCfgHelper(inputFlags,'ExampleAthMonitorCfg')
21
22
24 from JetMonitoring.JetMonitoringConfig import JetMonAlgSpec, HistoSpec, SelectSpec, ToolSpec
25
26
27
28 ak4conf = JetMonAlgSpec(
29 "ak4lcMon",
30 JetContainerName = "AntiKt4LCTopoJets",
31
32 )
33
34
35
36
37
38
39
40
41 ak4conf.appendHistos(
42
43
44 "pt",
45 "highpt",
46 "m",
47 "eta",
48
49 "leadingJetsRel",
50
51
52
53
54
55 HistoSpec('HECFrac', (50,-0.1,1.4), title="HEC E fraction;HEC frac;" ),
56
57
58
59
60
61
62
63 HistoSpec( 'lowpt', (100,0,150) , title='p_{T};p_{T} [GeV];', xvar='pt:GeV'),
64
65
66
67
68
69 "pt;m",
70
71
72 "pt;eta",
73
74
75
76
77
78
79 "phi;eta;e",
80
81
82
83
84 SelectSpec( 'central',
85 '|eta|<0.5',
86
87
88
89 FillerTools = [
90
91
92 "pt",
93 "m",
94 "eta",
95 ] ),
96
97
98 SelectSpec( 'subleading',
99 '',
100 SelectedIndex=1,
101 path='standardHistos',
102 FillerTools = [
103 "pt",
104 "m",
105 ] ),
106
107
108 SelectSpec( 'highJVF',
109 '0.3<JVF[0]',
110 FillerTools = [
111 "pt",
112 ] ),
113
114 SelectSpec( 'LooseBadJets',
115 'LooseBad',
116 FillerTools = [
117 "pt",
118 ] ),
119
120
121 )
122
123
124
125
126
127 ak4conf.toAlg(helper)
128
129
130
136 def defineHistoForJetTrigg(conf, parentAlg, monhelper , path):
137
138 group = monhelper.addGroup(parentAlg, conf.Group, 'Jets/'+parentAlg.JetContainerName)
139
140 group.defineHistogram('trigPassed,jetVar',title='titletrig', type="TEfficiency", path='jetTrigg', xbins=100 , xmin=0, xmax=500000. ,)
141
142
143 from JetMonitoring.JetMonitoringConfig import retrieveVarToolConf
144 trigConf = JetMonAlgSpec(
145 "ak4lcTrigMon",
146 JetContainerName = "AntiKt4LCTopoJets",
147 TriggerChain = "HLT_j260",
148 )
149 trigConf.appendHistos(
150
151 ToolSpec('JetHistoTriggEfficiency', 'jetTrigg',
152
153 Group='jetTrigGroup',
154 Var=retrieveVarToolConf("pt"),
155
156 ProbeTrigChain="HLT_j260",defineHistoFunc=defineHistoForJetTrigg),
157 )
158
159 trigConf.toAlg(helper)
160
161 return helper.result()
162