|
musrWiz 0.1.0
|
The PInstrument class represents a muon spectrometer instrument. More...
#include <PInstrumentDef.h>
Public Member Functions | |
| PInstrument () | |
| Constructor. Initializes all strings to empty. | |
| ~PInstrument () | |
| Destructor. | |
| void | setRunNameTemplate (QString str) |
| Sets the run name template for data file naming. | |
| void | setBeamline (QString str) |
| Sets the beamline name. | |
| void | setDataFileFormat (QString str) |
| Sets the data file format. | |
| void | setInstitue (QString str) |
| Sets the institute name. | |
| void | setName (QString str) |
| Sets the instrument name. | |
| void | addSetupZF (PSetup zf) |
| Adds a zero-field (ZF) setup configuration. | |
| void | addSetupTF (PSetup tf) |
| Adds a transverse-field (TF) setup configuration. | |
| void | addSetupLF (PSetup lf) |
| Adds a longitudinal-field (LF) setup configuration. | |
| QString | getRunNameTemplate () |
| Returns the run name template. | |
| QString | getBeamline () |
| Returns the beamline name. | |
| QString | getDataFileFormat () |
| Returns the data file format. | |
| QString | getInstitute () |
| Returns the institute name. | |
| QString | getName () |
| Returns the instrument name. | |
| QVector< PSetup > | getZFSetups () |
| Returns all ZF setups. | |
| QVector< PSetup > | getTFSetups () |
| Returns all TF setups. | |
| QVector< PSetup > | getLFSetups () |
| Returns all LF setups. | |
| PSetup * | getZFSetup (QString name="") |
| Returns a ZF setup by name. | |
| PSetup * | getTFSetup (QString name="") |
| Returns a TF setup by name. | |
| PSetup * | getLFSetup (QString name="") |
| Returns a LF setup by name. | |
Private Attributes | |
| QString | fRunNameTemplate |
| template for run file names | |
| QString | fBeamline |
| beamline identifier | |
| QString | fDataFileFormat |
| data file format | |
| QString | fInstitue |
| institute name | |
| QString | fName |
| instrument name | |
| QVector< PSetup > | fZF |
| zero-field setups | |
| QVector< PSetup > | fTF |
| transverse-field setups | |
| QVector< PSetup > | fLF |
| longitudinal-field setups | |
The PInstrument class represents a muon spectrometer instrument.
This class contains all information about a specific muon instrument including its name, beamline, run name template, data file format, and measurement setups for ZF (zero field), TF (transverse field), and LF (longitudinal field) configurations.
| PInstrument::PInstrument | ( | ) |
Constructor. Initializes all strings to empty.
PInstrument::PInstrument constructor initializes all strings to empty.
|
inline |
Destructor.
|
inline |
Adds a longitudinal-field (LF) setup configuration.
| lf | Setup object to add. |
|
inline |
Adds a transverse-field (TF) setup configuration.
| tf | Setup object to add. |
|
inline |
Adds a zero-field (ZF) setup configuration.
| zf | Setup object to add. |
|
inline |
Returns the beamline name.
|
inline |
Returns the data file format.
|
inline |
Returns the institute name.
| PSetup * PInstrument::getLFSetup | ( | QString | name = "" | ) |
Returns a LF setup by name.
PInstrument::getLFSetup returns a longitudinal-field setup by name.
| name | Setup name (default: first available). |
| name | Setup name to search for. If empty, returns the first available setup. |
|
inline |
Returns all LF setups.
|
inline |
Returns the instrument name.
|
inline |
Returns the run name template.
| PSetup * PInstrument::getTFSetup | ( | QString | name = "" | ) |
Returns a TF setup by name.
PInstrument::getTFSetup returns a transverse-field setup by name.
| name | Setup name (default: first available). |
| name | Setup name to search for. If empty, returns the first available setup. |
|
inline |
Returns all TF setups.
| PSetup * PInstrument::getZFSetup | ( | QString | name = "" | ) |
Returns a ZF setup by name.
PInstrument::getZFSetup returns a zero-field setup by name.
| name | Setup name (default: first available). |
| name | Setup name to search for. If empty, returns the first available setup. |
|
inline |
Returns all ZF setups.
|
inline |
Sets the beamline name.
| str | Beamline identifier (e.g., "piM3.2"). |
|
inline |
Sets the data file format.
| str | File format (e.g., "PsiMdu", "NeXus", "WKM"). |
|
inline |
Sets the institute name.
| str | Institute name (e.g., "PSI"). |
|
inline |
Sets the instrument name.
| str | Instrument name (e.g., "GPS", "HAL9500"). |
|
inline |
Sets the run name template for data file naming.
| str | Template string (e.g., "deltat_tdc_gps_[yyyy]_[nnnn].bin"). |
|
private |
beamline identifier
|
private |
data file format
|
private |
institute name
|
private |
longitudinal-field setups
|
private |
instrument name
|
private |
template for run file names
|
private |
transverse-field setups
|
private |
zero-field setups