Diana Software
Classes | Public Member Functions | Private Attributes | List of all members
MNeighboursPacker Class Reference

Save user selected QObjects from neighbours QEvents into the main QEvent. More...

Inheritance diagram for MNeighboursPacker:

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...
 

Detailed Description

Save user selected QObjects from neighbours QEvents into the main QEvent.

Author
Marco Vignati

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".

Definition at line 49 of file MNeighboursPacker.hh.

Member Function Documentation

◆ Do()

QDriver::Action MNeighboursPacker::Do ( Diana::QEventAssembler &  eva,
const Diana::QEventList &  neigh 
)

◆ Done()

QDriver::Action MNeighboursPacker::Done ( )

Done.

Definition at line 124 of file MNeighboursPacker.cc.

◆ Init()

QDriver::Action MNeighboursPacker::Init ( Diana::QEventAssembler &  eva)

Member Data Documentation

◆ fLabels

std::vector<std::vector<ObjectLabels> > MNeighboursPacker::fLabels
private

labels for each neighbour

Definition at line 70 of file MNeighboursPacker.hh.

◆ fMaxNeighbours

int MNeighboursPacker::fMaxNeighbours
private

maximum number of neighbours packed

Definition at line 76 of file MNeighboursPacker.hh.

◆ fMaxNeighboursAchieved

size_t MNeighboursPacker::fMaxNeighboursAchieved
private

maximum number of neighbours arrived in the event loop

Definition at line 73 of file MNeighboursPacker.hh.


The documentation for this class was generated from the following files: