DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq
sourcecode
rawdatautils
python
rawdatautils
utilities
wibeth
__init__.py
Go to the documentation of this file.
1
import
daqdataformats
2
import
detdataformats
3
4
def
print_header
(wib_frame,prefix="\t"):
5
dheader = wib_frame.get_daqheader()
6
print(f
'{prefix}DAQVersion: {dheader.version}'
)
7
print(f
'{prefix}Detector ID: {dheader.det_id}'
)
8
print(f
'{prefix}(Crate,Slot,Link): ({dheader.crate_id},{dheader.slot_id},{dheader.stream_id})'
)
9
print(f
'{prefix}Timestamp: {dheader.timestamp}'
)
10
11
wheader = wib_frame.get_wibheader()
12
print(f
'{prefix}WIBVersion: {wheader.version}'
)
13
print(f
'{prefix}Channel (FEMB,COLDATA): {wheader.channel} ({(wheader.channel>>1)&0x3},{wheader.channel&0x1})'
)
14
print(f
'{prefix}Colddata Timestamp (0,1): ({wheader.colddata_timestamp_0},{wheader.colddata_timestamp_1})'
)
15
print(f
'{prefix}CRC Error: {wheader.crc_err}'
)
16
print(f
'{prefix}Link Valid: {wheader.link_valid}'
)
17
print(f
'{prefix}LOL: {wheader.lol}'
)
18
print(f
'{prefix}WIB_SYNC: {wheader.wib_sync}'
)
19
print(f
'{prefix}FEMB_SYNC: {wheader.femb_sync}'
)
20
print(f
'{prefix}Pulser: {wheader.pulser}'
)
21
print(f
'{prefix}Calibration: {wheader.calibration}'
)
22
print(f
'{prefix}Ready: {wheader.ready}'
)
23
print(f
'{prefix}Context: {wheader.context}'
)
rawdatautils.utilities.wibeth.print_header
print_header(wib_frame, prefix="\t")
Definition
__init__.py:4
Generated on Sat Jun 28 2025 for DUNE-DAQ by
1.12.0