NAIA  1.0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
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 
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
unsigned int Run
The current run.
Definition: Header.h:63
Category m_eventMask
Definition: Header.h:73
unsigned int RunTag
The current run tag.
Definition: Header.h:64
Header container class description.
void Dump() const
Dump on screen container content.
Definition: Header.cpp:10
unsigned int EventNo
The current event number.
Definition: Header.h:65
static const std::string BranchName
Definition: Header.h:88
void Clear()
Clear container content.
Definition: Header.cpp:9
unsigned int UTCTime
UTC time (in seconds) of current event.
Definition: Header.h:66