![]() |
Belle II Software development
|
Public Member Functions | |
__init__ (self, exp, run, eventPdfName, maxDisplays, minRPCHits, minMuidHits) | |
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 | |
eventPdfName = eventPdfName | |
internal copy of the pathname of the output event-display PDF file | |
maxDisplays = maxDisplays | |
internal copy of the maximum number of event displays to write | |
minRPCHits = minRPCHits | |
internal copy of the minimum number of RPC KLMHit2ds in any sector for event display | |
minMuidHits = minMuidHits | |
internal copy of the minimum number of MuidHits in the event for event display | |
int | eventCounter = 0 |
event counter (needed for PDF table of contents' ordinal event#) | |
int | eventDisplays = 0 |
event-display counter | |
str | lastTitle = '' |
title of the last-drawn event display (needed for PDF table of contents' last event) | |
eventCanvas = ROOT.TCanvas("eventCanvas", self.eventPdfName, 3200, 1600) | |
TCanvas on which event displays will be drawn. | |
list | cosine = [0, 0, 0, 0, 0, 0, 0, 0] |
table of cosines for the BKLM-sector normals | |
list | sine = [0, 0, 0, 0, 0, 0, 0, 0] |
table of sines for the BKLM-sector normals | |
hist_XY = ROOT.TH2F('XY', ' ;x;y', 10, -345.0, 345.0, 10, -345.0, 345.0) | |
blank scatterplot to define the bounds of the BKLM end view | |
hist_ZY = ROOT.TH2F('ZY', ' ;z;y', 10, -345.0, 345.0, 10, -345.0, 345.0) | |
blank scatterplot to define the bounds of the BKLM side view | |
list | hist_XYS = [0, 0, 0, 0, 0, 0, 0, 0] |
list of blank scatterplots to define the per-sector bounds of the BKLM end view | |
hist_ZYS = ROOT.TH2F('ZYS', ' ;z;y', 10, -150.0, 150.0, 10, 125.0, 425.0) | |
blank scatterplot to define the per-sector bounds of the rotated BKLM side view | |
list | bklmXY = [] |
list of line-segment (x,y) points for the BKLM end view | |
list | bklmZY = [] |
list of line-segment (z,y) points for the BKLM side view | |
list | bklmZYL = [] |
list of line-segment (z,y) points for the BKLM sector's zoomed and rotated side view | |
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 | |
int | t0Cal = 312 |
RPC-time calibration adjustment (ns) for rawKLMs. | |
int | t0Cal2d = 308 |
RPC-time calibration adjustment (ns) for KLMHit2ds. | |
int | ct0Cal = 455 |
scint-ctime calibration adjustment (ns) for rawKLMs | |
int | ct0Cal2d = 520 |
scint-ctime calibration adjustment (ns) for KLMHit2ds | |
list | t0RPC = [8, -14, -6, -14, -2, 10, 9, 13, 0, -10, -14, -20, 2, 6, 14, 11] |
per-sector variations in RPC-time calibration adjustment (ns) for rawKLMs | |
list | ct0Scint = [-1, -33, -46, -33, -2, 32, 51, 32, 0, -32, -45, -33, -4, 34, 45, 27] |
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.
__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.
beginRun | ( | self | ) |
Handle begin of run: print diagnostic message
Definition at line 320 of file EventDisplayer.py.
endRun | ( | self | ) |
Handle end of run: print diagnostic message
Definition at line 325 of file EventDisplayer.py.
event | ( | self | ) |
Process one event: (optionally) draw event display
Definition at line 330 of file EventDisplayer.py.
initialize | ( | self | ) |
Handle job initialization: fill the mapping database, create histograms, open the event-display file
Definition at line 93 of file EventDisplayer.py.
terminate | ( | self | ) |
Handle job termination: close event-display file
Definition at line 313 of file EventDisplayer.py.
|
static |
COPPER base identifier for BKLM readout.
Definition at line 32 of file EventDisplayer.py.
|
static |
bit position for layer-1 [0..14]; 0 is innermost
Definition at line 40 of file EventDisplayer.py.
|
static |
bit mask for layer-1 [0..15]; 0 is innermost and 14 is outermost
Definition at line 52 of file EventDisplayer.py.
|
static |
bit position for maxStrip-1 [0..47]
Definition at line 46 of file EventDisplayer.py.
|
static |
bit mask for maxStrip-1 [0..47]
Definition at line 58 of file EventDisplayer.py.
|
static |
bit mask for unique module identifier (end, sector, layer)
Definition at line 60 of file EventDisplayer.py.
|
static |
bit position for plane-1 [0..1]; 0 is inner-plane
Definition at line 38 of file EventDisplayer.py.
|
static |
bit mask for plane-1 [0..1]; 0 is inner-plane
Definition at line 50 of file EventDisplayer.py.
|
static |
bit position for section [0..1]; forward is 0
Definition at line 44 of file EventDisplayer.py.
|
static |
bit mask for section [0..1]; forward is 0
Definition at line 56 of file EventDisplayer.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 42 of file EventDisplayer.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 54 of file EventDisplayer.py.
|
static |
bit position for strip-1 [0..47]
Definition at line 36 of file EventDisplayer.py.
|
static |
bit mask for strip-1 [0..47]
Definition at line 48 of file EventDisplayer.py.
list bklmXY = [] |
list of line-segment (x,y) points for the BKLM end view
Definition at line 150 of file EventDisplayer.py.
list bklmZY = [] |
list of line-segment (z,y) points for the BKLM side view
Definition at line 199 of file EventDisplayer.py.
list bklmZYL = [] |
list of line-segment (z,y) points for the BKLM sector's zoomed and rotated side view
Definition at line 283 of file EventDisplayer.py.
list cosine = [0, 0, 0, 0, 0, 0, 0, 0] |
table of cosines for the BKLM-sector normals
Definition at line 108 of file EventDisplayer.py.
ct0Cal = 455 |
scint-ctime calibration adjustment (ns) for rawKLMs
Definition at line 305 of file EventDisplayer.py.
ct0Cal2d = 520 |
scint-ctime calibration adjustment (ns) for KLMHit2ds
Definition at line 307 of file EventDisplayer.py.
list ct0Scint = [-1, -33, -46, -33, -2, 32, 51, 32, 0, -32, -45, -33, -4, 34, 45, 27] |
per-sector variations in scint-ctime calibration adjustment (ns) for rawKLMs
Definition at line 311 of file EventDisplayer.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 299 of file EventDisplayer.py.
|
static |
COPPER base identifier for EKLM readout.
Definition at line 34 of file EventDisplayer.py.
electIdToModuleId = bklmDB.fillDB() |
readout <-> detector map (from the information retrieved from the conditions database)
Definition at line 295 of file EventDisplayer.py.
eventCanvas = ROOT.TCanvas("eventCanvas", self.eventPdfName, 3200, 1600) |
TCanvas on which event displays will be drawn.
Definition at line 99 of file EventDisplayer.py.
int eventCounter = 0 |
event counter (needed for PDF table of contents' ordinal event#)
Definition at line 87 of file EventDisplayer.py.
int eventDisplays = 0 |
event-display counter
Definition at line 89 of file EventDisplayer.py.
eventPdfName = eventPdfName |
internal copy of the pathname of the output event-display PDF file
Definition at line 79 of file EventDisplayer.py.
exp = exp |
internal copy of experiment number
Definition at line 75 of file EventDisplayer.py.
hist_XY = ROOT.TH2F('XY', ' ;x;y', 10, -345.0, 345.0, 10, -345.0, 345.0) |
blank scatterplot to define the bounds of the BKLM end view
Definition at line 116 of file EventDisplayer.py.
list hist_XYS = [0, 0, 0, 0, 0, 0, 0, 0] |
list of blank scatterplots to define the per-sector bounds of the BKLM end view
Definition at line 128 of file EventDisplayer.py.
hist_ZY = ROOT.TH2F('ZY', ' ;z;y', 10, -345.0, 345.0, 10, -345.0, 345.0) |
blank scatterplot to define the bounds of the BKLM side view
Definition at line 119 of file EventDisplayer.py.
hist_ZYS = ROOT.TH2F('ZYS', ' ;z;y', 10, -150.0, 150.0, 10, 125.0, 425.0) |
blank scatterplot to define the per-sector bounds of the rotated BKLM side view
Definition at line 146 of file EventDisplayer.py.
lastTitle = '' |
title of the last-drawn event display (needed for PDF table of contents' last event)
Definition at line 91 of file EventDisplayer.py.
maxDisplays = maxDisplays |
internal copy of the maximum number of event displays to write
Definition at line 81 of file EventDisplayer.py.
minMuidHits = minMuidHits |
internal copy of the minimum number of MuidHits in the event for event display
Definition at line 85 of file EventDisplayer.py.
minRPCHits = minRPCHits |
internal copy of the minimum number of RPC KLMHit2ds in any sector for event display
Definition at line 83 of file EventDisplayer.py.
run = run |
internal copy of run number
Definition at line 77 of file EventDisplayer.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 297 of file EventDisplayer.py.
list sine = [0, 0, 0, 0, 0, 0, 0, 0] |
table of sines for the BKLM-sector normals
Definition at line 110 of file EventDisplayer.py.
int t0Cal = 312 |
RPC-time calibration adjustment (ns) for rawKLMs.
Definition at line 301 of file EventDisplayer.py.
t0Cal2d = 308 |
RPC-time calibration adjustment (ns) for KLMHit2ds.
Definition at line 303 of file EventDisplayer.py.
list t0RPC = [8, -14, -6, -14, -2, 10, 9, 13, 0, -10, -14, -20, 2, 6, 14, 11] |
per-sector variations in RPC-time calibration adjustment (ns) for rawKLMs
Definition at line 309 of file EventDisplayer.py.