ATLAS Offline Software
Loading...
Searching...
No Matches
TrigGlobalEfficiencyCorrectionTool::ToolKey Struct Reference
Collaboration diagram for TrigGlobalEfficiencyCorrectionTool::ToolKey:

Public Member Functions

bool operator< (const ToolKey &rhs) const
bool operator== (const ToolKey &rhs) const
 ToolKey (std::size_t leg, std::size_t tag, unsigned runNumber)
 ToolKey (std::size_t leg, std::size_t tag, std::pair< unsigned, unsigned > bounds)
 ToolKey (std::size_t leg=0, std::size_t tag=0)

Public Attributes

std::size_t hash
std::pair< unsigned, unsigned > boundaries

Detailed Description

Definition at line 118 of file TrigGlobalEfficiencyCorrectionTool.h.

Constructor & Destructor Documentation

◆ ToolKey() [1/3]

TrigGlobalEfficiencyCorrectionTool::ToolKey::ToolKey ( std::size_t leg,
std::size_t tag,
unsigned runNumber )
inline

Definition at line 131 of file TrigGlobalEfficiencyCorrectionTool.h.

◆ ToolKey() [2/3]

TrigGlobalEfficiencyCorrectionTool::ToolKey::ToolKey ( std::size_t leg,
std::size_t tag,
std::pair< unsigned, unsigned > bounds )
inline

Definition at line 135 of file TrigGlobalEfficiencyCorrectionTool.h.

137 : hash(leg ^ tag), boundaries(bounds) {}

◆ ToolKey() [3/3]

TrigGlobalEfficiencyCorrectionTool::ToolKey::ToolKey ( std::size_t leg = 0,
std::size_t tag = 0 )
inline

Definition at line 140 of file TrigGlobalEfficiencyCorrectionTool.h.

141 : hash(leg ^ tag), boundaries(0, 999999) {}

Member Function Documentation

◆ operator<()

bool TrigGlobalEfficiencyCorrectionTool::ToolKey::operator< ( const ToolKey & rhs) const
inline

Definition at line 121 of file TrigGlobalEfficiencyCorrectionTool.h.

121 {
122 return hash < rhs.hash ||
123 (hash == rhs.hash && boundaries.second < rhs.boundaries.first);
124 }

◆ operator==()

bool TrigGlobalEfficiencyCorrectionTool::ToolKey::operator== ( const ToolKey & rhs) const
inline

Definition at line 125 of file TrigGlobalEfficiencyCorrectionTool.h.

125 {
126 return hash == rhs.hash && boundaries.second >= rhs.boundaries.first &&
127 rhs.boundaries.second >= boundaries.first;
128 }

Member Data Documentation

◆ boundaries

std::pair<unsigned, unsigned> TrigGlobalEfficiencyCorrectionTool::ToolKey::boundaries

Definition at line 120 of file TrigGlobalEfficiencyCorrectionTool.h.

◆ hash

std::size_t TrigGlobalEfficiencyCorrectionTool::ToolKey::hash

Definition at line 119 of file TrigGlobalEfficiencyCorrectionTool.h.


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