![]() |
Belle II Software development
|
Public Member Functions | |
__init__ (self, exp, run, histName, pdfName, mode, window) | |
initialize (self) | |
terminate (self) | |
beginRun (self) | |
endRun (self) | |
event (self) | |
Public Attributes | |
exp = exp | |
internal copy of experiment number | |
run = run | |
internal copy of run number | |
histName = histName | |
internal copy of the pathname of the output histogram ROOT file | |
pdfName = pdfName | |
internal copy of the pathname of the output histogram PDF file | |
windowMode = windowModes[mode] | |
window mode as a string for histogram labels/titles | |
windowMinValue = window[0] | |
highest observed lookback-window value | |
windowMaxValue = window[1] | |
highest observed lookback-window value | |
windowStepValue = window[2] | |
lookback-window value step | |
# BKLM mapped-channel histograms | electIdToModuleId = bklmDB.fillDB() |
readout <-> detector map (from the information retrieved from the conditions database) | |
list | sectorFBToDC = [11, 15, 2, 6, 10, 14, 3, 7, 9, 13, 0, 4, 8, 12, 1, 5] |
map for sectorFB -> data concentrator | |
list | dcToSectorFB = [10, 14, 2, 6, 11, 15, 3, 7, 12, 8, 4, 0, 13, 9, 5, 1] |
map for data concentrator -> sectorFB | |
histogramFile = ROOT.TFile.Open(self.histName, "RECREATE") | |
Output ROOT TFile that will contain the histograms/scatterplots. | |
hist_mappedRPCTimeCal | |
histogram of RPC TDC - trigger value | |
dict | dict_mappedRPCTimeCalByWindow = {} |
dictionary of histograms of RPC TDC - trigger value, keyed by lookback-window value | |
dict | dict_nRawKLMs = {} |
dictionary of the number of RawKLM hits for each lookback-window value | |
dict | hist_mappedRPCTimeCalByWindow = self.dict_mappedRPCTimeCalByWindow[self.windowMinValue] |
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 KLMHit2ds | |
hist_occupancyBackwardXY | |
scatterplot of end view of backward BKLM for all KLMHit2ds | |
dict | hist_occupancyXYByWindow = self.dict_occupancyXYByWindow[self.windowMinValue] |
reference to the xy scatterplot for the currevent value of the lookback window parameter | |
dict | dict_occupancyXYByWindow = {} |
dictionary of scatterplots of end view of forward BKLM, keyed by lookback-window value | |
dict | dict_nHit2ds = {} |
dictionary of the number of KLMHit2ds for each lookback-window value | |
dict | dict_nEvents = {} |
dictionary of the number of events for each lookback-window value, for normalization | |
int | windowValue = -1 |
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) | |
Analyze RPC lookback-window parameter settings, fill histograms
Definition at line 23 of file EventInspectorLookback.py.
__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 57 of file EventInspectorLookback.py.
beginRun | ( | self | ) |
Handle begin of run: print diagnostic message
Definition at line 252 of file EventInspectorLookback.py.
endRun | ( | self | ) |
Handle end of run: print diagnostic message
Definition at line 257 of file EventInspectorLookback.py.
event | ( | self | ) |
Process one event: fill histograms
Definition at line 262 of file EventInspectorLookback.py.
initialize | ( | self | ) |
Handle job initialization: fill the mapping database, create histograms
Definition at line 93 of file EventInspectorLookback.py.
terminate | ( | self | ) |
Handle job termination: draw histograms, close output files
Definition at line 158 of file EventInspectorLookback.py.
|
static |
COPPER base identifier for BKLM readout.
Definition at line 27 of file EventInspectorLookback.py.
|
static |
bit position for layer-1 [0..14]; 0 is innermost
Definition at line 35 of file EventInspectorLookback.py.
|
static |
bit mask for layer-1 [0..15]; 0 is innermost and 14 is outermost
Definition at line 47 of file EventInspectorLookback.py.
|
static |
bit position for maxStrip-1 [0..47]
Definition at line 41 of file EventInspectorLookback.py.
|
static |
bit mask for maxStrip-1 [0..47]
Definition at line 53 of file EventInspectorLookback.py.
|
static |
bit mask for unique module identifier (end, sector, layer)
Definition at line 55 of file EventInspectorLookback.py.
|
static |
bit position for plane-1 [0..1]; 0 is inner-plane
Definition at line 33 of file EventInspectorLookback.py.
|
static |
bit mask for plane-1 [0..1]; 0 is inner-plane
Definition at line 45 of file EventInspectorLookback.py.
|
static |
bit position for section [0..1]; forward is 0
Definition at line 39 of file EventInspectorLookback.py.
|
static |
bit mask for section [0..1]; forward is 0
Definition at line 51 of file EventInspectorLookback.py.
|
static |
bit position for sector-1 [0..7]; 0 is on the +x axis and 2 is on the +y axis
Definition at line 37 of file EventInspectorLookback.py.
|
static |
bit mask for sector-1 [0..7]; 0 is on the +x axis and 2 is on the +y axis
Definition at line 49 of file EventInspectorLookback.py.
|
static |
bit position for strip-1 [0..47]
Definition at line 31 of file EventInspectorLookback.py.
|
static |
bit mask for strip-1 [0..47]
Definition at line 43 of file EventInspectorLookback.py.
list dcToSectorFB = [10, 14, 2, 6, 11, 15, 3, 7, 12, 8, 4, 0, 13, 9, 5, 1] |
map for data concentrator -> sectorFB
Definition at line 103 of file EventInspectorLookback.py.
dict dict_mappedRPCTimeCalByWindow = {} |
dictionary of histograms of RPC TDC - trigger value, keyed by lookback-window value
Definition at line 115 of file EventInspectorLookback.py.
dict dict_nEvents = {} |
dictionary of the number of events for each lookback-window value, for normalization
Definition at line 151 of file EventInspectorLookback.py.
dict dict_nHit2ds = {} |
dictionary of the number of KLMHit2ds for each lookback-window value
Definition at line 143 of file EventInspectorLookback.py.
dict dict_nRawKLMs = {} |
dictionary of the number of RawKLM hits for each lookback-window value
Definition at line 117 of file EventInspectorLookback.py.
dict dict_occupancyXYByWindow = {} |
dictionary of scatterplots of end view of forward BKLM, keyed by lookback-window value
Definition at line 141 of file EventInspectorLookback.py.
|
static |
COPPER base identifier for EKLM readout.
Definition at line 29 of file EventInspectorLookback.py.
# BKLM mapped-channel histograms electIdToModuleId = bklmDB.fillDB() |
readout <-> detector map (from the information retrieved from the conditions database)
Definition at line 99 of file EventInspectorLookback.py.
exp = exp |
internal copy of experiment number
Definition at line 74 of file EventInspectorLookback.py.
hist_mappedRPCTimeCal |
histogram of RPC TDC - trigger value
Definition at line 112 of file EventInspectorLookback.py.
dict hist_mappedRPCTimeCalByWindow = self.dict_mappedRPCTimeCalByWindow[self.windowMinValue] |
reference to the RPC-time histogram for the currevent value of the lookback window parameter
Definition at line 125 of file EventInspectorLookback.py.
hist_occupancyBackwardXY |
scatterplot of end view of backward BKLM for all KLMHit2ds
Definition at line 134 of file EventInspectorLookback.py.
hist_occupancyForwardXY |
scatterplot of end view of forward BKLM for all KLMHit2ds
Definition at line 130 of file EventInspectorLookback.py.
dict hist_occupancyXYByWindow = self.dict_occupancyXYByWindow[self.windowMinValue] |
reference to the xy scatterplot for the currevent value of the lookback window parameter
Definition at line 138 of file EventInspectorLookback.py.
histName = histName |
internal copy of the pathname of the output histogram ROOT file
Definition at line 78 of file EventInspectorLookback.py.
histogramFile = ROOT.TFile.Open(self.histName, "RECREATE") |
Output ROOT TFile that will contain the histograms/scatterplots.
Definition at line 105 of file EventInspectorLookback.py.
pdfName = pdfName |
internal copy of the pathname of the output histogram PDF file
Definition at line 80 of file EventInspectorLookback.py.
run = run |
internal copy of run number
Definition at line 76 of file EventInspectorLookback.py.
list sectorFBToDC = [11, 15, 2, 6, 10, 14, 3, 7, 9, 13, 0, 4, 8, 12, 1, 5] |
map for sectorFB -> data concentrator
Definition at line 101 of file EventInspectorLookback.py.
windowMaxValue = window[1] |
highest observed lookback-window value
Definition at line 88 of file EventInspectorLookback.py.
windowMinValue = window[0] |
highest observed lookback-window value
Definition at line 86 of file EventInspectorLookback.py.
windowMode = windowModes[mode] |
window mode as a string for histogram labels/titles
Definition at line 84 of file EventInspectorLookback.py.
windowStepValue = window[2] |
lookback-window value step
Definition at line 90 of file EventInspectorLookback.py.
int windowValue = -1 |
cached value of the lookback-window value, to avoid unnecessary reassignments-to-same-value in event()
Definition at line 156 of file EventInspectorLookback.py.