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

Public Member Functions | |
| def | __init__ (self, exp, run, histName, pdfName) |
| def | makeGraph (self, x, y) |
| def | makeText (self, x, y, s) |
| def | initialize (self) |
| def | terminate (self) |
| def | beginRun (self) |
| def | endRun (self) |
| def | event (self, eventHits, tt_ctime, raw_time) |
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 | |
| histogramFile | |
| Output ROOT TFile that will contain the histograms/scatterplots. | |
| hist_ttc_trigtime | |
| histogram of the tt_ctime relative to triggertime | |
| hist_rawKLMlane | |
| histogram of the hit's lane | |
| hist_rawKLMsizeMultihit | |
| histogram of number of hits, including multiple entries on one readout channel | |
| hist_rawKLMsize | |
| histogram of number of hits, at most one entry per readout channel | |
| hist_PerChannelMultiplicity | |
| scatterplot of multiplicity of entries in one readout channel vs lane/axis | |
| hist_RPCLaneAxisOccupancy | |
| scatterplot of number of mapped RPC hits by lane/axis vs sector, at most one entry per readout channel | |
| hist_ScintLaneAxisOccupancy | |
| scatterplot of number of mapped scint hits by lane/axis vs sector, at most one entry per readout channel | |
| hist_ChannelOccupancy | |
| scatterplots of channel occupancy (1 hit per readout channel) for each axis | |
| hist_ChannelOccupancyAL | |
| histograms of channel occupancy (1 hit per readout channel), indexed by axis/lane | |
| hist_RPCTimeLowBitsBySector | |
| scatterplot of RPC TDC low-order bits vs sector (should be 0 since granularity is 4 ns) | |
| hist_RPCTime | |
| histogram of RPC TDC value relative to event's REVO9 trigger time in last word of event | |
| hist_RPCTime2 | |
| histogram of RPC TDC value relative to event's ctime in event header | |
| hist_RPCTimePerLayerA0 | |
| histograms of RPC TDC value relative to event's trigger time for axis 0, indexed by lane | |
| hist_RPCTimePerLayerA1 | |
| histograms of RPC TDC value relative to event's trigger time for axis 1, indexed by lane | |
| hist_RPCTime2PerLayerA0 | |
| histograms of RPC TDC value relative to event's ctime for axis 0, indexed by lane | |
| hist_RPCTime2PerLayerA1 | |
| histograms of RPC TDC value relative to event's ctime for axis 1, indexed by lane | |
| hist_RPCTdcRange | |
| histogram of RPC TDC range in event | |
| hist_RPCRevotimeRange | |
| histogram of RPC REVO9 range in event | |
| hist_revotimeRPCtdc | |
| scatterplot of RPC REVO9 range vs TDC value in event | |
| hist_revotimeRPCtdc2 | |
| scatterplot of RPC REVO9 range vs TDC value corrected for DC-processing delay in event | |
| hist_jRPCtdc | |
| scatterplot of RPC calibrated time vs hit's index | |
| hist_jRPCtdc2 | |
| scatterplot of RPC calibrated time vs hit's index, corrected for DC-processing delay | |
| hist_ScintTimeLowBitsBySector | |
| scatterplot of scint TDC low-order bits vs sector | |
| hist_ScintTime | |
| histogram of scint TDC value relative to event's trigger time | |
| hist_ScintCtime | |
| histogram of scint CTIME value relative to event's ctime | |
| hist_ScintCtime0 | |
| histogram of scint CTIME value relative to event's trigger time | |
| hist_ScintCtimeRange | |
| histogram of scint CTIME range 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) | |
Fill BKLM histograms of values from RawKLMs, KLMDigits, BKLMHit1ds, and BKLMHit2ds; (optionally) draw event displays from these data-objects.
Definition at line 18 of file EventInspectorPocketDAQ.py.
| def __init__ | ( | self, | |
| exp, | |||
| run, | |||
| histName, | |||
| pdfName | |||
| ) |
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
eventPdfName (str): path name of the output event-display PDF file
maxDisplays (int): max # of events displays to write
minRPCHits (int): min # of RPC BKLMHit2ds in any sector for event display
Definition at line 53 of file EventInspectorPocketDAQ.py.
| def beginRun | ( | self | ) |
Handle begin of run: print diagnostic message
Definition at line 341 of file EventInspectorPocketDAQ.py.
| def endRun | ( | self | ) |
Handle end of run: print diagnostic message
Definition at line 345 of file EventInspectorPocketDAQ.py.
| def event | ( | self, | |
| eventHits, | |||
| tt_ctime, | |||
| raw_time | |||
| ) |
Process one event: fill histograms
Definition at line 349 of file EventInspectorPocketDAQ.py.
| def initialize | ( | self | ) |
Handle job initialization: create histograms
Definition at line 105 of file EventInspectorPocketDAQ.py.
| def makeGraph | ( | self, | |
| x, | |||
| y | |||
| ) |
Create and return a ROOT TGraph Arguments: x[] (real): x coordinates y[] (real): y coordinates
Definition at line 75 of file EventInspectorPocketDAQ.py.
| def makeText | ( | self, | |
| x, | |||
| y, | |||
| s | |||
| ) |
Create and return a ROOT TLatex with the following properties: size = 0.04, color = red, alignment = middle centre, angle = 90 degrees Arguments: x (real): x coordinate y (real): y coordinate s (str): character string
Definition at line 89 of file EventInspectorPocketDAQ.py.
| def terminate | ( | self | ) |
Handle job termination: draw histograms, close output files
Definition at line 260 of file EventInspectorPocketDAQ.py.