ATLAS Offline Software
Loading...
Searching...
No Matches
python.LumiCalculator.IOVCache Class Reference
Collaboration diagram for python.LumiCalculator.IOVCache:

Public Member Functions

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

Public Attributes

list sinces = []
list untils = []
list 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__()

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()

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
bool add(const std::string &hname, TKey *tobj)
Definition fastadd.cxx:55

◆ find()

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
std::string find(const std::string &s)
return a remapped string
Definition hcg.cxx:138

Member Data Documentation

◆ data

list 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

list python.LumiCalculator.IOVCache.untils = []

Definition at line 41 of file LumiCalculator.py.


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