Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
|
def | same (val, tool) |
|
def | electronRingerFastCaloHypoConfig (flags, name, sequenceOut) |
|
def | photonRingerFastCaloHypoConfig (flags, name, sequenceOut) |
|
def | createTrigEgammaFastCaloHypoAlg (flags, name, sequenceOut) |
|
def | TrigEgammaFastCaloHypoAlgCfg (flags, name, CaloClusters) |
|
def | createTrigEgammaFastCaloHypoAlg_noringer (flags, name, sequenceOut) |
|
def | treatPidName (pidname) |
|
def | _IncTool (flags, name, monGroups, cpart, tool=None) |
|
def | TrigEgammaFastCaloHypoToolFromDict (flags, chainDict, tool=None) |
|
def | createTrigEgammaFastCaloElectronSelectors (flags, ConfigFilePath=None) |
|
def | createTrigEgammaFastCaloPhotonSelectors (flags, ConfigFilePath=None) |
|
◆ _IncTool()
def python.TrigEgammaFastCaloHypoTool._IncTool |
( |
|
flags, |
|
|
|
name, |
|
|
|
monGroups, |
|
|
|
cpart, |
|
|
|
tool = None |
|
) |
| |
|
private |
Definition at line 327 of file TrigEgammaFastCaloHypoTool.py.
327 def _IncTool(flags, name, monGroups, cpart, tool=None):
328 config = TrigEgammaFastCaloHypoToolConfig(flags, name, monGroups, cpart, tool=tool )
329 config.compile(flags)
◆ createTrigEgammaFastCaloElectronSelectors()
def python.TrigEgammaFastCaloHypoTool.createTrigEgammaFastCaloElectronSelectors |
( |
|
flags, |
|
|
|
ConfigFilePath = None |
|
) |
| |
Definition at line 340 of file TrigEgammaFastCaloHypoTool.py.
342 if not ConfigFilePath:
343 ConfigFilePath = flags.Trigger.egamma.ringerVersion
346 SelectorNames = collections.OrderedDict({
347 'tight' :
'AsgElectronFastCaloRingerTightSelectorTool',
348 'medium' :
'AsgElectronFastCaloRingerMediumSelectorTool',
349 'loose' :
'AsgElectronFastCaloRingerLooseSelectorTool',
350 'vloose' :
'AsgElectronFastCaloRingerVeryLooseSelectorTool',
354 ToolConfigFile = collections.OrderedDict({
355 'tight' :[
'ElectronRingerTightTriggerConfig.conf' ],
356 'medium' :[
'ElectronRingerMediumTriggerConfig.conf' ],
357 'loose' :[
'ElectronRingerLooseTriggerConfig.conf' ],
358 'vloose' :[
'ElectronRingerVeryLooseTriggerConfig.conf'],
363 for pidname , name
in SelectorNames.items():
364 SelectorTool=CompFactory.Ringer.AsgRingerSelectorTool(name)
365 SelectorTool.ConfigFiles = [ (ConfigFilePath+
'/'+path)
for path
in ToolConfigFile[pidname] ]
366 selectors.append(SelectorTool)
◆ createTrigEgammaFastCaloHypoAlg()
def python.TrigEgammaFastCaloHypoTool.createTrigEgammaFastCaloHypoAlg |
( |
|
flags, |
|
|
|
name, |
|
|
|
sequenceOut |
|
) |
| |
◆ createTrigEgammaFastCaloHypoAlg_noringer()
def python.TrigEgammaFastCaloHypoTool.createTrigEgammaFastCaloHypoAlg_noringer |
( |
|
flags, |
|
|
|
name, |
|
|
|
sequenceOut |
|
) |
| |
Definition at line 68 of file TrigEgammaFastCaloHypoTool.py.
71 theFastCaloHypo = CompFactory.TrigEgammaFastCaloHypoAlg(name)
72 theFastCaloHypo.CaloClusters = sequenceOut
75 theFastCaloHypo.PidNames = []
76 theFastCaloHypo.RingerNNSelectorTools = []
80 HistPath =
'FastCaloL2EgammaHypo/'+name)
81 monTool.defineHistogram(
'TIME_exec', type=
'TH1F', path=
'EXPERT', title=
"Fast Calo Hypo Algtime; time [ us ] ; Nruns", xbins=80, xmin=0.0, xmax=8000.0)
82 monTool.defineHistogram(
'TIME_NN_exec', type=
'TH1F', path=
'EXPERT', title=
"Fast Calo Hypo NN Algtime; time [ us ] ; Nruns", xbins=20, xmin=0.0, xmax=1000.0)
84 theFastCaloHypo.MonTool=monTool
85 return theFastCaloHypo
◆ createTrigEgammaFastCaloPhotonSelectors()
def python.TrigEgammaFastCaloHypoTool.createTrigEgammaFastCaloPhotonSelectors |
( |
|
flags, |
|
|
|
ConfigFilePath = None |
|
) |
| |
Definition at line 371 of file TrigEgammaFastCaloHypoTool.py.
373 if not ConfigFilePath:
374 ConfigFilePath = flags.Trigger.egamma.photonRingerVersion
377 SelectorNames = collections.OrderedDict({
378 'tight' :
'AsgPhotonFastCaloRingerTightSelectorTool',
379 'medium' :
'AsgPhotonFastCaloRingerMediumSelectorTool',
380 'loose' :
'AsgPhotonFastCaloRingerLooseSelectorTool',
384 ToolConfigFile = collections.OrderedDict({
385 'tight' :[
'PhotonRingerTightTriggerConfig.conf' ],
386 'medium' :[
'PhotonRingerMediumTriggerConfig.conf' ],
387 'loose' :[
'PhotonRingerLooseTriggerConfig.conf' ],
392 for pidname , name
in SelectorNames.items():
393 SelectorTool=CompFactory.Ringer.AsgRingerSelectorTool(name)
394 SelectorTool.UseTansigOutput =
True
395 SelectorTool.ConfigFiles = [ (ConfigFilePath+
'/'+path)
for path
in ToolConfigFile[pidname] ]
396 selectors.append(SelectorTool)
◆ electronRingerFastCaloHypoConfig()
def python.TrigEgammaFastCaloHypoTool.electronRingerFastCaloHypoConfig |
( |
|
flags, |
|
|
|
name, |
|
|
|
sequenceOut |
|
) |
| |
Definition at line 19 of file TrigEgammaFastCaloHypoTool.py.
21 theFastCaloHypo = CompFactory.TrigEgammaFastCaloHypoAlg(name)
22 theFastCaloHypo.CaloClusters = sequenceOut
23 theFastCaloHypo.PidNames = [
"tight",
"medium",
"loose",
"vloose"]
27 monTool.defineHistogram(
'TIME_exec', type=
'TH1F', path=
'EXPERT', title=
"Fast Calo Hypo Algtime; time [ us ] ; Nruns", xbins=80, xmin=0.0, xmax=8000.0)
28 monTool.defineHistogram(
'TIME_NN_exec', type=
'TH1F', path=
'EXPERT', title=
"Fast Calo Hypo NN Algtime; time [ us ] ; Nruns", xbins=50, xmin=0.0, xmax=50)
30 theFastCaloHypo.MonTool=monTool
31 return theFastCaloHypo
◆ photonRingerFastCaloHypoConfig()
def python.TrigEgammaFastCaloHypoTool.photonRingerFastCaloHypoConfig |
( |
|
flags, |
|
|
|
name, |
|
|
|
sequenceOut |
|
) |
| |
Definition at line 36 of file TrigEgammaFastCaloHypoTool.py.
38 theFastCaloHypo = CompFactory.TrigEgammaFastCaloHypoAlg(name)
39 theFastCaloHypo.CaloClusters = sequenceOut
40 theFastCaloHypo.PidNames = [
"tight",
"medium",
"loose"]
44 monTool.defineHistogram(
'TIME_exec', type=
'TH1F', path=
'EXPERT', title=
"Fast Calo Hypo Algtime; time [ us ] ; Nruns", xbins=80, xmin=0.0, xmax=8000.0)
45 monTool.defineHistogram(
'TIME_NN_exec', type=
'TH1F', path=
'EXPERT', title=
"Fast Calo Hypo NN Algtime; time [ us ] ; Nruns", xbins=50, xmin=0.0, xmax=50)
47 theFastCaloHypo.MonTool=monTool
48 return theFastCaloHypo
◆ same()
def python.TrigEgammaFastCaloHypoTool.same |
( |
|
val, |
|
|
|
tool |
|
) |
| |
◆ treatPidName()
def python.TrigEgammaFastCaloHypoTool.treatPidName |
( |
|
pidname | ) |
|
◆ TrigEgammaFastCaloHypoAlgCfg()
def python.TrigEgammaFastCaloHypoTool.TrigEgammaFastCaloHypoAlgCfg |
( |
|
flags, |
|
|
|
name, |
|
|
|
CaloClusters |
|
) |
| |
◆ TrigEgammaFastCaloHypoToolFromDict()
def python.TrigEgammaFastCaloHypoTool.TrigEgammaFastCaloHypoToolFromDict |
( |
|
flags, |
|
|
|
chainDict, |
|
|
|
tool = None |
|
) |
| |
Use menu decoded chain dictionary to configure the tool
Definition at line 333 of file TrigEgammaFastCaloHypoTool.py.
334 """ Use menu decoded chain dictionary to configure the tool """
335 cparts = [i
for i
in chainDict[
'chainParts']
if ((i[
'signature']==
'Electron')
or (i[
'signature']==
'Photon'))]
336 return _IncTool( flags, chainDict[
'chainName'], chainDict[
'monGroups'], cparts[0], tool=tool)