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

Public Member Functions

def initialize (self)
 
def calc_time (self, it)
 
def event (self)
 

Public Attributes

 raws
 list of raw dataobjects
 

Static Public Attributes

string detectorlist = "SVD CDC ECL TOP"
 List of detector names to check in that order (for fallback)
 
 meta = None
 pointer to event meta data
 
list raws = []
 array of pointers to the detector raw data arrays
 

Detailed Description

module which sets time in EventMetaData from detector raw data

Author: bjoern.spruck@belle2.org

Definition at line 17 of file SetMetaTimeModule.py.

Member Function Documentation

◆ calc_time()

def calc_time (   self,
  it 
)
Calculate the time in ns since epoch from UnixTime and Accelerator Clock count

Definition at line 43 of file SetMetaTimeModule.py.

43  def calc_time(self, it):
44  """Calculate the time in ns since epoch from UnixTime and Accelerator Clock count"""
45  # t = it.GetTTTimeNs(0)
46  return it.GetTTUtime(0) * 1000000000 + int(round(it.GetTTCtime(0) / 0.127216))
47 

◆ event()

def event (   self)
event

Definition at line 48 of file SetMetaTimeModule.py.

◆ initialize()

def initialize (   self)
initialize

Definition at line 34 of file SetMetaTimeModule.py.


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