|
DDASToys for NSCLDAQ
6.2-000
|
Widget for managing hit information when interating with the GUI. More...
#include <QHitData.h>


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... | |
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.
| QHitData::QHitData | ( | FitManager * | pFitMgr, |
| QWidget * | parent = nullptr |
||
| ) |
Constructor.
| pFitMgr | Pointer to FitManager object used by this class, managed by caller. |
| parent | Pointer to QWidget parent object (optional). |
Constructs QHitData widgets and defines their layout. This class does not manage the FitManager object.
| QHitData::~QHitData | ( | ) |
Destructor.
Destruction of FitManager is left to the caller which owns it.
| void QHitData::setFitMethod | ( | QString | method | ) |
Set the fit method.
| method | The name of the fitting method. |
| std::invalid_argument | If 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.
| void QHitData::update | ( | const ddastoys::DDASFitHit & | hit | ) |
Update hit data and enable printing of fit information to stdout if the hit has an extension.
| hit | References the hit we are processing |