ATLAS Offline Software
Loading...
Searching...
No Matches
PyTriggerTools.py
Go to the documentation of this file.
1# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
2
3"""module to access trigger objects interactively
4
5Examples are in `PyAnalysisExamples/TriggerTest.py`_
6
7.. _PyAnalysisExamples/TriggerTest.py: http://atlas-sw.cern.ch/cgi-bin/viewcvs-atlas.cgi/offline/PhysicsAnalysis/PyAnalysis/PyAnalysisExamples/share/TriggerTest.py?rev=HEAD&content-type=text/vnd.viewcvs-markup
8
9:author: Tadashi Maeno
10:contact: Tadashi.Maeno@cern.ch
11
12"""
13__docformat__ = "restructuredtext en"
14
15from PyKernel import PyKernel as PyK
16
17
18def getCTP_Decision (aKey):
19 """Retrieve CTP_Decision object from SG
20
21 :param aKey: key of the object
22
23 **examples**::
24
25 athena> ctp = PyTriggerTools.getCTP_Decision('CTP_Decision')
26 athena> dir(ctp) # see methods of the CTP_Decision class
27 athena> print ctp.isAccepted() # see if this event was accepted by LVL1
28
29 """
30 return PyK.retrieve(PyK.GNS.CTP_Decision,aKey)
31
32
33
34def getLVL1_ROI (aKey):
35 """Retrieve LVL1_ROI object from SG
36
37 :param aKey: key of the object
38
39 **examples**::
40
41 athena> rois = PyTriggerTools.getLVL1_ROI('LVL1_ROI')
42 athena> dir(rois) # see methods of the LVL1_ROI class
43 athena> em = rois.getEmTauROIs() # get EMTau ROIs
44 athena> len(em) # get length of the EMTau ROI vector
45 athena> print em[0].getEta() # see Eta of the first ROI
46
47 """
48 return PyK.retrieve(PyK.GNS.LVL1_ROI,aKey)
49
50
51
52def getTrigDecision (aKey):
53 """Retrieve TrigDecision object from SG
54
55 :param aKey: key of the object
56
57
58 """
59 return PyK.retrieve(PyK.GNS.TrigDec.TrigDecision,aKey)
60
61
62def getHLTResult (aKey):
63 """Retrieve HLT::HLTResult object from SG
64
65 :param aKey: key of the object
66
67
68 """
69 return PyK.retrieve(PyK.GNS.HLT.HLTResult,aKey)
70
71
73 """Retrieve TrigConf::HLTAODConfigData object from SG
74
75 :param aKey: key of the object
76
77
78 """
79 return PyK.retrieve(PyK.GNS.TrigConf.HLTAODConfigData,aKey)
80
81
83 """Retrieve TrigConf::Lvl1AODConfigData object from SG
84
85 :param aKey: key of the object
86
87
88 """
89 return PyK.retrieve(PyK.GNS.TrigConf.Lvl1AODConfigData,aKey)
90
91
93 """Retrieve TrigConf::Lvl1AODPrescaleConfigData object from SG
94
95 :param aKey: key of the object
96
97
98 """
99 return PyK.retrieve(PyK.GNS.TrigConf.Lvl1AODPrescaleConfigData,aKey)
getLvl1AODConfigData(aKey)
Lvl1AODConfigData.
getCTP_Decision(aKey)
CTP Decision.
getLvl1AODPrescaleConfigData(aKey)
Lvl1AODPrescaleConfigData.
getLVL1_ROI(aKey)
LVL1 ROI.
getHLTAODConfigData(aKey)
HLTAODConfigData.
getHLTResult(aKey)
HLTResult.
getTrigDecision(aKey)
TrigDecision.