|
MUSIC unknown
Analysis for the MUSIC active-target ionization chamber
|
Persistence for a run's CoMPASS global header. More...
#include <BinaryToRoot.hpp>
Static Public Member Functions | |
| static TString | HeaderSidecarName (Int_t run) |
| Sidecar filename for a run. | |
| static void | WriteHeaderSidecar (Int_t run, UShort_t header) |
| Write a run's global header to its sidecar. | |
| static Bool_t | ReadHeaderSidecar (Int_t run, UShort_t &header) |
| Read a run's global header back from its sidecar. | |
Persistence for a run's CoMPASS global header.
The global header says which fields each record in a CoMPASS binary carries, and it is read once when the binary is first converted. Later stages work from the ROOT output and no longer have the binary to hand, so the header is written beside the ROOT files as a small sidecar and read back when needed.
Definition at line 21 of file BinaryToRoot.hpp.
|
static |
Sidecar filename for a run.
| run | Run number. |
Definition at line 3 of file BinaryToRoot.cpp.
Referenced by ReadHeaderSidecar(), and WriteHeaderSidecar().
|
static |
Read a run's global header back from its sidecar.
| run | Run number. | |
| [out] | header | Set to the stored header on success; untouched otherwise. Parsed with a base of 0, so the 0x prefix is honoured. |
Definition at line 14 of file BinaryToRoot.cpp.
Referenced by EnsureRunHeaderFused().
|
static |
Write a run's global header to its sidecar.
The file lands beside the run's ROOT output, under the ROOT files base directory; parent directories are created as needed. The value is written as 0x-prefixed hexadecimal.
| run | Run number. |
| header | CoMPASS global header word. |
Definition at line 7 of file BinaryToRoot.cpp.
Referenced by EnsureRunHeaderFused(), and RunFusedPipelineForFile().