ATLAS Offline Software
Loading...
Searching...
No Matches
NswErrorCalibData::ErrorConstants Class Reference

Helper struct to store different error calibrations for a certain channel range & also for seperate ClusterBuilders (ROT & Prd making stage) More...

#include <NswErrorCalibData.h>

Collaboration diagram for NswErrorCalibData::ErrorConstants:

Public Member Functions

 ErrorConstants (const std::string &funcName, uint8_t author, uint16_t minStrip, uint16_t maxStrip, std::vector< double > &&parameters)
uint16_t minStrip () const
 Returns the minimal strip of validitiy.
uint16_t maxStrip () const
 Returns the maximal strip of validity.
uint8_t author () const
 Returns the cluster author flag.
double clusterUncertainty (const Input &clustInfo) const
 Calculates the cluster uncertainty.
bool operator< (const ErrorConstants &other) const
const std::vector< double > & pars () const

Private Attributes

errorParametrizer m_evalFunc
uint8_t m_clusAlgAuthor {0}
 Author of the cluster to apply the error.
uint16_t m_stripMin {0}
 Strip range for which the constants are valid.
uint16_t m_stripMax {0}
std::vector< double > m_pars {}

Detailed Description

Helper struct to store different error calibrations for a certain channel range & also for seperate ClusterBuilders (ROT & Prd making stage)

Definition at line 50 of file NswErrorCalibData.h.

Constructor & Destructor Documentation

◆ ErrorConstants()

NswErrorCalibData::ErrorConstants::ErrorConstants ( const std::string & funcName,
uint8_t author,
uint16_t minStrip,
uint16_t maxStrip,
std::vector< double > && parameters )

Definition at line 68 of file NswErrorCalibData.cxx.

70 :
71 m_evalFunc{getParametrizer(funcName)},
75 m_pars (std::move(pars))
76{
77}
uint8_t m_clusAlgAuthor
Author of the cluster to apply the error.
const std::vector< double > & pars() const
uint16_t minStrip() const
Returns the minimal strip of validitiy.
uint16_t maxStrip() const
Returns the maximal strip of validity.
uint8_t author() const
Returns the cluster author flag.
uint16_t m_stripMin
Strip range for which the constants are valid.
static errorParametrizer getParametrizer(const std::string &funcName)

Member Function Documentation

◆ author()

uint8_t NswErrorCalibData::ErrorConstants::author ( ) const

Returns the cluster author flag.

Definition at line 81 of file NswErrorCalibData.cxx.

81{ return m_clusAlgAuthor; }

◆ clusterUncertainty()

double NswErrorCalibData::ErrorConstants::clusterUncertainty ( const Input & clustInfo) const

Calculates the cluster uncertainty.

Definition at line 82 of file NswErrorCalibData.cxx.

82 {
83 return m_evalFunc(clustInfo, m_pars);
84}

◆ maxStrip()

uint16_t NswErrorCalibData::ErrorConstants::maxStrip ( ) const

Returns the maximal strip of validity.

Definition at line 80 of file NswErrorCalibData.cxx.

80{ return m_stripMax; }

◆ minStrip()

uint16_t NswErrorCalibData::ErrorConstants::minStrip ( ) const

Returns the minimal strip of validitiy.

Definition at line 79 of file NswErrorCalibData.cxx.

79{ return m_stripMin; }

◆ operator<()

bool NswErrorCalibData::ErrorConstants::operator< ( const ErrorConstants & other) const

Definition at line 61 of file NswErrorCalibData.cxx.

61 {
62 if (m_clusAlgAuthor != other.m_clusAlgAuthor) {
63 return m_clusAlgAuthor < other.m_clusAlgAuthor;
64 }
65 return m_stripMax < other.m_stripMin;
66}

◆ pars()

const std::vector< double > & NswErrorCalibData::ErrorConstants::pars ( ) const
inline

Definition at line 67 of file NswErrorCalibData.h.

67{ return m_pars; }

Member Data Documentation

◆ m_clusAlgAuthor

uint8_t NswErrorCalibData::ErrorConstants::m_clusAlgAuthor {0}
private

Author of the cluster to apply the error.

Definition at line 71 of file NswErrorCalibData.h.

71{0};

◆ m_evalFunc

errorParametrizer NswErrorCalibData::ErrorConstants::m_evalFunc
private

Definition at line 69 of file NswErrorCalibData.h.

◆ m_pars

std::vector<double> NswErrorCalibData::ErrorConstants::m_pars {}
private

Definition at line 75 of file NswErrorCalibData.h.

75{};

◆ m_stripMax

uint16_t NswErrorCalibData::ErrorConstants::m_stripMax {0}
private

Definition at line 74 of file NswErrorCalibData.h.

74{0};

◆ m_stripMin

uint16_t NswErrorCalibData::ErrorConstants::m_stripMin {0}
private

Strip range for which the constants are valid.

Definition at line 73 of file NswErrorCalibData.h.

73{0};

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