Belle II Software  release-06-00-14
misalignVXDYing.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 
11 
12 from ROOT import Belle2
13 
14 payload = Belle2.VXDAlignment()
15 
16 ying = Belle2.VxdID(1, 0, 0, 1).getID()
17 yang = Belle2.VxdID(1, 0, 0, 2).getID()
18 pat = Belle2.VxdID(3, 0, 0, 1).getID()
19 mat = Belle2.VxdID(3, 0, 0, 2).getID()
20 
21 x = 1
22 y = 2
23 z = 3
24 
25 payload.setGlobalParam(0.01, ying, y)
26 
27 iov = Belle2.IntervalOfValidity(0, 0, -1, -1)
28 Belle2.Database.Instance().storeData('VXDAlignment', payload, iov)
A class that describes the interval of experiments/runs for which an object in the database is valid.
VXD alignment (and maybe some calibration) parameters.
Definition: VXDAlignment.h:19
Class to uniquely identify a any structure of the PXD and SVD.
Definition: VxdID.h:33
static Database & Instance()
Instance of a singleton Database.
Definition: Database.cc:41
int getID(const std::vector< double > &breaks, double t)
get id of the time point t
Definition: calibTools.h:60