30#ifndef _PINSTRUMENTDEF_H_
31#define _PINSTRUMENTDEF_H_
The PDetector class represents a logical muon detector.
Definition PInstrumentDef.h:45
void setRelGeomPhase(double phase)
Sets the relative geometric phase.
Definition PInstrumentDef.h:67
double fRelGeomPhase
relative geometric phase in degrees
Definition PInstrumentDef.h:122
void setAlpha(double alpha)
Sets the alpha correction factor.
Definition PInstrumentDef.h:85
QString getName()
Returns the detector name.
Definition PInstrumentDef.h:91
QVector< int > getBackwards()
Returns the backward detector indices.
Definition PInstrumentDef.h:109
double fAlpha
alpha correction factor
Definition PInstrumentDef.h:121
double getRelGeomPhase()
Returns the relative geometric phase.
Definition PInstrumentDef.h:97
QVector< int > fForward
forward detector indices
Definition PInstrumentDef.h:119
QVector< int > fBackward
backward detector indices
Definition PInstrumentDef.h:120
void setBackwards(QVector< int > num)
Sets the backward detector indices.
Definition PInstrumentDef.h:79
QVector< int > getForwards()
Returns the forward detector indices.
Definition PInstrumentDef.h:103
void setName(QString str)
Sets the detector name.
Definition PInstrumentDef.h:61
QString fName
detector name
Definition PInstrumentDef.h:118
void setForwards(QVector< int > num)
Sets the forward detector indices.
Definition PInstrumentDef.h:73
~PDetector()
Destructor.
Definition PInstrumentDef.h:55
PDetector()
Constructor.
Definition PInstrumentDef.h:50
double getAlpha()
Returns the alpha correction factor.
Definition PInstrumentDef.h:115
QString getName()
Returns the institute name.
Definition PInstrumentDef.h:446
PInstrument * getInstrument(QString name)
Returns an instrument by name.
Definition PInstrumentDef.cpp:153
QVector< PInstrument > getInstruments()
Returns all instruments belonging to this institute.
Definition PInstrumentDef.h:452
void setName(QString str)
Sets the institute name.
Definition PInstrumentDef.h:434
PInstitute()
Constructor. Initializes the name to empty.
Definition PInstrumentDef.cpp:141
~PInstitute()
Destructor.
Definition PInstrumentDef.h:428
QVector< PInstrument > fInstrument
list of instruments at this institute
Definition PInstrumentDef.h:463
void addInstrument(PInstrument instrument)
Adds an instrument to this institute.
Definition PInstrumentDef.h:440
QString fName
institute name
Definition PInstrumentDef.h:462
The PInstrument class represents a muon spectrometer instrument.
Definition PInstrumentDef.h:270
QVector< PSetup > getLFSetups()
Returns all LF setups.
Definition PInstrumentDef.h:376
void addSetupLF(PSetup lf)
Adds a longitudinal-field (LF) setup configuration.
Definition PInstrumentDef.h:328
PSetup * getTFSetup(QString name="")
Returns a TF setup by name.
Definition PInstrumentDef.cpp:112
void setName(QString str)
Sets the instrument name.
Definition PInstrumentDef.h:310
QString fInstitue
institute name
Definition PInstrumentDef.h:403
void setInstitue(QString str)
Sets the institute name.
Definition PInstrumentDef.h:304
void addSetupTF(PSetup tf)
Adds a transverse-field (TF) setup configuration.
Definition PInstrumentDef.h:322
PSetup * getLFSetup(QString name="")
Returns a LF setup by name.
Definition PInstrumentDef.cpp:128
void setRunNameTemplate(QString str)
Sets the run name template for data file naming.
Definition PInstrumentDef.h:286
PInstrument()
Constructor. Initializes all strings to empty.
Definition PInstrumentDef.cpp:80
void addSetupZF(PSetup zf)
Adds a zero-field (ZF) setup configuration.
Definition PInstrumentDef.h:316
void setDataFileFormat(QString str)
Sets the data file format.
Definition PInstrumentDef.h:298
QString fDataFileFormat
data file format
Definition PInstrumentDef.h:402
QString getBeamline()
Returns the beamline name.
Definition PInstrumentDef.h:340
PSetup * getZFSetup(QString name="")
Returns a ZF setup by name.
Definition PInstrumentDef.cpp:96
QString getName()
Returns the instrument name.
Definition PInstrumentDef.h:358
QString fName
instrument name
Definition PInstrumentDef.h:404
QString getRunNameTemplate()
Returns the run name template.
Definition PInstrumentDef.h:334
QString fBeamline
beamline identifier
Definition PInstrumentDef.h:401
QString getDataFileFormat()
Returns the data file format.
Definition PInstrumentDef.h:346
~PInstrument()
Destructor.
Definition PInstrumentDef.h:280
QString fRunNameTemplate
template for run file names
Definition PInstrumentDef.h:400
QString getInstitute()
Returns the institute name.
Definition PInstrumentDef.h:352
QVector< PSetup > fZF
zero-field setups
Definition PInstrumentDef.h:406
QVector< PSetup > fTF
transverse-field setups
Definition PInstrumentDef.h:407
QVector< PSetup > getTFSetups()
Returns all TF setups.
Definition PInstrumentDef.h:370
QVector< PSetup > fLF
longitudinal-field setups
Definition PInstrumentDef.h:408
QVector< PSetup > getZFSetups()
Returns all ZF setups.
Definition PInstrumentDef.h:364
void setBeamline(QString str)
Sets the beamline name.
Definition PInstrumentDef.h:292
The PSetup class represents a measurement setup configuration.
Definition PInstrumentDef.h:133
PSetup()
Constructor. Initializes all values to -1/empty.
Definition PInstrumentDef.cpp:36
void setBkgRange(int start, int end)
Sets the background range for asymmetry fits.
Definition PInstrumentDef.h:174
int getNoOfLogicalDetectors()
Returns the number of logical detectors for single-histogram fits.
Definition PInstrumentDef.h:204
PDetector * getDetector(int idx)
Returns a pointer to a single-histogram logical detector.
Definition PInstrumentDef.cpp:53
int fNoOfDetectors
total number of physical detectors
Definition PInstrumentDef.h:252
void setLgb(int lgb)
Sets the last good bin.
Definition PInstrumentDef.h:167
QString fName
setup name
Definition PInstrumentDef.h:251
void setNoOfDetectors(int no)
Sets the total number of physical detectors.
Definition PInstrumentDef.h:155
int fBkgEndBin
background range end bin
Definition PInstrumentDef.h:256
void setName(QString str)
Sets the setup name.
Definition PInstrumentDef.h:149
QVector< PDetector > fLogicDetectors
logical detectors for single-histogram fits
Definition PInstrumentDef.h:258
QString getName()
Returns the setup name.
Definition PInstrumentDef.h:192
PDetector * getAsymDetector(int idx)
Returns a pointer to an asymmetry logical detector.
Definition PInstrumentDef.cpp:68
~PSetup()
Destructor.
Definition PInstrumentDef.h:143
void addAsymDetector(PDetector detector)
Adds a logical detector for asymmetry fits.
Definition PInstrumentDef.h:186
int getLgb()
Returns the last good bin.
Definition PInstrumentDef.h:222
void addDetector(PDetector detector)
Adds a logical detector for single-histogram fits.
Definition PInstrumentDef.h:180
int getNoOfDetectors()
Returns the total number of physical detectors.
Definition PInstrumentDef.h:198
int fLgb
last good bin
Definition PInstrumentDef.h:254
QVector< PDetector > fLogicAsymDetectors
logical detectors for asymmetry fits
Definition PInstrumentDef.h:259
int getNoOfLogicalAsymDetectors()
Returns the number of logical detectors for asymmetry fits.
Definition PInstrumentDef.h:210
int fFgbOffset
first good bin offset from t0
Definition PInstrumentDef.h:253
int getBkgEndBin()
Returns the background range end bin.
Definition PInstrumentDef.h:234
int fBkgStartBin
background range start bin
Definition PInstrumentDef.h:255
int getFgbOffset()
Returns the first good bin offset.
Definition PInstrumentDef.h:216
int getBkgStartBin()
Returns the background range start bin.
Definition PInstrumentDef.h:228
void setFgbOffset(int fgbOffset)
Sets the first good bin offset from t0.
Definition PInstrumentDef.h:161