11from basf2
import Module
12from ROOT
import Belle2
13from basf2
import B2DEBUG, B2FATAL
19 module which sets time in EventMetaData
from detector raw data
21 Author: bjoern.spruck
@belle2.org
25 detectorlist = "SVD CDC ECL TOP"
38 B2FATAL(
"no EventMetaData object")
44 """Calculate the time in ns since epoch from UnixTime and Accelerator Clock count"""
46 return it.GetTTUtime(0) * 1000000000 + int(round(it.GetTTCtime(0) / 0.127216))
51 B2FATAL(
"no valid EventMetaData object in this event")
65 B2DEBUG(1,
"No time for EventMetaData extracted as no raw data entries were available from selected detectors")
A (simplified) python wrapper for StoreArray.
a (simplified) python wrapper for StoreObjPtr.