Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 
5 Examples 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 
15 from PyKernel import PyKernel as PyK
16 
17 
18 def 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 
34 def 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 
52 def 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 
62 def 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)
python.PyTriggerTools.getHLTResult
def getHLTResult(aKey)
HLTResult.
Definition: PyTriggerTools.py:62
python.PyTriggerTools.getHLTAODConfigData
def getHLTAODConfigData(aKey)
HLTAODConfigData.
Definition: PyTriggerTools.py:72
python.PyTriggerTools.getCTP_Decision
def getCTP_Decision(aKey)
CTP Decision.
Definition: PyTriggerTools.py:18
python.PyTriggerTools.getTrigDecision
def getTrigDecision(aKey)
TrigDecision.
Definition: PyTriggerTools.py:52
python.PyTriggerTools.getLvl1AODPrescaleConfigData
def getLvl1AODPrescaleConfigData(aKey)
Lvl1AODPrescaleConfigData.
Definition: PyTriggerTools.py:92
python.PyTriggerTools.getLVL1_ROI
def getLVL1_ROI(aKey)
LVL1 ROI.
Definition: PyTriggerTools.py:34
python.PyTriggerTools.getLvl1AODConfigData
def getLvl1AODConfigData(aKey)
Lvl1AODConfigData.
Definition: PyTriggerTools.py:82