#include "HeaderDrawer.h"
Definition at line 16 of file HeaderDrawer.h.
evd::HeaderDrawer::HeaderDrawer |
( |
| ) |
|
evd::HeaderDrawer::~HeaderDrawer |
( |
| ) |
|
Definition at line 26 of file HeaderDrawer.cxx.
References evdb::View2D::AddText(), art::EventID::event(), evdb::EventHolder::GetEvent(), art::Event::id(), evdb::EventHolder::Instance(), art::Event::run(), art::Event::subRun(), art::Event::time(), and art::Timestamp::value().
Referenced by evd::HeaderPad::Draw().
28 TText& titlet = view->
AddText(0.03,0.80,
"LArSoft");
29 titlet.SetTextSize(0.13);
30 titlet.SetTextFont(72);
40 unsigned int year, month, day, dayofweek;
41 unsigned int hour, minute, second;
47 unsigned long long int tsval = evt->
time().
value();
52 const unsigned long int mask32 = 0xFFFFFFFFUL;
53 unsigned long int lup = ( tsval >> 32 ) & mask32;
54 unsigned long int llo = tsval & mask32;
55 TTimeStamp ts(lup, (
int)llo);
57 ts.GetDate(kTRUE,0,&year,&month,&day);
58 ts.GetTime(kTRUE,0,&hour,&minute,&second);
59 nano = ts.GetNanoSec();
60 dayofweek = ts.GetDayOfWeek();
67 static const char* days[] = {
"",
68 "Mon",
"Tue",
"Wed",
"Thu",
"Fri",
"Sat",
"Sun" 70 static const char* months[] = {
"",
71 "Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
72 "Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec" 75 sprintf(runbuff,
"Run: %d/%d",run,srun);
76 sprintf(eventbuff,
"Event: %d",
event);
77 sprintf(datebuff,
"UTC %s %s %d, %d",
82 sprintf(timebuff,
"%.2d:%.2d:%2.9f",
85 (
float)second+(
float)nano/1.0E9);
87 TText& runt = view->
AddText(0.04,0.60, runbuff);
88 TText& eventt = view->
AddText(0.04,0.45, eventbuff);
89 TText& datet = view->
AddText(0.04,0.25, datebuff);
90 TText& timet = view->
AddText(0.04,0.10, timebuff);
92 runt.SetTextSize(0.13);
95 eventt.SetTextSize(0.13);
96 eventt.SetTextFont(42);
98 datet.SetTextSize(0.12);
99 datet.SetTextFont(42);
101 timet.SetTextSize(0.12);
102 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)
EventNumber_t event() const
Event finding and building.
The documentation for this class was generated from the following files:
- lareventdisplay/v06_22_00/source/lareventdisplay/EventDisplay/HeaderDrawer.h
- lareventdisplay/v06_22_00/source/lareventdisplay/EventDisplay/HeaderDrawer.cxx