Raw Data Decoder
Classes of the Raw Data Decoder that convert the raw data collected by the BM@N DAQ into DIGI files with the detector digits for the reconstruction.
Processing chain
The decoding is started by macro/run/run_raw_bmn.C (see macro/run) and consists of two steps managed by BmnRawDataDecoder:
- Conversion: BmnRawSource reads the raw DAQ file (*.data, also compressed, see compression) and writes the data of the readout electronics (ADC, TDC, TQDC, MSC, synchronization, trigger and T0 data, see base/raw) and the spill metadata to an intermediate ROOT file.
- Decoding: BmnDecoder converts the electronics data into the detector digits using the channel mappings and calibrations of the period, calculates the pedestals and noisy channels of the strip detectors and writes the DIGI file with the event headers.
The channel mappings and calibration files are taken from the input and parameters directories, and the decoder settings from config/bmnconf.json.
Classes
Steering
Detector decoders (raw to digits)
| Class | Detector |
| BmnGemRaw2Digit | GEM |
| BmnSiliconRaw2Digit | Forward Silicon Detector |
| BmnSiBTRaw2Digit | Silicon Beam Tracker |
| BmnVspRaw2Digit | Vertex Silicon Plane |
| BmnCscRaw2Digit | Cathode Strip Chambers |
| BmnTof1Raw2Digit | TOF-400 |
| BmnTof701Raw2Digit, BmnTof2Raw2DigitNew | TOF-700 (new and old implementation) |
| BmnDchRaw2Digit, BmnMwpcRaw2Digit | Drift chambers and multi-wire proportional chambers |
| BmnTrigRaw2Digit | Trigger detectors (BC1, BC2, VC, BD, SiMD, etc.) |
| BmnMscRaw2Digit | Scaler (MSC) counters |
| BmnFHCalRaw2Digit, BmnHodoRaw2Digit, BmnScWallRaw2Digit, BmnNdetRaw2Digit | Forward hadron calorimeter, hodoscope, scintillation wall, neutron detector (waveform digitizers) |
| BmnHgndRaw2Digit, BmnHgndCalibration.h | High granular neutron detector and its time-over-threshold calibration |
| BmnZDCRaw2Digit, BmnECALRaw2Digit | Zero degree calorimeter and electromagnetic calorimeter |
| BmnProfRaw2Digit, BmnProfAsic2Raw | Beam profilometer |
Signal processing
Other files
| File | Description |
| StripView.C | Macro to view the strip signals of the GEM and silicon detectors |
Subdirectories
| Directory | Description |
| fles_cbm | STS-XYTER message format from the CBM software |
| fles_ipc | Timeslice and microslice data format of the CBM FLES (First-Level Event Selector) |
Library
Built into the BmnDecoder library; the ROOT dictionary is defined in DecoderLinkDef.h.