Belle II Software
release-08-01-10
|
Public Member Functions | |
def | __init__ (self, exp, run, eventPdfName, maxDisplays, minRPCHits, minMuidHits) |
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 | |
eventPdfName | |
internal copy of the pathname of the output event-display PDF file | |
maxDisplays | |
internal copy of the maximum number of event displays to write | |
minRPCHits | |
internal copy of the minimum number of RPC KLMHit2ds in any sector for event display | |
minMuidHits | |
internal copy of the minimum number of MuidHits in the event for event display | |
eventCounter | |
event counter (needed for PDF table of contents' ordinal event#) | |
eventDisplays | |
event-display counter | |
lastTitle | |
title of the last-drawn event display (needed for PDF table of contents' last event) | |
eventCanvas | |
TCanvas on which event displays will be drawn. | |
cosine | |
table of cosines for the BKLM-sector normals | |
sine | |
table of sines for the BKLM-sector normals | |
hist_XY | |
blank scatterplot to define the bounds of the BKLM end view | |
hist_ZY | |
blank scatterplot to define the bounds of the BKLM side view | |
hist_XYS | |
list of blank scatterplots to define the per-sector bounds of the BKLM end view | |
hist_ZYS | |
blank scatterplot to define the per-sector bounds of the rotated BKLM side view | |
bklmXY | |
list of line-segment (x,y) points for the BKLM end view | |
bklmZY | |
list of line-segment (z,y) points for the BKLM side view | |
bklmZYL | |
list of line-segment (z,y) points for the BKLM sector's zoomed and rotated side view | |
electIdToModuleId | |
readout <-> detector map (from the information retrieved from the conditions database) | |
sectorFBToDC | |
map for sectorFB -> data concentrator | |
dcToSectorFB | |
map for data concentrator -> sectorFB | |
t0Cal | |
RPC-time calibration adjustment (ns) for rawKLMs. | |
t0Cal2d | |
RPC-time calibration adjustment (ns) for KLMHit2ds. | |
ct0Cal | |
scint-ctime calibration adjustment (ns) for rawKLMs | |
ct0Cal2d | |
scint-ctime calibration adjustment (ns) for KLMHit2ds | |
t0RPC | |
per-sector variations in RPC-time calibration adjustment (ns) for rawKLMs | |
ct0Scint | |
per-sector variations in scint-ctime calibration adjustment (ns) for rawKLMs | |
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) | |
Draw BKLM event displays from KLMHit2ds, ExtHits, and MuidHits.
Definition at line 28 of file EventDisplayer.py.
def __init__ | ( | self, | |
exp, | |||
run, | |||
eventPdfName, | |||
maxDisplays, | |||
minRPCHits, | |||
minMuidHits | |||
) |
Constructor Arguments: exp (str): formatted experiment number run (str): formatter run number eventPdfName (str): path name of the output event-display PDF file maxDisplays (int): max # of events displays to write minRPCHits (int): min # of RPC KLMHit2ds in any sector for event display minMuidHits (int): min # of MuidHits in the event for event display
Definition at line 62 of file EventDisplayer.py.
def beginRun | ( | self | ) |
Handle begin of run: print diagnostic message
Definition at line 320 of file EventDisplayer.py.
def endRun | ( | self | ) |
Handle end of run: print diagnostic message
Definition at line 325 of file EventDisplayer.py.
def event | ( | self | ) |
Process one event: (optionally) draw event display
Definition at line 330 of file EventDisplayer.py.
def initialize | ( | self | ) |
Handle job initialization: fill the mapping database, create histograms, open the event-display file
Definition at line 93 of file EventDisplayer.py.
def terminate | ( | self | ) |
Handle job termination: close event-display file
Definition at line 313 of file EventDisplayer.py.