Belle II Software  release-05-02-19
EventInspectorLookback Class Reference
Inheritance diagram for EventInspectorLookback:
Collaboration diagram for EventInspectorLookback:

Public Member Functions

def __init__ (self, exp, run, histName, pdfName, mode, window)
 
def initialize (self)
 
def terminate (self)
 
def beginRun (self)
 
def endRun (self)
 
def event (self)
 

Public Attributes

 exp
 internal copy of experiment number
 
 run
 internal copy of run number
 
 histName
 internal copy of the pathname of the output histogram ROOT file
 
 pdfName
 internal copy of the pathname of the output histogram PDF file
 
 windowMode
 window mode as a string for histogram labels/titles
 
 windowMinValue
 highest observed lookback-window value
 
 windowMaxValue
 highest observed lookback-window value
 
 windowStepValue
 lookback-window value step
 
 electIdToModuleId
 readout <-> detector map (from the information retrieved from the conditions database)
 
 sectorFBToDC
 map for sectorFB -> data concentrator
 
 dcToSectorFB
 map for data concentrator -> sectorFB
 
 histogramFile
 Output ROOT TFile that will contain the histograms/scatterplots.
 
 hist_mappedRPCTimeCal
 histogram of RPC TDC - trigger value
 
 dict_mappedRPCTimeCalByWindow
 dictionary of histograms of RPC TDC - trigger value, keyed by lookback-window value
 
 dict_nRawKLMs
 dictionary of the number of RawKLM hits for each lookback-window value
 
 hist_mappedRPCTimeCalByWindow
 reference to the RPC-time histogram for the currevent value of the lookback window parameter
 
 hist_occupancyForwardXY
 scatterplot of end view of forward BKLM for all BKLMHit2ds
 
 hist_occupancyBackwardXY
 scatterplot of end view of backward BKLM for all BKLMHit2ds
 
 hist_occupancyXYByWindow
 reference to the xy scatterplot for the currevent value of the lookback window parameter
 
 dict_occupancyXYByWindow
 dictionary of scatterplots of end view of forward BKLM, keyed by lookback-window value
 
 dict_nHit2ds
 dictionary of the number of BKLMHit2ds for each lookback-window value
 
 dict_nEvents
 dictionary of the number of events for each lookback-window value, for normalization
 
 windowValue
 cached value of the lookback-window value, to avoid unnecessary reassignments-to-same-value in event()
 

Static Public Attributes

int BKLM_ID = 0x07000000
 COPPER base identifier for BKLM readout.
 
int EKLM_ID = 0x08000000
 COPPER base identifier for EKLM readout.
 
int BKLM_STRIP_BIT = 0
 bit position for strip-1 [0..47]
 
int BKLM_PLANE_BIT = 6
 bit position for plane-1 [0..1]; 0 is inner-plane
 
int BKLM_LAYER_BIT = 7
 bit position for layer-1 [0..14]; 0 is innermost
 
int BKLM_SECTOR_BIT = 11
 bit position for sector-1 [0..7]; 0 is on the +x axis and 2 is on the +y axis
 
int BKLM_SECTION_BIT = 14
 bit position for section [0..1]; forward is 0
 
int BKLM_MAXSTRIP_BIT = 15
 bit position for maxStrip-1 [0..47]
 
int BKLM_STRIP_MASK = 0x3f
 bit mask for strip-1 [0..47]
 
tuple BKLM_PLANE_MASK = (1 << BKLM_PLANE_BIT)
 bit mask for plane-1 [0..1]; 0 is inner-plane
 
tuple BKLM_LAYER_MASK = (15 << BKLM_LAYER_BIT)
 bit mask for layer-1 [0..15]; 0 is innermost and 14 is outermost
 
tuple BKLM_SECTOR_MASK = (7 << BKLM_SECTOR_BIT)
 bit mask for sector-1 [0..7]; 0 is on the +x axis and 2 is on the +y axis
 
tuple BKLM_SECTION_MASK = (1 << BKLM_SECTION_BIT)
 bit mask for section [0..1]; forward is 0
 
tuple BKLM_MAXSTRIP_MASK = (63 << BKLM_MAXSTRIP_BIT)
 bit mask for maxStrip-1 [0..47]
 
tuple BKLM_MODULEID_MASK = (BKLM_SECTION_MASK | BKLM_SECTOR_MASK | BKLM_LAYER_MASK)
 bit mask for unique module identifier (end, sector, layer)
 

Detailed Description

Analyze RPC lookback-window parameter settings, fill histograms

Definition at line 17 of file EventInspectorLookback.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  exp,
  run,
  histName,
  pdfName,
  mode,
  window 
)
Constructor

Arguments:
    exp (str): formatted experiment number
    run (str): formatter run number
    histName (str): path name of the output histogram ROOT file
    pdfName (str): path name of the output histogram PDF file
    mode (int): specifies the lookback-window mode
        0: coarse window start values
        1: coarse window width values
        2: fine window start values
        3: fine window width values
    window (int, int, int): specifies the lookback-window min, max and step values

Definition at line 51 of file EventInspectorLookback.py.

51  def __init__(self, exp, run, histName, pdfName, mode, window):
52  """Constructor
53 
54  Arguments:
55  exp (str): formatted experiment number
56  run (str): formatter run number
57  histName (str): path name of the output histogram ROOT file
58  pdfName (str): path name of the output histogram PDF file
59  mode (int): specifies the lookback-window mode
60  0: coarse window start values
61  1: coarse window width values
62  2: fine window start values
63  3: fine window width values
64  window (int, int, int): specifies the lookback-window min, max and step values
65  """
66  super().__init__()
67 
68  self.exp = exp
69 
70  self.run = run
71 
72  self.histName = histName
73 
74  self.pdfName = pdfName
75 
76  windowModes = {0: "coarse start", 1: "coarse width", 2: "fine start", 3: "fine width"}
77 
78  self.windowMode = windowModes[mode]
79 
80  self.windowMinValue = window[0]
81 
82  self.windowMaxValue = window[1]
83 
84  self.windowStepValue = window[2]
85  print("Mode = {0} start = {1} end = {2} step = {3}".format(mode, window[0], window[1], window[2]))
86 

Member Function Documentation

◆ beginRun()

def beginRun (   self)
Handle begin of run: print diagnostic message

Definition at line 246 of file EventInspectorLookback.py.

◆ endRun()

def endRun (   self)
Handle end of run: print diagnostic message

Definition at line 251 of file EventInspectorLookback.py.

◆ event()

def event (   self)
Process one event: fill histograms

Definition at line 256 of file EventInspectorLookback.py.

◆ initialize()

def initialize (   self)
Handle job initialization: fill the mapping database, create histograms

Definition at line 87 of file EventInspectorLookback.py.

◆ terminate()

def terminate (   self)
Handle job termination: draw histograms, close output files

Definition at line 152 of file EventInspectorLookback.py.


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