Belle II Software development
|
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 KLMHit2ds | |
hist_occupancyBackwardXY | |
scatterplot of end view of backward BKLM for all KLMHit2ds | |
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 KLMHit2ds 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) | |
Analyze RPC lookback-window parameter settings, fill histograms
Definition at line 23 of file EventInspectorLookback.py.
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 57 of file EventInspectorLookback.py.
def beginRun | ( | self | ) |
Handle begin of run: print diagnostic message
Definition at line 252 of file EventInspectorLookback.py.
def endRun | ( | self | ) |
Handle end of run: print diagnostic message
Definition at line 257 of file EventInspectorLookback.py.
def event | ( | self | ) |
Process one event: fill histograms
Definition at line 262 of file EventInspectorLookback.py.
def initialize | ( | self | ) |
Handle job initialization: fill the mapping database, create histograms
Definition at line 93 of file EventInspectorLookback.py.
def 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.
dcToSectorFB |
map for data concentrator -> sectorFB
Definition at line 103 of file EventInspectorLookback.py.
dict_mappedRPCTimeCalByWindow |
dictionary of histograms of RPC TDC - trigger value, keyed by lookback-window value
Definition at line 115 of file EventInspectorLookback.py.
dict_nEvents |
dictionary of the number of events for each lookback-window value, for normalization
Definition at line 151 of file EventInspectorLookback.py.
dict_nHit2ds |
dictionary of the number of KLMHit2ds for each lookback-window value
Definition at line 143 of file EventInspectorLookback.py.
dict_nRawKLMs |
dictionary of the number of RawKLM hits for each lookback-window value
Definition at line 117 of file EventInspectorLookback.py.
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.
electIdToModuleId |
readout <-> detector map (from the information retrieved from the conditions database)
Definition at line 99 of file EventInspectorLookback.py.
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.
hist_mappedRPCTimeCalByWindow |
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.
hist_occupancyXYByWindow |
reference to the xy scatterplot for the currevent value of the lookback window parameter
Definition at line 138 of file EventInspectorLookback.py.
histName |
internal copy of the pathname of the output histogram ROOT file
Definition at line 78 of file EventInspectorLookback.py.
histogramFile |
Output ROOT TFile that will contain the histograms/scatterplots.
Definition at line 105 of file EventInspectorLookback.py.
pdfName |
internal copy of the pathname of the output histogram PDF file
Definition at line 80 of file EventInspectorLookback.py.
run |
internal copy of run number
Definition at line 76 of file EventInspectorLookback.py.
sectorFBToDC |
map for sectorFB -> data concentrator
Definition at line 101 of file EventInspectorLookback.py.
windowMaxValue |
highest observed lookback-window value
Definition at line 88 of file EventInspectorLookback.py.
windowMinValue |
highest observed lookback-window value
Definition at line 86 of file EventInspectorLookback.py.
windowMode |
window mode as a string for histogram labels/titles
Definition at line 84 of file EventInspectorLookback.py.
windowStepValue |
lookback-window value step
Definition at line 90 of file EventInspectorLookback.py.
windowValue |
cached value of the lookback-window value, to avoid unnecessary reassignments-to-same-value in event()
Definition at line 156 of file EventInspectorLookback.py.