CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
condhdf5tohdf5.H5Payload Class Reference
Inheritance diagram for condhdf5tohdf5.H5Payload:

Public Member Functions

def __init__ (self, dataset, name, compressor)
 
def actualType (self)
 
def data (self)
 
def memsize (self)
 
def name (self)
 

Private Attributes

 _compressor
 
 _dataset
 
 _hash
 
 _memsize
 
 _type
 

Detailed Description

Definition at line 31 of file condhdf5tohdf5.py.

Constructor & Destructor Documentation

◆ __init__()

def condhdf5tohdf5.H5Payload.__init__ (   self,
  dataset,
  name,
  compressor 
)

Definition at line 32 of file condhdf5tohdf5.py.

32  def __init__(self,dataset,name, compressor):
33  self._dataset = dataset
34  self._hash = name
35  self._type = dataset.attrs['type']
36  self._memsize = dataset.attrs['memsize']
37  self._compressor = compressor
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ actualType()

def condhdf5tohdf5.H5Payload.actualType (   self)

Definition at line 40 of file condhdf5tohdf5.py.

References condhdf5tohdf5.H5Payload._type, MELaserPrim._type, conddb2hdf5.DBPayload._type, conddb2hdf5.DBDataProduct._type, and conddb2hdf5.DBTag._type.

40  def actualType(self):
41  return self._type

◆ data()

def condhdf5tohdf5.H5Payload.data (   self)

Definition at line 44 of file condhdf5tohdf5.py.

References condhdf5tohdf5.H5Payload._compressor, condhdf5tohdf5.H5Payload._dataset, and condhdf5tohdf5.H5Payload.memsize().

Referenced by data_sources.node.__str__(), data_sources.json_list.as_dicts(), data_sources.json_list.as_table(), data_sources.json_list.get_members(), and data_sources.json_list.last().

44  def data(self):
45  ds = self._dataset[()]
46  if len(ds) == self.memsize():
47  return ds
48  #was compressed
49  return self._compressor.decompress(ds)
50 
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80

◆ memsize()

def condhdf5tohdf5.H5Payload.memsize (   self)

Definition at line 42 of file condhdf5tohdf5.py.

References condhdf5tohdf5.H5Payload._memsize.

Referenced by condhdf5tohdf5.H5Payload.data().

42  def memsize(self):
43  return self._memsize

◆ name()

def condhdf5tohdf5.H5Payload.name (   self)

Member Data Documentation

◆ _compressor

condhdf5tohdf5.H5Payload._compressor
private

◆ _dataset

condhdf5tohdf5.H5Payload._dataset
private

Definition at line 33 of file condhdf5tohdf5.py.

Referenced by condhdf5tohdf5.H5Payload.data().

◆ _hash

condhdf5tohdf5.H5Payload._hash
private

Definition at line 34 of file condhdf5tohdf5.py.

Referenced by condhdf5tohdf5.H5Payload.name().

◆ _memsize

condhdf5tohdf5.H5Payload._memsize
private

Definition at line 36 of file condhdf5tohdf5.py.

Referenced by condhdf5tohdf5.H5Payload.memsize().

◆ _type

condhdf5tohdf5.H5Payload._type
private