Belle II Software  release-08-01-10
LocalMetadataComparison Class Reference

Public Member Functions

def __init__ (self, filename, globaltag, payloads)
 
def check (self, exp, run)
 

Static Public Member Functions

def create_cpp_metadataprovider (filename, globaltags)
 

Private Attributes

 _globaltag
 Globaltag.
 
 _payloads
 Payloads.
 
 _localpy
 Local metadata provider, python version.
 
 _localcpp
 Local metadata provider, C++ version.
 

Detailed Description

Simple class to obtain all valid payloads matching a given set of names for
a given experiment and run and compare the python and the C++
implementation.

Definition at line 21 of file local_metadata_provider.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  filename,
  globaltag,
  payloads 
)
Create the local metadata providers for the given globaltag and payload names

Definition at line 43 of file local_metadata_provider.py.

43  def __init__(self, filename, globaltag, payloads):
44  """Create the local metadata providers for the given globaltag and payload names"""
45 
46  self._globaltag = globaltag
47 
48  self._payloads = payloads
49 
50  self._localpy = LocalMetadataProvider(filename)
51 
52  self._localcpp = self.create_cpp_metadataprovider(filename, [globaltag])
53 

Member Function Documentation

◆ check()

def check (   self,
  exp,
  run 
)
Check if the c++ and python version return the same payload revisions
If not raise a ValueError, if yes return the list of payloads and their
revision valid for the given exp,run

Definition at line 54 of file local_metadata_provider.py.

◆ create_cpp_metadataprovider()

def create_cpp_metadataprovider (   filename,
  globaltags 
)
static
Jump through some hoops to create a C++ instance of the local metadata
provider so that we can check the framework implementation and compare
it to the python version

Definition at line 28 of file local_metadata_provider.py.


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