3 """module to access trigger objects interactively
5 Examples are in `PyAnalysisExamples/TriggerTest.py`_
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
10 :contact: Tadashi.Maeno@cern.ch
13 __docformat__ =
"restructuredtext en"
15 from PyKernel
import PyKernel
as PyK
19 """Retrieve CTP_Decision object from SG
21 :param aKey: key of the object
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
30 return PyK.retrieve(PyK.GNS.CTP_Decision,aKey)
35 """Retrieve LVL1_ROI object from SG
37 :param aKey: key of the object
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
48 return PyK.retrieve(PyK.GNS.LVL1_ROI,aKey)
53 """Retrieve TrigDecision object from SG
55 :param aKey: key of the object
59 return PyK.retrieve(PyK.GNS.TrigDec.TrigDecision,aKey)
63 """Retrieve HLT::HLTResult object from SG
65 :param aKey: key of the object
69 return PyK.retrieve(PyK.GNS.HLT.HLTResult,aKey)
73 """Retrieve TrigConf::HLTAODConfigData object from SG
75 :param aKey: key of the object
79 return PyK.retrieve(PyK.GNS.TrigConf.HLTAODConfigData,aKey)
83 """Retrieve TrigConf::Lvl1AODConfigData object from SG
85 :param aKey: key of the object
89 return PyK.retrieve(PyK.GNS.TrigConf.Lvl1AODConfigData,aKey)
93 """Retrieve TrigConf::Lvl1AODPrescaleConfigData object from SG
95 :param aKey: key of the object
99 return PyK.retrieve(PyK.GNS.TrigConf.Lvl1AODPrescaleConfigData,aKey)