Belle II Software  release-08-01-10
addECLCalDigitsModule Class Reference
Inheritance diagram for addECLCalDigitsModule:
Collaboration diagram for addECLCalDigitsModule:

Public Member Functions

def __init__ (self)
 
def initialize (self)
 
def event (self)
 

Public Attributes

 eventCounter
 count number of times event method is called (each time use different combinations of ECLCalDigits
 
 digitParams
 parameters to create custom ECLCalDigits
 
 energyThresh
 default energy threshold
 
 timeThresh
 default time threshold
 
 eclCalDigits
 ECLCalDigits datastore.
 

Detailed Description

Add combinations of ECLCalDigits above/below threshold to be counted as out of time

Definition at line 39 of file eventLevelClusteringInfo_countOutOfTime.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Prepare ECLCalDigits parameters

Definition at line 44 of file eventLevelClusteringInfo_countOutOfTime.py.

44  def __init__(self):
45  """
46  Prepare ECLCalDigits parameters
47  """
48  super().__init__()
49 
50 
51  self.eventCounter = 0
52 
53  aboveEnergyThresh = [True, False]
54  aboveTimeThresh = [True, False]
55  thresholdNames = ["aboveEnergythresh", "aboveTimethresh"]
56 
57  thresholdsPerRegion = [dict(zip(thresholdNames, thresholds))
58  for thresholds in itertools.product(aboveEnergyThresh, aboveTimeThresh)]
59 
60  fwdThresholds, brlThresholds, bwdThresholds = itertools.tee(thresholdsPerRegion, 3)
61 
62  regions = ["FWD", "BRL", "BWD"]
63 
64 
65  self.digitParams = [dict(zip(regions, thresholds))
66  for thresholds in itertools.product(fwdThresholds, brlThresholds, bwdThresholds)]
67 
68 
69  self.energyThresh = -1
70 
71  self.timeThresh = -1
72 

Member Function Documentation

◆ event()

def event (   self)
Add ECLCalDigits according to self.digitParams

Definition at line 80 of file eventLevelClusteringInfo_countOutOfTime.py.

◆ initialize()

def initialize (   self)
 module initialize - register ECLCalDigit in datastore 

Definition at line 73 of file eventLevelClusteringInfo_countOutOfTime.py.


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