Belle II Software development
PrintCalibTriggerResults Class Reference
Inheritance 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
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:67

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