31 ev.
SetAlias(
"Channel",
"fValue",
"Channel");
33 ev.
SetAlias(
"Dataset",
"fValue",
"Dataset");
34 ev.
SetAlias(
"EVentNumber",
"fValue",
"EventNumber");
41 GlobalHandle<QInt> dHandle(
"Dataset");
42 GlobalData().Get(
"",&dHandle,
"");
43 const int dataset = dHandle.Get();
47 const int channel = pulseInfo.GetChannelId();
48 const int run = header.
GetRun();
54 ev.
Get<
QInt>(
"Dataset") = dataset;
56 ev.
Get<
QInt>(
"EventNumber") = eventnumber;
#define REGISTER_MODULE(clazz)
base types wrapped into a QObject. Currently implemented types are QInt QDouble and QFloat....
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.
void SetAlias(const std::string &name, const std::string &pathInObject, const std::string &alias)
set alias for objects or variables in objects owned by currentmodule.
Raw event: bolometer channel, trigger positions and types.
the Diana namespace is needed because sometimes we use Qt libraries, that use same class names of our...