|
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 | HeaderFileName (Int_t run) |
| Header filename for a run. | |
| static void | WriteHeaderFile (Int_t run, UShort_t header) |
| Write a run's global header to its file. | |
| static Bool_t | ReadHeaderFile (Int_t run, UShort_t &header) |
| Read a run's global header back from its file. | |
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 additional file and read back when needed.
Definition at line 22 of file BinaryToRoot.hpp.
|
static |
Header filename for a run.
| run | Run number. |
Definition at line 3 of file BinaryToRoot.cpp.
Referenced by ReadHeaderFile(), and WriteHeaderFile().
|
static |
Read a run's global header back from its file.
| 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 file.
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().