ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
TrigComboHypoTool::VarInfo Struct Reference

Organise info per var selection in a struct. More...

Collaboration diagram for TrigComboHypoTool::VarInfo:

Public Member Functions

bool validate (std::string &errmsg) const
 Check consistency of single var config. More...
 
std::string rangeStr () const
 Generate range string for printing. More...
 
bool test (float value) const
 

Public Attributes

std::string varTag {""}
 
ComboHypoVars var {UNDEF}
 
size_t index {0}
 
std::string monToolName {""}
 
bool useMin {false}
 
float varMin {FLOATDEFAULT}
 
bool useMax {false}
 
float varMax {FLOATDEFAULT}
 
bool legA_is_MET {false}
 
uint32_t legA {0}
 
bool legB_is_MET {false}
 
uint32_t legB {0}
 
bool legsAreEqual {false}
 

Detailed Description

Organise info per var selection in a struct.

Definition at line 50 of file TrigComboHypoTool.h.

Member Function Documentation

◆ rangeStr()

std::string TrigComboHypoTool::VarInfo::rangeStr ( ) const
inline

Generate range string for printing.

Definition at line 70 of file TrigComboHypoTool.h.

70  {
71  return (useMin ? std::to_string(varMin) + " < " : "") + varTag + (useMax ? " < " + std::to_string(varMax): "");
72  }

◆ test()

bool TrigComboHypoTool::VarInfo::test ( float  value) const
inline

Definition at line 73 of file TrigComboHypoTool.h.

73  {
74  return (useMin ? value > varMin : true) && (useMax ? value < varMax : true);
75  }

◆ validate()

bool TrigComboHypoTool::VarInfo::validate ( std::string &  errmsg) const

Check consistency of single var config.

Definition at line 39 of file TrigComboHypoTool.cxx.

39  {
40  if (legA==0){
41  errmsg = "legA ID not set!";
42  return false;
43  }
44  if (legB==0){
45  errmsg="legB ID not set!";
46  return false;
47  }
48  if ((!useMin) && (!useMax)){
49  errmsg="Trying to configure the Tool without setting at least one of UseMin or UseMax!";
50  return false;
51  }
52  if (legA==legB && (legA_is_MET || legB_is_MET)) {
53  errmsg = "Cannot specify the same MET leg for both sides!";
54  return false;
55  }
56  return true;
57 }

Member Data Documentation

◆ index

size_t TrigComboHypoTool::VarInfo::index {0}

Definition at line 53 of file TrigComboHypoTool.h.

◆ legA

uint32_t TrigComboHypoTool::VarInfo::legA {0}

Definition at line 62 of file TrigComboHypoTool.h.

◆ legA_is_MET

bool TrigComboHypoTool::VarInfo::legA_is_MET {false}

Definition at line 61 of file TrigComboHypoTool.h.

◆ legB

uint32_t TrigComboHypoTool::VarInfo::legB {0}

Definition at line 64 of file TrigComboHypoTool.h.

◆ legB_is_MET

bool TrigComboHypoTool::VarInfo::legB_is_MET {false}

Definition at line 63 of file TrigComboHypoTool.h.

◆ legsAreEqual

bool TrigComboHypoTool::VarInfo::legsAreEqual {false}

Definition at line 65 of file TrigComboHypoTool.h.

◆ monToolName

std::string TrigComboHypoTool::VarInfo::monToolName {""}

Definition at line 54 of file TrigComboHypoTool.h.

◆ useMax

bool TrigComboHypoTool::VarInfo::useMax {false}

Definition at line 58 of file TrigComboHypoTool.h.

◆ useMin

bool TrigComboHypoTool::VarInfo::useMin {false}

Definition at line 56 of file TrigComboHypoTool.h.

◆ var

ComboHypoVars TrigComboHypoTool::VarInfo::var {UNDEF}

Definition at line 52 of file TrigComboHypoTool.h.

◆ varMax

float TrigComboHypoTool::VarInfo::varMax {FLOATDEFAULT}

Definition at line 59 of file TrigComboHypoTool.h.

◆ varMin

float TrigComboHypoTool::VarInfo::varMin {FLOATDEFAULT}

Definition at line 57 of file TrigComboHypoTool.h.

◆ varTag

std::string TrigComboHypoTool::VarInfo::varTag {""}

Definition at line 51 of file TrigComboHypoTool.h.


The documentation for this struct was generated from the following files:
athena.value
value
Definition: athena.py:124
TrigComboHypoTool::VarInfo::legB
uint32_t legB
Definition: TrigComboHypoTool.h:64
TrigComboHypoTool::VarInfo::legB_is_MET
bool legB_is_MET
Definition: TrigComboHypoTool.h:63
TrigJetMonitorAlgorithm.errmsg
errmsg
Definition: TrigJetMonitorAlgorithm.py:90
TrigComboHypoTool::VarInfo::varMax
float varMax
Definition: TrigComboHypoTool.h:59
TrigComboHypoTool::VarInfo::legA
uint32_t legA
Definition: TrigComboHypoTool.h:62
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
TrigComboHypoTool::VarInfo::varMin
float varMin
Definition: TrigComboHypoTool.h:57
TrigComboHypoTool::VarInfo::varTag
std::string varTag
Definition: TrigComboHypoTool.h:51
TrigComboHypoTool::VarInfo::legA_is_MET
bool legA_is_MET
Definition: TrigComboHypoTool.h:61
TrigComboHypoTool::VarInfo::useMax
bool useMax
Definition: TrigComboHypoTool.h:58
TrigComboHypoTool::VarInfo::useMin
bool useMin
Definition: TrigComboHypoTool.h:56