7 #include "QDetSourceRunHandle.hh"
12 using namespace Diana;
30 QDetSourceRunHandle srh;
32 GlobalData().Get(
"",&srh,
"DB");
33 const QDetSourceRun& sr = srh.Get();
43 GlobalData().Get(
"",&
rHandle,
"DB");
46 unsigned int source_start_date = runData.
fStartDate;
48 Diana::QTime source_time;
50 source_time.SetStartRunUnix(source_start_date);
52 source_time.SetFromStartRunNs(header.
GetTime().GetFromStartRunNs());
61 ev.
Get<
QTime>(
"StartSourceRunUnix") = source_time;
QRunDataHandle rHandle(753)
QBaseType< int > QInt
int wrapped in a QObject
#define REGISTER_MODULE(clazz)
one-line description of your module
void Do(Diana::QEvent &ev)
Do method.
void Init(Diana::QEvent &ev)
Init method.
void Require(const std::string &owner, const std::string &name) const
notify the QEvent that we need a QObject, if not found an exception is thrown
void Get(const char *owner, ReadHandle< Q > &handle) const
Get a QObject Handle in read mode.
void Add(WriteHandle< Q > &handle)
Add a QObject to the event.
global handle for QRunData
time_t fStartDate
StartTime.
the Diana namespace is needed because sometimes we use Qt libraries, that use same class names of our...