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

The PDetector class represents a logical muon detector. More...

#include <PInstrumentDef.h>

Public Member Functions

 PDetector ()
 Constructor.
 
 ~PDetector ()
 Destructor.
 
void setName (QString str)
 Sets the detector name.
 
void setRelGeomPhase (double phase)
 Sets the relative geometric phase.
 
void setForwards (QVector< int > num)
 Sets the forward detector indices.
 
void setBackwards (QVector< int > num)
 Sets the backward detector indices.
 
void setAlpha (double alpha)
 Sets the alpha correction factor.
 
QString getName ()
 Returns the detector name.
 
double getRelGeomPhase ()
 Returns the relative geometric phase.
 
QVector< int > getForwards ()
 Returns the forward detector indices.
 
QVector< int > getBackwards ()
 Returns the backward detector indices.
 
double getAlpha ()
 Returns the alpha correction factor.
 

Private Attributes

QString fName
 detector name
 
QVector< int > fForward
 forward detector indices
 
QVector< int > fBackward
 backward detector indices
 
double fAlpha
 alpha correction factor
 
double fRelGeomPhase
 relative geometric phase in degrees
 

Detailed Description

The PDetector class represents a logical muon detector.

This class encapsulates the properties of a detector configuration including its name, relative geometric phase, forward/backward detector indices, and alpha parameter (for asymmetry fits). It is used in the instrument definition to specify detector groupings for different measurement setups.

Constructor & Destructor Documentation

◆ PDetector()

PDetector::PDetector ( )
inline

Constructor.

◆ ~PDetector()

PDetector::~PDetector ( )
inline

Destructor.

Member Function Documentation

◆ getAlpha()

double PDetector::getAlpha ( )
inline

Returns the alpha correction factor.

Returns
Alpha value.

◆ getBackwards()

QVector< int > PDetector::getBackwards ( )
inline

Returns the backward detector indices.

Returns
Vector of backward detector numbers.

◆ getForwards()

QVector< int > PDetector::getForwards ( )
inline

Returns the forward detector indices.

Returns
Vector of forward detector numbers.

◆ getName()

QString PDetector::getName ( )
inline

Returns the detector name.

Returns
Detector name.

◆ getRelGeomPhase()

double PDetector::getRelGeomPhase ( )
inline

Returns the relative geometric phase.

Returns
Phase angle in degrees.

◆ setAlpha()

void PDetector::setAlpha ( double alpha)
inline

Sets the alpha correction factor.

Parameters
alphaAlpha value for asymmetry correction.

◆ setBackwards()

void PDetector::setBackwards ( QVector< int > num)
inline

Sets the backward detector indices.

Parameters
numVector of physical detector numbers forming the backward group.

◆ setForwards()

void PDetector::setForwards ( QVector< int > num)
inline

Sets the forward detector indices.

Parameters
numVector of physical detector numbers forming the forward group.

◆ setName()

void PDetector::setName ( QString str)
inline

Sets the detector name.

Parameters
strDetector name (e.g., "Forward", "Backward", "Left").

◆ setRelGeomPhase()

void PDetector::setRelGeomPhase ( double phase)
inline

Sets the relative geometric phase.

Parameters
phasePhase angle in degrees relative to a reference detector.

Member Data Documentation

◆ fAlpha

double PDetector::fAlpha
private

alpha correction factor

◆ fBackward

QVector<int> PDetector::fBackward
private

backward detector indices

◆ fForward

QVector<int> PDetector::fForward
private

forward detector indices

◆ fName

QString PDetector::fName
private

detector name

◆ fRelGeomPhase

double PDetector::fRelGeomPhase
private

relative geometric phase in degrees


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