musrWiz 0.1.0
Loading...
Searching...
No Matches
PInstitute Class Reference

The PInstitute class represents a muon research facility/institute. More...

#include <PInstrumentDef.h>

Public Member Functions

 PInstitute ()
 Constructor. Initializes the name to empty.
 
 ~PInstitute ()
 Destructor.
 
void setName (QString str)
 Sets the institute name.
 
void addInstrument (PInstrument instrument)
 Adds an instrument to this institute.
 
QString getName ()
 Returns the institute name.
 
QVector< PInstrumentgetInstruments ()
 Returns all instruments belonging to this institute.
 
PInstrumentgetInstrument (QString name)
 Returns an instrument by name.
 

Private Attributes

QString fName
 institute name
 
QVector< PInstrumentfInstrument
 list of instruments at this institute
 

Detailed Description

The PInstitute class represents a muon research facility/institute.

This class groups multiple muon instruments belonging to the same research facility (e.g., PSI, TRIUMF, ISIS, J-PARC).

Constructor & Destructor Documentation

◆ PInstitute()

PInstitute::PInstitute ( )

Constructor. Initializes the name to empty.

PInstitute::PInstitute constructor initializes the name to empty.

◆ ~PInstitute()

PInstitute::~PInstitute ( )
inline

Destructor.

Member Function Documentation

◆ addInstrument()

void PInstitute::addInstrument ( PInstrument instrument)
inline

Adds an instrument to this institute.

Parameters
instrumentInstrument object to add.

◆ getInstrument()

PInstrument * PInstitute::getInstrument ( QString name)

Returns an instrument by name.

PInstitute::getInstrument returns an instrument by name.

Parameters
nameInstrument name.
Returns
Pointer to PInstrument, or nullptr if not found.
Parameters
nameInstrument name to search for.
Returns
Pointer to PInstrument, or nullptr if not found.

◆ getInstruments()

QVector< PInstrument > PInstitute::getInstruments ( )
inline

Returns all instruments belonging to this institute.

Returns
Vector of PInstrument objects.

◆ getName()

QString PInstitute::getName ( )
inline

Returns the institute name.

Returns
Institute name.

◆ setName()

void PInstitute::setName ( QString str)
inline

Sets the institute name.

Parameters
strInstitute name (e.g., "PSI", "TRIUMF").

Member Data Documentation

◆ fInstrument

QVector<PInstrument> PInstitute::fInstrument
private

list of instruments at this institute

◆ fName

QString PInstitute::fName
private

institute name


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