ATLAS Offline Software
Classes | Functions | Variables
python.TriggerAPI.TriggerAPI Namespace Reference

Classes

class  TriggerAPI
 

Functions

def main (dumpFullAPI=False)
 

Variables

 __author__
 
 __version__
 
 __doc__
 
 dumpFullAPI
 

Function Documentation

◆ main()

def 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.

174 def 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 

Variable Documentation

◆ __author__

python.TriggerAPI.TriggerAPI.__author__
private

Definition at line 3 of file TriggerAPI.py.

◆ __doc__

python.TriggerAPI.TriggerAPI.__doc__
private

Definition at line 5 of file TriggerAPI.py.

◆ __version__

python.TriggerAPI.TriggerAPI.__version__
private

Definition at line 4 of file TriggerAPI.py.

◆ dumpFullAPI

python.TriggerAPI.TriggerAPI.dumpFullAPI

Definition at line 197 of file TriggerAPI.py.

python.TriggerAPI.TriggerAPI.main
def main(dumpFullAPI=False)
Definition: TriggerAPI.py:174
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
DerivationFramework::TriggerMatchingUtils::sorted
std::vector< typename T::value_type > sorted(T begin, T end)
Helper function to create a sorted vector from an unsorted one.