Belle II Software  release-06-01-15
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 40 of file eventLevelClusteringInfo_countOutOfTime.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Prepare ECLCalDigits parameters

Definition at line 45 of file eventLevelClusteringInfo_countOutOfTime.py.

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

Member Function Documentation

◆ event()

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

Definition at line 81 of file eventLevelClusteringInfo_countOutOfTime.py.

◆ initialize()

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

Definition at line 74 of file eventLevelClusteringInfo_countOutOfTime.py.


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