DDASToys for NSCLDAQ  6.2-000
Public Member Functions | List of all members
QHitData Class Reference

Widget for managing hit information when interating with the GUI. More...

#include <QHitData.h>

Inheritance diagram for QHitData:
Inheritance graph
[legend]
Collaboration diagram for QHitData:
Collaboration graph
[legend]

Public Member Functions

 QHitData (FitManager *pFitMgr, QWidget *parent=nullptr)
 Constructor. More...
 
 ~QHitData ()
 Destructor. More...
 
void update (const ddastoys::DDASFitHit &hit)
 Update hit data and enable printing of fit information to stdout if the hit has an extension. More...
 
void setFitMethod (QString method)
 Set the fit method. More...
 

Detailed Description

Widget for managing hit information when interating with the GUI.

Widget class for managing UI related to the hit data. Displays relavent infomration for the currently displayed hit with optional UI elements to see more information e.g. a button to print the fit results to stdout.

Constructor & Destructor Documentation

◆ QHitData()

QHitData::QHitData ( FitManager pFitMgr,
QWidget *  parent = nullptr 
)

Constructor.

Parameters
pFitMgrPointer to FitManager object used by this class, managed by caller.
parentPointer to QWidget parent object (optional).

Constructs QHitData widgets and defines their layout. This class does not manage the FitManager object.

◆ ~QHitData()

QHitData::~QHitData ( )

Destructor.

Destruction of FitManager is left to the caller which owns it.

Member Function Documentation

◆ setFitMethod()

void QHitData::setFitMethod ( QString  method)

Set the fit method.

Parameters
methodThe name of the fitting method.
Exceptions
std::invalid_argumentIf the method parameter does not match a known fitting method.

Set the fit method from a QString if a method parameter is supplied on the command line. Throw an exception if the fit method is not recognized.

◆ update()

void QHitData::update ( const ddastoys::DDASFitHit hit)

Update hit data and enable printing of fit information to stdout if the hit has an extension.

Parameters
hitReferences the hit we are processing

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