NAIA
1.0.2
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
src
Containers
Header.cpp
Go to the documentation of this file.
1
#include "fmt/format.h"
2
#include <bitset>
3
4
#include "
Containers/Header.h
"
5
6
namespace
NAIA {
7
const
std::string
Header::BranchName
=
"HeaderData"
;
8
9
void
HeaderData::Clear
() {
m_eventMask
=
Category::None
; }
10
void
HeaderData::Dump
()
const
{
11
fmt::print(
"{:=^120} \n"
,
" HeaderData "
);
12
13
fmt::print(
"{:>15} {:>15} {:>15} {:>15} {:>32}\n"
,
""
,
"Run"
,
"Event"
,
"RunTag"
,
"UTCTime"
,
"mask"
);
14
fmt::print(
"{:>15} {:>15} {:>15} {:>15x} {:>32}\n"
,
""
,
Run
,
EventNo
,
RunTag
,
UTCTime
,
15
std::bitset<32>(
static_cast<
std::underlying_type_t<Category>
>
(
m_eventMask
)).to_string());
16
fmt::print(
"{:-^120}\n"
,
""
);
17
}
18
}
// namespace NAIA
NAIA::HeaderData::Run
unsigned int Run
The current run.
Definition:
Header.h:63
NAIA::HeaderData::m_eventMask
Category m_eventMask
Definition:
Header.h:73
NAIA::Category::None
NAIA::HeaderData::RunTag
unsigned int RunTag
The current run tag.
Definition:
Header.h:64
Header.h
Header container class description.
NAIA::HeaderData::Dump
void Dump() const
Dump on screen container content.
Definition:
Header.cpp:10
NAIA::HeaderData::EventNo
unsigned int EventNo
The current event number.
Definition:
Header.h:65
NAIA::Header::BranchName
static const std::string BranchName
Definition:
Header.h:88
NAIA::HeaderData::Clear
void Clear()
Clear container content.
Definition:
Header.cpp:9
NAIA::HeaderData::UTCTime
unsigned int UTCTime
UTC time (in seconds) of current event.
Definition:
Header.h:66
Generated by
1.8.5