Belle II Software  release-06-01-15
misalignCDC.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 
11 
12 from ROOT import Belle2
13 
14 payload = Belle2.CDCAlignment()
15 
16 wires_in_layer = [
17  160, 160, 160, 160, 160, 160, 160, 160,
18  160, 160, 160, 160, 160, 160,
19  192, 192, 192, 192, 192, 192,
20  224, 224, 224, 224, 224, 224,
21  256, 256, 256, 256, 256, 256,
22  288, 288, 288, 288, 288, 288,
23  320, 320, 320, 320, 320, 320,
24  352, 352, 352, 352, 352, 352,
25  384, 384, 384, 384, 384, 384]
26 
27 layer = 1
28 
29 for wire in range(0, wires_in_layer[layer]):
30  wireid = Belle2.WireID(layer, wire).getEWire()
31  payload.set(wireid, Belle2.CDCAlignment.wireFwdY, 0.01)
32  payload.set(wireid, Belle2.CDCAlignment.wireBwdY, 0.01)
33 
34 iov = Belle2.IntervalOfValidity(0, 0, -1, -1)
35 Belle2.Database.Instance().storeData('CDCAlignment', payload, iov)
CDC alignment constants.
Definition: CDCAlignment.h:24
A class that describes the interval of experiments/runs for which an object in the database is valid.
Class to identify a wire inside the CDC.
Definition: WireID.h:34
static Database & Instance()
Instance of a singleton Database.
Definition: Database.cc:41