3 #include "fmt/format.h"
16 fmt::print(
"{:=^120} \n",
" FileInfo ");
20 fmt::print(
"{:>15} {:>15} {:^24} {:^24}\n",
"Run",
"NEvents",
"UTCTime",
"EventNo");
25 fmt::print(
"{:-^120}\n",
"");
35 if (fabs(ngen2 - ngen1) < 0.01 * ngen2)
74 fmt::print(
"{:=^120} \n",
" MCFileInfo ");
76 std::string focusName;
91 fmt::print(
"Focus: {}\n", focusName);
92 fmt::print(
"Charge: {} Mass: {}\n",
Charge,
Mass);
94 fmt::print(
"{:>15} {:^24} {:^24}\n",
"DatacardPID",
"MomentumRange",
"DatacardMomentumRange");
98 fmt::print(
"{:-^120}\n",
"");
int DatacardPID
Geant4 PID of the primary particle (from datacard)
std::pair< float, float > MomentumRange
Momentum range as estimated from the events.
double GetRMin() const
Get the lower edge of the rigidity generation range.
std::string BadRunReason
If this is a bad run, the reason as returned by AMSSetupR::IsBadRun.
std::pair< unsigned int, unsigned int > EventNo
First / last event in the file.
unsigned int GetNGen() const
Estimates of the total number of requested events at generation level.
std::string FileName
Name of the processed file.
std::pair< unsigned int, unsigned int > UTCTime
First and last second of this run.
std::pair< float, float > DatacardMomentumRange
Momentum range as estimated from the datacard.
void Dump() const
Dump on screen container content.
int BadRunTag
If this is a bad run, the tag as returned by AMSSetupR::IsBadRun.
unsigned int DatacardNGen
Number of generated events from datacard.
double GetRMax() const
Get the upper edge of the rigidity generation range.
FileInfo container class description.
unsigned int NEvents
Total number of processed events.
unsigned int Run
Run number.
void Clear()
Clear container content.
SimFocus Focus
Simulation focus.
particles shot towards Layer 1
void Dump() const
Dump on screen container content.
particles shot towards layer 1 and passing through layer 9
unsigned int Charge
Atomic number of the primary particle.
float Mass
Mass of the primary particle in GeV/c^2.
void Clear()
Clear container content.
std::pair< unsigned int, unsigned int > EventNo
First and last event of this run.