ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
GetLBInfoFromCOOL.Run Class Reference
Collaboration diagram for GetLBInfoFromCOOL.Run:

Public Member Functions

def __init__ (self, run_number, lbs)
 
def GetRunStartTime (self)
 
def GetRunEndTime (self)
 
def GetIntLumiInvPB (self)
 
def GetPeakInstLumi (self)
 
def AsStr (self)
 

Public Attributes

 run_number
 
 lbs
 
 lb_first
 
 lb_last
 
 int_lumi
 
 peak_inst_lumi
 

Detailed Description

Definition at line 83 of file GetLBInfoFromCOOL.py.

Constructor & Destructor Documentation

◆ __init__()

def GetLBInfoFromCOOL.Run.__init__ (   self,
  run_number,
  lbs 
)

Definition at line 84 of file GetLBInfoFromCOOL.py.

84  def __init__(self, run_number, lbs):
85  self.run_number = run_number
86  self.lbs = lbs
87  self.lb_first = None
88  self.lb_last = None
89 
90  self.int_lumi = 0
91  self.peak_inst_lumi = 0.0
92 
93  for lb in lbs:
94  self.peak_inst_lumi = max([self.peak_inst_lumi, lb.GetInstLumi()])
95 
96  self.int_lumi += lb.GetIntLumi()
97 
98  if self.lb_first is None:
99  self.lb_first = lb
100  self.lb_last = lb
101  else:
102  if lb.lb < self.lb_first.lb: self.lb_first = lb
103  if lb.lb > self.lb_last.lb: self.lb_last = lb
104 

Member Function Documentation

◆ AsStr()

def GetLBInfoFromCOOL.Run.AsStr (   self)

Definition at line 117 of file GetLBInfoFromCOOL.py.

117  def AsStr(self):
118  ip = ('%.0f' ,(self.GetPeakInstLumi())).rjust(5)
119  il = ('%.3f' ,(self.GetIntLumiInvPB())).rjust(8)
120 
121  s = 'Run %s peak lumi=%s int lumi=%s' ,(self.run_number, ip, il)
122 
123  return s
124 
125 
126 #==================================================================================================================

◆ GetIntLumiInvPB()

def GetLBInfoFromCOOL.Run.GetIntLumiInvPB (   self)

Definition at line 111 of file GetLBInfoFromCOOL.py.

111  def GetIntLumiInvPB(self):
112  return self.int_lumi*1.0e-6
113 

◆ GetPeakInstLumi()

def GetLBInfoFromCOOL.Run.GetPeakInstLumi (   self)

Definition at line 114 of file GetLBInfoFromCOOL.py.

114  def GetPeakInstLumi(self):
115  return self.peak_inst_lumi
116 

◆ GetRunEndTime()

def GetLBInfoFromCOOL.Run.GetRunEndTime (   self)

Definition at line 108 of file GetLBInfoFromCOOL.py.

108  def GetRunEndTime(self):
109  return self.lb_last.end_time
110 

◆ GetRunStartTime()

def GetLBInfoFromCOOL.Run.GetRunStartTime (   self)

Definition at line 105 of file GetLBInfoFromCOOL.py.

105  def GetRunStartTime(self):
106  return self.lb_first.start_time
107 

Member Data Documentation

◆ int_lumi

GetLBInfoFromCOOL.Run.int_lumi

Definition at line 90 of file GetLBInfoFromCOOL.py.

◆ lb_first

GetLBInfoFromCOOL.Run.lb_first

Definition at line 87 of file GetLBInfoFromCOOL.py.

◆ lb_last

GetLBInfoFromCOOL.Run.lb_last

Definition at line 88 of file GetLBInfoFromCOOL.py.

◆ lbs

GetLBInfoFromCOOL.Run.lbs

Definition at line 86 of file GetLBInfoFromCOOL.py.

◆ peak_inst_lumi

GetLBInfoFromCOOL.Run.peak_inst_lumi

Definition at line 91 of file GetLBInfoFromCOOL.py.

◆ run_number

GetLBInfoFromCOOL.Run.run_number

Definition at line 85 of file GetLBInfoFromCOOL.py.


The documentation for this class was generated from the following file:
max
constexpr double max()
Definition: ap_fixedTest.cxx:33
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18