Belle II Software  release-05-01-25
mdst_class_versions Namespace Reference

Variables

dictionary EXPECTED_CHECKSUMS
 A mapping name -> version, checksum of the expected objects. More...
 
list OBJECT_NAMES
 Object names part of mdst. More...
 
list objects = [get_object_with_name(object_name)() for object_name in OBJECT_NAMES]
 the actual objects corresponding to the names
 
list problems = []
 keep track of found problems
 
 found = get_streamer_checksums(objects)
 dictionary of objects to (version, checksum)
 
 expected_version
 
 expected_checksum
 

Detailed Description

Check that all the classdef versions and class checksums are consistent to prevent accidental mismatch:

If one forgets to increase the ClassDef but the streamer info checksum changes this will trigger a test failure. We can distuingish

1. ClassDef version changed unnecessary
2. forgot to change ClassDef
3. both changed

Variable Documentation

◆ expected_checksum

expected_checksum

checksum so far

Definition at line 81 of file mdst_class_versions.py.

◆ EXPECTED_CHECKSUMS

dictionary EXPECTED_CHECKSUMS
Initial value:
1 = {
2  'Belle2::Const::DetectorSet': (1, 1222446098),
3  'Belle2::ECLCluster': (14, 932603982),
4  'Belle2::EventLevelClusteringInfo': (1, 162935545),
5  'Belle2::EventLevelTrackingInfo': (2, 1667284927),
6  'Belle2::EventMetaData': (4, 2999207747),
7  'Belle2::FileMetaData': (10, 3436593892),
8  'Belle2::KLMCluster': (2, 2615188022),
9  'Belle2::KlId': (2, 230716330),
10  'Belle2::PIDLikelihood': (3, 36434623),
11  'Belle2::RelationContainer': (1, 1725678837),
12  'Belle2::RelationElement': (1, 1883389510),
13  'Belle2::RelationsInterface<TObject>': (0, 3862127315),
14  'Belle2::SoftwareTriggerResult': (5, 241059817),
15  'Belle2::TRGSummary': (7, 1658421299),
16  'Belle2::Track': (4, 839781593),
17  'Belle2::TrackFitResult': (8, 1247854432),
18  'Belle2::V0': (3, 4006259140),
19 }

A mapping name -> version, checksum of the expected objects.

Definition at line 17 of file mdst_class_versions.py.

◆ expected_version

expected_version

version so far

Definition at line 81 of file mdst_class_versions.py.

◆ OBJECT_NAMES

list OBJECT_NAMES
Initial value:
1 = [
2  "FileMetaData",
3  "EventMetaData",
4  "RelationContainer",
5  "Track",
6  "V0",
7  "TrackFitResult",
8  "EventLevelTrackingInfo",
9  "PIDLikelihood",
10  "ECLCluster",
11  "EventLevelClusteringInfo",
12  "KLMCluster",
13  "KlId",
14  "TRGSummary",
15  "SoftwareTriggerResult",
16 ]

Object names part of mdst.

Definition at line 38 of file mdst_class_versions.py.