Analysis-Utilities 26.9.9
C++/ROOT utilities for nuclear measurement data analysis
Loading...
Searching...
No Matches
BinaryUtils.hpp File Reference

Readers for CAEN and SOLARIS acquisition binary formats. More...

#include <TArrayS.h>
#include <TMath.h>
#include <TROOT.h>
#include <TString.h>
#include <TSystem.h>
#include <bitset>
#include <fstream>
#include <iostream>
#include <vector>
Include dependency graph for BinaryUtils.hpp:

Go to the source code of this file.

Classes

struct  RawHit
 Minimal CoMPASS hit: header fields only, no waveform. More...
class  BinaryReader
 Base for the binary readers: file handling plus a ReadEvent() contract. More...
class  CoMPASSData
 One decoded CoMPASS event, with header-bit and status-flag accessors. More...
class  CoMPASSReader
 Cursor over a CoMPASS binary file. More...
class  WaveDump742Data
 One decoded WaveDump event from a DT5742-family digitiser. More...
class  WaveDump742Reader
 Cursor over a WaveDump DT5742 binary file. More...
struct  SOLHit
 Lightweight SOL block: header fields only, traces stripped. More...
class  SOLData
 One decoded SOL block, optionally carrying its traces. More...
class  SOLReader
 Cursor over a SOLARIS DAQ .sol file. More...

Detailed Description

Readers for CAEN and SOLARIS acquisition binary formats.

Three readers share the BinaryReader base: CoMPASSReader for CAEN CoMPASS .bin, WaveDump742Reader for CAEN WaveDump DT5742 output, and SOLReader for SOLARIS DAQ .sol. Each owns one "current event" object that ReadEvent() overwrites in place, so a reader is a cursor over the file rather than a container.

Warning
The current-event object and any pointer obtained from it are invalidated by the next ReadEvent() call. Copy anything that must outlive the iteration — SOLReader::ToHit() exists for exactly this.
Note
This header declares the reader classes directly and defines no BinaryUtils symbol of its own. From PyROOT they are ROOT.CoMPASSReader, ROOT.WaveDump742Reader and ROOT.SOLReader.

Definition in file BinaryUtils.hpp.