26 titlet.SetTextSize(0.13);
27 titlet.SetTextFont(72);
37 unsigned int year, month, day, dayofweek;
38 unsigned int hour, minute,
second;
44 unsigned long long int tsval = evt->
time().
value();
49 const unsigned long int mask32 = 0xFFFFFFFFUL;
50 unsigned long int lup = (tsval >> 32) & mask32;
51 unsigned long int llo = tsval & mask32;
52 TTimeStamp ts(lup, (
int)llo);
54 ts.GetDate(kTRUE, 0, &year, &month, &day);
55 ts.GetTime(kTRUE, 0, &hour, &minute, &second);
56 nano = ts.GetNanoSec();
57 dayofweek = ts.GetDayOfWeek();
64 static const char* days[] = {
"",
"Mon",
"Tue",
"Wed",
"Thu",
"Fri",
"Sat",
"Sun"};
65 static const char* months[] = {
66 "",
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec"};
68 sprintf(runbuff,
"Run: %d/%d", run, srun);
69 sprintf(eventbuff,
"Event: %d",
event);
70 sprintf(datebuff,
"UTC %s %s %d, %d", days[dayofweek], months[month], day, year);
71 sprintf(timebuff,
"%.2d:%.2d:%2.9f", hour, minute, (
float)second + (
float)nano / 1.0E9);
73 TText& runt = view->
AddText(0.04, 0.60, runbuff);
74 TText& eventt = view->
AddText(0.04, 0.45, eventbuff);
75 TText& datet = view->
AddText(0.04, 0.25, datebuff);
76 TText& timet = view->
AddText(0.04, 0.10, timebuff);
78 runt.SetTextSize(0.13);
81 eventt.SetTextSize(0.13);
82 eventt.SetTextFont(42);
84 datet.SetTextSize(0.12);
85 datet.SetTextFont(42);
87 timet.SetTextSize(0.12);
88 timet.SetTextFont(42);
SubRunNumber_t subRun() const
const art::Event * GetEvent() const
constexpr TimeValue_t value() const
static EventHolder * Instance()
TText & AddText(double x, double y, const char *text)
std::string fDisplayName
Name to apply to 2D display.
EventNumber_t event() const
second_as<> second
Type of time stored in seconds, in double precision.
Event finding and building.