ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
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. More...
 
uint16_t maxStrip () const
 Returns the maximal strip of validity. More...
 
uint8_t author () const
 Returns the cluster author flag. More...
 
double clusterUncertainty (const Input &clustInfo) const
 Calculates the cluster uncertainty. More...
 
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. More...
 
uint16_t m_stripMin {0}
 Strip range for which the constants are valid. More...
 
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 }

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.

◆ 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.

◆ m_stripMax

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

Definition at line 74 of file NswErrorCalibData.h.

◆ 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.


The documentation for this class was generated from the following files:
NswErrorCalibData::ErrorConstants::m_stripMin
uint16_t m_stripMin
Strip range for which the constants are valid.
Definition: NswErrorCalibData.h:73
NswErrorCalibData::ErrorConstants::m_pars
std::vector< double > m_pars
Definition: NswErrorCalibData.h:75
NswErrorCalibData::getParametrizer
static errorParametrizer getParametrizer(const std::string &funcName)
Definition: NswErrorCalibData.cxx:28
NswErrorCalibData::ErrorConstants::m_clusAlgAuthor
uint8_t m_clusAlgAuthor
Author of the cluster to apply the error.
Definition: NswErrorCalibData.h:71
NswErrorCalibData::ErrorConstants::maxStrip
uint16_t maxStrip() const
Returns the maximal strip of validity.
Definition: NswErrorCalibData.cxx:80
NswErrorCalibData::ErrorConstants::author
uint8_t author() const
Returns the cluster author flag.
Definition: NswErrorCalibData.cxx:81
NswErrorCalibData::ErrorConstants::m_stripMax
uint16_t m_stripMax
Definition: NswErrorCalibData.h:74
NswErrorCalibData::ErrorConstants::m_evalFunc
errorParametrizer m_evalFunc
Definition: NswErrorCalibData.h:69
NswErrorCalibData::ErrorConstants::pars
const std::vector< double > & pars() const
Definition: NswErrorCalibData.h:67
NswErrorCalibData::ErrorConstants::minStrip
uint16_t minStrip() const
Returns the minimal strip of validitiy.
Definition: NswErrorCalibData.cxx:79
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16