Belle II Software development
CreateDigits Class Reference
Inheritance diagram for CreateDigits:

Public Member Functions

def __init__ (self, digits)
 
def initialize (self)
 
def event (self)
 

Public Attributes

 svddigits
 shaper digits
 
 digits
 test digits
 
 samples
 six samples
 
 mode
 mode byte
 
 fadc_time
 FADC time.
 

Detailed Description

Create SVD ShaperDigits

Definition at line 16 of file test_shaperdigit_sorter.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  digits 
)
digits is a list of (sensor, side, strip) for which to generate a digit

Definition at line 19 of file test_shaperdigit_sorter.py.

19 def __init__(self, digits):
20 """digits is a list of (sensor, side, strip) for which to generate a digit"""
21 super().__init__()
22
23 self.svddigits = Belle2.PyStoreArray("SVDShaperDigits")
24
25 self.digits = digits
26
27 self.samples = ROOT.array('unsigned char', 6)()
28
29 for i, sample in zip(range(6), [0, 0, 12, 18, 12, 8]):
30 self.samples[i] = sample
31
32 self.mode = Belle2.SVDModeByte(144)
33
34 self.fadc_time = 0
35
A (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:72
Class to store SVD mode information.
Definition: SVDModeByte.h:69

Member Function Documentation

◆ event()

def event (   self)
event

Definition at line 41 of file test_shaperdigit_sorter.py.

41 def event(self):
42 '''event'''
43
44 for sensor, side, strip in self.digits:
45 d = self.svddigits.appendNew()
46 d.__assign__(Belle2.SVDShaperDigit(Belle2.VxdID(3, 1, sensor), side, strip, self.samples, self.fadc_time, self.mode))
47 print('\nGenerated digits:')
48 for digit in self.svddigits:
49 print("digit: sensor %s, side %s, strip %d" %
50 (digit.getSensorID(), 'u' if digit.isUStrip() else 'v', digit.getCellID()))
51
52
The SVD ShaperDigit class.
Class to uniquely identify a any structure of the PXD and SVD.
Definition: VxdID.h:33

◆ initialize()

def initialize (   self)
initialize

Definition at line 36 of file test_shaperdigit_sorter.py.

36 def initialize(self):
37 '''initialize'''
38
39 self.svddigits.registerInDataStore()
40

Member Data Documentation

◆ digits

digits

test digits

Definition at line 25 of file test_shaperdigit_sorter.py.

◆ fadc_time

fadc_time

FADC time.

Definition at line 34 of file test_shaperdigit_sorter.py.

◆ mode

mode

mode byte

Definition at line 32 of file test_shaperdigit_sorter.py.

◆ samples

samples

six samples

Definition at line 27 of file test_shaperdigit_sorter.py.

◆ svddigits

svddigits

shaper digits

Definition at line 23 of file test_shaperdigit_sorter.py.


The documentation for this class was generated from the following file: