Belle II Software development
ImportScintillatorFEEParameters.py
1#!/usr/bin/env python3
2
3
10
11# Create KLM scintillator FEE parameters payloads.
12
13from ROOT import Belle2
14
16data.setPedestal(3700)
17data.setPhotoelectronAmplitude(20)
18# ADCPedestal - 3.0 * ADCPEAmplitude = 3700 - 3.0 * 20 = 3640
19data.setThreshold(3640)
20data.setVoltage(72.2)
21data.setAdjustmentVoltage(0)
22data.setLookbackTime(0)
23data.setLookbackWindowWidth(0)
24
28while (index != index2.end()):
29 if not (index.getSubdetector == Belle2.KLMElementNumbers.c_BKLM and
30 index.getLayer >= Belle2.BKLMElementNumbers.c_FirstRPCLayer):
31 channel = index.getKLMChannelNumber()
32 parameters.setFEEData(channel, data)
33 index.increment()
34
36
37iov = Belle2.IntervalOfValidity(0, 0, 0, -1)
38db.storeData("KLMScintillatorFEEParameters", parameters, iov)
39
40iov = Belle2.IntervalOfValidity(1002, 0, 1002, -1)
41db.storeData("KLMScintillatorFEEParameters", parameters, iov)
42
43iov = Belle2.IntervalOfValidity(1003, 0, 1003, -1)
44db.storeData("KLMScintillatorFEEParameters", parameters, iov)
A class that describes the interval of experiments/runs for which an object in the database is valid.
KLM channel index.
Class to store EKLM alignment data in the database.
static Database & Instance()
Instance of a singleton Database.
Definition: Database.cc:42