Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
MuonWorkspaceCreationHelper::yDataAsymmetry Struct Reference

#include <MuonWorkspaceCreationHelper.h>

Public Member Functions

double operator() (const double t, size_t spec)
 
 yDataAsymmetry ()
 
 yDataAsymmetry (const double amp, const double phi)
 Create y-values representing muon data, each spectrum is offset by 4 degrees in phase and has a different normalization. More...
 

Private Attributes

double m_amp
 
const double m_omega = 5.0
 
double m_phi
 
const double tau = Mantid::PhysicalConstants::MuonLifetime * 1e6
 

Detailed Description

Definition at line 21 of file MuonWorkspaceCreationHelper.h.

Constructor & Destructor Documentation

◆ yDataAsymmetry() [1/2]

MuonWorkspaceCreationHelper::yDataAsymmetry::yDataAsymmetry ( )

Definition at line 40 of file MuonWorkspaceCreationHelper.cpp.

References m_amp, and m_phi.

◆ yDataAsymmetry() [2/2]

MuonWorkspaceCreationHelper::yDataAsymmetry::yDataAsymmetry ( const double  amp,
const double  phi 
)

Create y-values representing muon data, each spectrum is offset by 4 degrees in phase and has a different normalization.

Counts are capped at zero to prevent negative values.

Definition at line 39 of file MuonWorkspaceCreationHelper.cpp.

Member Function Documentation

◆ operator()()

double MuonWorkspaceCreationHelper::yDataAsymmetry::operator() ( const double  t,
size_t  spec 
)

Definition at line 44 of file MuonWorkspaceCreationHelper.cpp.

References m_amp, m_omega, m_phi, and tau.

Member Data Documentation

◆ m_amp

double MuonWorkspaceCreationHelper::yDataAsymmetry::m_amp
private

Definition at line 27 of file MuonWorkspaceCreationHelper.h.

Referenced by operator()(), and yDataAsymmetry().

◆ m_omega

const double MuonWorkspaceCreationHelper::yDataAsymmetry::m_omega = 5.0
private

Definition at line 29 of file MuonWorkspaceCreationHelper.h.

Referenced by operator()().

◆ m_phi

double MuonWorkspaceCreationHelper::yDataAsymmetry::m_phi
private

Definition at line 28 of file MuonWorkspaceCreationHelper.h.

Referenced by operator()(), and yDataAsymmetry().

◆ tau

const double MuonWorkspaceCreationHelper::yDataAsymmetry::tau = Mantid::PhysicalConstants::MuonLifetime * 1e6
private

Definition at line 30 of file MuonWorkspaceCreationHelper.h.

Referenced by operator()().


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