ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
python.LumiCalculator.IOVCache Class Reference
Collaboration diagram for python.LumiCalculator.IOVCache:

Public Member Functions

def __init__ (self)
 
def add (self, since, until, data)
 
def find (self, point)
 

Public Attributes

 sinces
 
 untils
 
 data
 

Detailed Description

An in-memory cache of items of data, each associated with an IOV
Methods provided to add more data (specified with IOV) and to lookup the
data for a particular time. Not optimised, suitable only for small amounts
of data!

Definition at line 34 of file LumiCalculator.py.

Constructor & Destructor Documentation

◆ __init__()

def python.LumiCalculator.IOVCache.__init__ (   self)

Definition at line 39 of file LumiCalculator.py.

39  def __init__(self):
40  self.sinces=[]
41  self.untils=[]
42  self.data=[]
43 

Member Function Documentation

◆ add()

def python.LumiCalculator.IOVCache.add (   self,
  since,
  until,
  data 
)

Definition at line 44 of file LumiCalculator.py.

44  def add(self,since,until,data):
45  self.sinces+=[since]
46  self.untils+=[until]
47  self.data+=[data]
48 

◆ find()

def python.LumiCalculator.IOVCache.find (   self,
  point 
)

Definition at line 49 of file LumiCalculator.py.

49  def find(self,point):
50  for i in range(0,len(self.sinces)):
51  if (self.sinces[i]<=point and self.untils[i]>point):
52  return self.data[i]
53  return None
54 

Member Data Documentation

◆ data

python.LumiCalculator.IOVCache.data

Definition at line 42 of file LumiCalculator.py.

◆ sinces

python.LumiCalculator.IOVCache.sinces

Definition at line 40 of file LumiCalculator.py.

◆ untils

python.LumiCalculator.IOVCache.untils

Definition at line 41 of file LumiCalculator.py.


The documentation for this class was generated from the following file:
find
std::string find(const std::string &s)
return a remapped string
Definition: hcg.cxx:135
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
add
bool add(const std::string &hname, TKey *tobj)
Definition: fastadd.cxx:55
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18