![]() |
Diana Software
|
Save user selected QObjects from neighbours QEvents into the main QEvent. More...
Classes | |
| class | ObjectLabels |
| Internal class to save new (NX_owner@name) and original (owner@name) label of a QObject. More... | |
Public Member Functions | |
| Action | Init (Diana::QEventAssembler &eva) |
| Init. More... | |
| Action | Do (Diana::QEventAssembler &eva, const Diana::QEventList &neigh) |
| Do. More... | |
| Action | Done () |
| Done. More... | |
Private Attributes | |
| std::vector< std::vector< ObjectLabels > > | fLabels |
| labels for each neighbour More... | |
| size_t | fMaxNeighboursAchieved |
| maximum number of neighbours arrived in the event loop More... | |
| int | fMaxNeighbours |
| maximum number of neighbours packed More... | |
Save user selected QObjects from neighbours QEvents into the main QEvent.
This module saves QObject from neighbours QEvents into the main QEvent, prepending a prefix to the owner of the QObject. For example, if the user specifies "DAQ\@PulseInfo = true" in the cfg, the "DAQ\@PulseInfo" QObject of neighbour number X will be saved as NX_DAQ@PulseInfo into the QEvent. Aliases are automatically set as NX_Alias, for example "Channel" becomes "NX_Channel".
driver NeighboursPacker verbosity = info enable = true MaximumNumberOfNeighbours = 2 DAQ@PulseInfo = true PulseBasicParameters@MaxBaseline = true ... endmod
Definition at line 49 of file MNeighboursPacker.hh.
| QDriver::Action MNeighboursPacker::Do | ( | Diana::QEventAssembler & | eva, |
| const Diana::QEventList & | neigh | ||
| ) |
Do.
Definition at line 98 of file MNeighboursPacker.cc.
References QEvent::Get(), QEventAssembler::Get(), QEventAssembler::GetEvent(), QEventLabel::name, QEventLabel::owner, rHandle, and QEventList::Size().
| QDriver::Action MNeighboursPacker::Done | ( | ) |
Done.
Definition at line 124 of file MNeighboursPacker.cc.
| QDriver::Action MNeighboursPacker::Init | ( | Diana::QEventAssembler & | eva | ) |
Init.
Definition at line 13 of file MNeighboursPacker.cc.
References QEventAssembler::Add(), QAliases::Add(), QEvent::Add(), QAliases::FillFromFile(), QAliases::Find(), MNeighboursPacker::ObjectLabels::fLabel, MNeighboursPacker::ObjectLabels::fOriginalLabel, QEventAssembler::Get(), QEventAssembler::GetAliases(), QEventAssembler::GetEvent(), QEventAssembler::GetLabels(), QEventLabel::name, NSPACER, and QEventLabel::owner.
|
private |
labels for each neighbour
Definition at line 70 of file MNeighboursPacker.hh.
|
private |
maximum number of neighbours packed
Definition at line 76 of file MNeighboursPacker.hh.
|
private |
maximum number of neighbours arrived in the event loop
Definition at line 73 of file MNeighboursPacker.hh.