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