Belle II Software development
importDAFparameters.py
1#!/usr/bin/env python
2
3
10
11# Import DAFparameters payloads
12from ROOT import Belle2 # noqa: make the Belle2 namespace available
13from ROOT.Belle2 import Database, IntervalOfValidity, DAFparameters
14
15# Optimisation 2023 #
16parameters = DAFparameters()
17parameters.setDeltaPValue(0.001)
18parameters.setDeltaWeight(0.06)
19parameters.setProbabilityCut(0.001)
20parameters.setAnnealingScheme(2, 0.01, 5)
21parameters.setMinimumIterations(1)
22parameters.setMaximumIterations(9)
23parameters.setMinimumIterationsForPVal(1)
24parameters.setMaximumFailedHits(5)
25
26database = Database.Instance()
27
28iov = IntervalOfValidity(0, 0, -1, -1) # 1st exp, 1st run, final exp, final run
29database.storeData('DAFparameters', parameters, iov)