Belle II Software  release-08-01-10
PrintCalibTriggerResults Class Reference
Inheritance diagram for PrintCalibTriggerResults:
Collaboration diagram for PrintCalibTriggerResults:

Public Member Functions

def event (self)
 

Detailed Description

Prints Calibration trigger results in a well formatted way.
User is prompted to continue or quit at each event

Definition at line 23 of file print_calib_trig_results.py.

Member Function Documentation

◆ event()

def event (   self)
Print log likelihoods and wait for user respond.

Definition at line 30 of file print_calib_trig_results.py.

30  def event(self):
31  '''
32  Print log likelihoods and wait for user respond.
33  '''
34 
35  evtMetaData = Belle2.PyStoreObj('EventMetaData')
36  exp = evtMetaData.obj().getExperiment()
37  run = evtMetaData.obj().getRun()
38  evt = evtMetaData.obj().getEvent()
39  print()
40  print('Experiment ' + str(exp) + ' Run ' + str(run) + ' Event ' + str(evt) + ':')
41  print()
42  trigger_result = Belle2.PyStoreObj('SoftwareTriggerResult')
43  for name, result in trigger_result.getResults():
44  print('Result ' + str(name) + ': ' + str(result))
45  if result == 1:
46  global results
47  results[name] += 1
48  print('')
49 
50 
51 b2.set_log_level(b2.LogLevel.ERROR)
52 
53 # Create path
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:67
static ExpRun getRun(std::map< ExpRun, std::pair< double, double >> runs, double t)
Get exp number + run number from time.
Definition: Splitter.cc:262

The documentation for this class was generated from the following file: