69 def __init__(self, obj=None, starttime=None, endtime=None, runStart=None, lbStart=None, runEnd=None, lbEnd=None, timebased=False):
70 if isinstance(obj, cool.IObject):
71 self.startTime =
IOVTime(timerunlb=obj.since(), timebased=timebased)
72 self.endTime =
IOVTime(timerunlb=obj.until(), timebased=timebased)
73 elif isinstance(obj, IOVRange):
74 self.startTime = obj.startTime
75 self.endTime = obj.endTime
76 elif isinstance(starttime, IOVTime)
and isinstance(endtime, IOVTime):
77 self.startTime = starttime
78 self.endTime = endtime
79 elif isinstance(starttime,int)
and isinstance(endtime,int):
80 self.startTime =
IOVTime(timerunlb=starttime,timebased=timebased)
81 self.endTime =
IOVTime(timerunlb=endtime,timebased=timebased)
82 elif runStart
is not None and lbStart
is not None and runEnd
is not None and lbEnd
is not None:
83 self.startTime =
IOVTime(runStart, lbStart, timebased=
False)
84 self.endTime =
IOVTime(runEnd, lbEnd, timebased=
False)
86 print (
"IOVRange.__init__: Can't interpret arguments")