Belle II Software development
misalignCDC.py
1#!/usr/bin/env python3
2
3
10
11from ROOT import Belle2
12
13payload = Belle2.CDCAlignment()
14
15wires_in_layer = [
16 160, 160, 160, 160, 160, 160, 160, 160,
17 160, 160, 160, 160, 160, 160,
18 192, 192, 192, 192, 192, 192,
19 224, 224, 224, 224, 224, 224,
20 256, 256, 256, 256, 256, 256,
21 288, 288, 288, 288, 288, 288,
22 320, 320, 320, 320, 320, 320,
23 352, 352, 352, 352, 352, 352,
24 384, 384, 384, 384, 384, 384]
25
26layer = 1
27
28for wire in range(0, wires_in_layer[layer]):
29 wireid = Belle2.WireID(layer, wire).getEWire()
30 payload.set(wireid, Belle2.CDCAlignment.wireFwdY, 0.01)
31 payload.set(wireid, Belle2.CDCAlignment.wireBwdY, 0.01)
32
33iov = Belle2.IntervalOfValidity(0, 0, -1, -1)
34Belle2.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:42