ATLAS Offline Software
EIPBof.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2 
3 
4 import EventIndexProducer.EventIndex_pb2 as EventIndex_pb2
5 
6 
7 class EIPBof():
8 
9  def __init__(self, version):
10  self.version = version
11  if version <= 0 or version > 1:
12  raise RuntimeError("Invalid SPB version")
13 
14  def Header(self):
15  if self.version == 1:
16  return EventIndex_pb2.Header_p1()
17  else:
18  return None
19 
20  def Trailer(self):
21  if self.version == 1:
22  return EventIndex_pb2.Trailer_p1()
23  else:
24  return None
25 
26  def BeginGUID(self):
27  if self.version == 1:
28  return EventIndex_pb2.BeginGUID_p1()
29  else:
30  return None
31 
32  def EndGUID(self):
33  if self.version == 1:
34  return EventIndex_pb2.EndGUID_p1()
35  else:
36  return None
37 
38  def TriggerMenu(self):
39  if self.version == 1:
40  return EventIndex_pb2.TriggerMenu_p1()
41  else:
42  return None
43 
44  def EIEvent(self):
45  if self.version == 1:
46  return EventIndex_pb2.EIEvent_p1()
47  else:
48  return None
python.EIPBof.EIPBof.Trailer
def Trailer(self)
Definition: EIPBof.py:20
python.EIPBof.EIPBof
Definition: EIPBof.py:7
python.EIPBof.EIPBof.EndGUID
def EndGUID(self)
Definition: EIPBof.py:32
python.EIPBof.EIPBof.__init__
def __init__(self, version)
Definition: EIPBof.py:9
python.EIPBof.EIPBof.TriggerMenu
def TriggerMenu(self)
Definition: EIPBof.py:38
python.EIPBof.EIPBof.version
version
Definition: EIPBof.py:10
python.EIPBof.EIPBof.Header
def Header(self)
Definition: EIPBof.py:14
python.EIPBof.EIPBof.EIEvent
def EIEvent(self)
Definition: EIPBof.py:44
python.EIPBof.EIPBof.BeginGUID
def BeginGUID(self)
Definition: EIPBof.py:26