ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TrigConf::METSigParam Class Reference

#include <METSigParam.h>

Collaboration diagram for TrigConf::METSigParam:

Public Member Functions

 METSigParam (int XSSigmaScale, int XSSigmaOffset, int XEmin, int XEmax, int TESqrtMin, int TESqrtMax)
 
 METSigParam ()
 
virtual ~METSigParam ()=default
 
void setValues (int XSSigmaScale, int XSSigmaOffset, int XEmin, int XEmax, int TESqrtMin, int TESqrtMax)
 
void getValues (int &XSSigmaScale, int &XSSigmaOffset, int &XEmin, int &XEmax, int &TESqrtMin, int &TESqrtMax) const
 
int xsSigmaScale () const
 
int xsSigmaOffset () const
 
int xeMin () const
 
int xeMax () const
 
int teSqrtMin () const
 
int teSqrtMax () const
 
virtual void print (const std::string &indent="", unsigned int detail=1) const
 
virtual void writeXML (std::ostream &xmlfile, int indentLevel, int indentWidth) const
 

Private Member Functions

void checkValueRange (int XEmin, int XEmax, int TESqrtMin, int TESqrtMax) const
 

Private Attributes

int m_xsSigmaScale
 
int m_xsSigmaOffset
 
int m_XEmin
 
int m_XEmax
 
int m_TESqrtMin
 
int m_TESqrtMax
 

Detailed Description

Definition at line 12 of file METSigParam.h.

Constructor & Destructor Documentation

◆ METSigParam() [1/2]

TrigConf::METSigParam::METSigParam ( int  XSSigmaScale,
int  XSSigmaOffset,
int  XEmin,
int  XEmax,
int  TESqrtMin,
int  TESqrtMax 
)

Definition at line 12 of file METSigParam.cxx.

15  : m_xsSigmaScale(XSSigmaScale),
16  m_xsSigmaOffset(XSSigmaOffset),
17  m_XEmin(XEmin),
18  m_XEmax(XEmax),
19  m_TESqrtMin(TESqrtMin),
20  m_TESqrtMax(TESqrtMax)
21 {
22  checkValueRange(XEmin, XEmax, TESqrtMin, TESqrtMax);
23 }

◆ METSigParam() [2/2]

TrigConf::METSigParam::METSigParam ( )

Definition at line 25 of file METSigParam.cxx.

26  : m_xsSigmaScale(0),
27  m_xsSigmaOffset(0),
28  m_XEmin(0),
29  m_XEmax(0),
30  m_TESqrtMin(0),
31  m_TESqrtMax(0)
32 {}

◆ ~METSigParam()

virtual TrigConf::METSigParam::~METSigParam ( )
virtualdefault

Member Function Documentation

◆ checkValueRange()

void TrigConf::METSigParam::checkValueRange ( int  XEmin,
int  XEmax,
int  TESqrtMin,
int  TESqrtMax 
) const
private

Definition at line 91 of file METSigParam.cxx.

91  {
92  std::stringstream outsideValues;
93  bool error = false;
94  outsideValues << "METSigParam: the following values are out of range [0:63]:";
95  if( XEmin<0 || XEmin>63) {
96  outsideValues << " XEmin (" << XEmin << ")";
97  error = true;
98  }
99  if( XEmax<0 || XEmax>63) {
100  outsideValues << " XEmax (" << XEmax << ")";
101  error = true;
102  }
103  if( TESqrtMin<0 || TESqrtMin>63) {
104  outsideValues << " TESqrtMin (" << TESqrtMin << ")";
105  error = true;
106  }
107  if( TESqrtMax<0 || TESqrtMax>63) {
108  outsideValues << " TESqrtMax (" << TESqrtMax << ")";
109  error = true;
110  }
111 
112  if(error)
113  throw std::range_error("");
114 
115 }

◆ getValues()

void TrigConf::METSigParam::getValues ( int &  XSSigmaScale,
int &  XSSigmaOffset,
int &  XEmin,
int &  XEmax,
int &  TESqrtMin,
int &  TESqrtMax 
) const

Definition at line 50 of file METSigParam.cxx.

52  {
53 
54  XSSigmaScale = m_xsSigmaScale;
55  XSSigmaOffset = m_xsSigmaOffset;
56  XEmin = m_XEmin;
57  XEmax = m_XEmax;
58  TESqrtMin = m_TESqrtMin;
59  TESqrtMax = m_TESqrtMax;
60 }

◆ print()

void TrigConf::METSigParam::print ( const std::string &  indent = "",
unsigned int  detail = 1 
) const
virtual

Definition at line 64 of file METSigParam.cxx.

64  {
65  std::cout << indent << " METSigParam:" << std::endl;
66  std::cout << indent << " xsSigmaScale : " << m_xsSigmaScale << std::endl
67  << indent << " xsSigmaOffset: " << m_xsSigmaOffset << std::endl
68  << indent << " xeMin : " << m_XEmin << std::endl
69  << indent << " xeMax : " << m_XEmax << std::endl
70  << indent << " teSqrtMin : " << m_TESqrtMin << std::endl
71  << indent << " teSqrtMax : " << m_TESqrtMax << std::endl;
72 }

◆ setValues()

void TrigConf::METSigParam::setValues ( int  XSSigmaScale,
int  XSSigmaOffset,
int  XEmin,
int  XEmax,
int  TESqrtMin,
int  TESqrtMax 
)

Definition at line 35 of file METSigParam.cxx.

37  {
38 
39  checkValueRange(XEmin, XEmax, TESqrtMin, TESqrtMax);
40 
41  m_xsSigmaScale = XSSigmaScale;
42  m_xsSigmaOffset = XSSigmaOffset;
43  m_XEmin = XEmin;
44  m_XEmax = XEmax;
45  m_TESqrtMin = TESqrtMin;
46  m_TESqrtMax = TESqrtMax;
47 }

◆ teSqrtMax()

int TrigConf::METSigParam::teSqrtMax ( ) const
inline

Definition at line 35 of file METSigParam.h.

35 { return m_TESqrtMax; }

◆ teSqrtMin()

int TrigConf::METSigParam::teSqrtMin ( ) const
inline

Definition at line 34 of file METSigParam.h.

34 { return m_TESqrtMin; }

◆ writeXML()

void TrigConf::METSigParam::writeXML ( std::ostream &  xmlfile,
int  indentLevel,
int  indentWidth 
) const
virtual

Definition at line 75 of file METSigParam.cxx.

75  {
76 
77  int width = indentLevel*indentWidth;
78  if(width!=0) xmlfile << std::setw(width) << " ";
79 
80  xmlfile << "<METSignificance"
81  << " xeMin=\"" << m_XEmin << "\""
82  << " xeMax=\"" << m_XEmax << "\""
83  << " teSqrtMin=\"" << m_TESqrtMin << "\""
84  << " teSqrtMax=\"" << m_TESqrtMax << "\""
85  << " xsSigmaScale=\"" << m_xsSigmaScale << "\""
86  << " xsSigmaOffset=\"" << m_xsSigmaOffset << "\""
87  << "/>" << std::endl;
88 }

◆ xeMax()

int TrigConf::METSigParam::xeMax ( ) const
inline

Definition at line 33 of file METSigParam.h.

33 { return m_XEmax; }

◆ xeMin()

int TrigConf::METSigParam::xeMin ( ) const
inline

Definition at line 32 of file METSigParam.h.

32 { return m_XEmin; }

◆ xsSigmaOffset()

int TrigConf::METSigParam::xsSigmaOffset ( ) const
inline

Definition at line 31 of file METSigParam.h.

31 { return m_xsSigmaOffset; }

◆ xsSigmaScale()

int TrigConf::METSigParam::xsSigmaScale ( ) const
inline

Definition at line 30 of file METSigParam.h.

30 { return m_xsSigmaScale; }

Member Data Documentation

◆ m_TESqrtMax

int TrigConf::METSigParam::m_TESqrtMax
private

Definition at line 49 of file METSigParam.h.

◆ m_TESqrtMin

int TrigConf::METSigParam::m_TESqrtMin
private

Definition at line 48 of file METSigParam.h.

◆ m_XEmax

int TrigConf::METSigParam::m_XEmax
private

Definition at line 47 of file METSigParam.h.

◆ m_XEmin

int TrigConf::METSigParam::m_XEmin
private

Definition at line 46 of file METSigParam.h.

◆ m_xsSigmaOffset

int TrigConf::METSigParam::m_xsSigmaOffset
private

Definition at line 45 of file METSigParam.h.

◆ m_xsSigmaScale

int TrigConf::METSigParam::m_xsSigmaScale
private

Definition at line 44 of file METSigParam.h.


The documentation for this class was generated from the following files:
TrigConf::METSigParam::m_TESqrtMin
int m_TESqrtMin
Definition: METSigParam.h:48
TrigConf::METSigParam::m_xsSigmaOffset
int m_xsSigmaOffset
Definition: METSigParam.h:45
TrigConf::METSigParam::m_XEmax
int m_XEmax
Definition: METSigParam.h:47
python.XMLReader.xmlfile
xmlfile
Definition: XMLReader.py:72
TrigConf::METSigParam::m_xsSigmaScale
int m_xsSigmaScale
Definition: METSigParam.h:44
TrigConf::METSigParam::m_TESqrtMax
int m_TESqrtMax
Definition: METSigParam.h:49
geometry_dat_to_json.indent
indent
Definition: geometry_dat_to_json.py:36
TrigConf::METSigParam::checkValueRange
void checkValueRange(int XEmin, int XEmax, int TESqrtMin, int TESqrtMax) const
Definition: METSigParam.cxx:91
Base_Fragment.width
width
Definition: Sherpa_i/share/common/Base_Fragment.py:59
TrigConf::METSigParam::m_XEmin
int m_XEmin
Definition: METSigParam.h:46
error
Definition: IImpactPoint3dEstimator.h:70