ATLAS Offline Software
Loading...
Searching...
No Matches
python.TriggerAPI.TriggerAPI Namespace Reference

Classes

class  TriggerAPI

Functions

 main (dumpFullAPI=False)

Variables

str __author__ = 'Javier Montejo'
str __version__ = "$Revision: 2.0 $"
str __doc__ = "Interface to retrieve lists of unprescaled triggers according to types and periods"
tuple dumpFullAPI = ("dumpFullAPI" in sys.argv)

Function Documentation

◆ main()

python.TriggerAPI.TriggerAPI.main ( dumpFullAPI = False)
Run some tests or dump the full pickle/json for CalibPath 

Definition at line 174 of file TriggerAPI.py.

174def main(dumpFullAPI=False):
175 ''' Run some tests or dump the full pickle/json for CalibPath '''
176 log = logging.getLogger(__name__)
177
178 if dumpFullAPI:
179 for triggerPeriod in TriggerPeriod:
180 unprescaled = TriggerAPI.getLowestUnprescaled(triggerPeriod,TriggerType.mu_single)
181 log.info(triggerPeriod)
182 log.info(sorted(unprescaled))
183 #Cache also one run for the example script
184 unprescaled = TriggerAPI.getLowestUnprescaled(337833,TriggerType.mu_single)
185 log.info(337833)
186 log.info(sorted(unprescaled))
187 TriggerAPI.dumpAPI(full=True)
188 else:
189 try: period = int(sys.argv[1])
190 except Exception: period = TriggerPeriod.y2018
191 for triggerType in TriggerType:
192 unprescaled = TriggerAPI.getLowestUnprescaled(period,triggerType)
193 log.info(triggerType)
194 log.info(sorted(unprescaled))
195
int main()
Definition hello.cxx:18

Variable Documentation

◆ __author__

str python.TriggerAPI.TriggerAPI.__author__ = 'Javier Montejo'
private

Definition at line 3 of file TriggerAPI.py.

◆ __doc__

str python.TriggerAPI.TriggerAPI.__doc__ = "Interface to retrieve lists of unprescaled triggers according to types and periods"
private

Definition at line 5 of file TriggerAPI.py.

◆ __version__

str python.TriggerAPI.TriggerAPI.__version__ = "$Revision: 2.0 $"
private

Definition at line 4 of file TriggerAPI.py.

◆ dumpFullAPI

tuple python.TriggerAPI.TriggerAPI.dumpFullAPI = ("dumpFullAPI" in sys.argv)

Definition at line 197 of file TriggerAPI.py.