ATLAS Offline Software
Loading...
Searching...
No Matches
Trig3VarComboHypoTool::VarInfo Struct Reference

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

Collaboration diagram for Trig3VarComboHypoTool::VarInfo:

Public Member Functions

bool validate (std::string &errmsg) const
 Check consistency of single var config.
std::string rangeStr () const
 Generate range string for printing.
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 legC_is_MET {false}
uint32_t legC {0}

Detailed Description

Organise info per var selection in a struct.

Definition at line 32 of file Trig3VarComboHypoTool.h.

Member Function Documentation

◆ rangeStr()

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

Generate range string for printing.

Definition at line 53 of file Trig3VarComboHypoTool.h.

◆ test()

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

Definition at line 56 of file Trig3VarComboHypoTool.h.

56 {
57 return (useMin ? value > varMin : true) && (useMax ? value < varMax : true);
58 }

◆ validate()

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

Check consistency of single var config.

Definition at line 37 of file Trig3VarComboHypoTool.cxx.

37 {
38 if (legA==0){
39 errmsg = "legA ID not set!";
40 return false;
41 }
42 if (legB==0){
43 errmsg="legB ID not set!";
44 return false;
45 }
46 if (legC==0){
47 errmsg="legC ID not set!";
48 return false;
49 }
50 if ((!useMin) && (!useMax)){
51 errmsg="Trying to configure the Tool without setting at least one of UseMin or UseMax!";
52 return false;
53 }
54 if (legA==legB || legA==legC || legB==legC) {
55 errmsg = "Currently all legs must be different";
56 return false;
57 }
58 return true;
59}
static thread_local std::ostringstream errmsg
Definition WaferTree.h:25

Member Data Documentation

◆ index

size_t Trig3VarComboHypoTool::VarInfo::index {0}

Definition at line 35 of file Trig3VarComboHypoTool.h.

35{0};

◆ legA

uint32_t Trig3VarComboHypoTool::VarInfo::legA {0}

Definition at line 44 of file Trig3VarComboHypoTool.h.

44{0};

◆ legA_is_MET

bool Trig3VarComboHypoTool::VarInfo::legA_is_MET {false}

Definition at line 43 of file Trig3VarComboHypoTool.h.

43{false};

◆ legB

uint32_t Trig3VarComboHypoTool::VarInfo::legB {0}

Definition at line 46 of file Trig3VarComboHypoTool.h.

46{0};

◆ legB_is_MET

bool Trig3VarComboHypoTool::VarInfo::legB_is_MET {false}

Definition at line 45 of file Trig3VarComboHypoTool.h.

45{false};

◆ legC

uint32_t Trig3VarComboHypoTool::VarInfo::legC {0}

Definition at line 48 of file Trig3VarComboHypoTool.h.

48{0};

◆ legC_is_MET

bool Trig3VarComboHypoTool::VarInfo::legC_is_MET {false}

Definition at line 47 of file Trig3VarComboHypoTool.h.

47{false};

◆ monToolName

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

Definition at line 36 of file Trig3VarComboHypoTool.h.

36{""};

◆ useMax

bool Trig3VarComboHypoTool::VarInfo::useMax {false}

Definition at line 40 of file Trig3VarComboHypoTool.h.

40{false};

◆ useMin

bool Trig3VarComboHypoTool::VarInfo::useMin {false}

Definition at line 38 of file Trig3VarComboHypoTool.h.

38{false};

◆ var

ComboHypoVars Trig3VarComboHypoTool::VarInfo::var {UNDEF}

Definition at line 34 of file Trig3VarComboHypoTool.h.

◆ varMax

float Trig3VarComboHypoTool::VarInfo::varMax {FLOATDEFAULT}

Definition at line 41 of file Trig3VarComboHypoTool.h.

static constexpr float FLOATDEFAULT

◆ varMin

float Trig3VarComboHypoTool::VarInfo::varMin {FLOATDEFAULT}

Definition at line 39 of file Trig3VarComboHypoTool.h.

◆ varTag

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

Definition at line 33 of file Trig3VarComboHypoTool.h.

33{""};

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