![]() |
Belle II Software
release-08-02-05
|


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.