ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
Ringer::onnx::Threshold Class Reference

#include <Threshold.h>

Collaboration diagram for Ringer::onnx::Threshold:

Public Member Functions

 Threshold (float etmin, float etmax, float etamin, float etamax, float slope, float offset, float maxavgmu)
 Constructor. More...
 
 ~Threshold ()=default
 Destructor. More...
 
float etMin () const
 Get the lower et edge. More...
 
float etaMin () const
 Get the lower eta edge. More...
 
float etMax () const
 Get the high et edge. More...
 
float etaMax () const
 Get the high eta edge. More...
 
bool accept (float discriminant, float avgmu) const
 

Private Attributes

float m_etmin
 
float m_etmax
 
float m_etamin
 
float m_etamax
 
float m_slope
 
float m_offset
 
float m_maxavgmu
 

Detailed Description

Definition at line 14 of file Threshold.h.

Constructor & Destructor Documentation

◆ Threshold()

Ringer::onnx::Threshold::Threshold ( float  etmin,
float  etmax,
float  etamin,
float  etamax,
float  slope,
float  offset,
float  maxavgmu 
)

Constructor.

Definition at line 11 of file Threshold.cxx.

11  :
12 
13  m_etmin(etmin),
14  m_etmax(etmax),
16  m_etamax(etamax),
17  m_slope(slope),
19  m_maxavgmu(maxavgmu)
20  {;}

◆ ~Threshold()

Ringer::onnx::Threshold::~Threshold ( )
default

Destructor.

Member Function Documentation

◆ accept()

bool Ringer::onnx::Threshold::accept ( float  discriminant,
float  avgmu 
) const
inline

Definition at line 43 of file Threshold.h.

44  {
45  avgmu = std::min(avgmu, m_maxavgmu);
46  return value >= (m_slope*avgmu + m_offset);
47  }

◆ etaMax()

float Ringer::onnx::Threshold::etaMax ( ) const
inline

Get the high eta edge.

Definition at line 30 of file Threshold.h.

30 { return m_etamax; };

◆ etaMin()

float Ringer::onnx::Threshold::etaMin ( ) const
inline

Get the lower eta edge.

Definition at line 26 of file Threshold.h.

26 { return m_etamin; };

◆ etMax()

float Ringer::onnx::Threshold::etMax ( ) const
inline

Get the high et edge.

Definition at line 28 of file Threshold.h.

28 { return m_etmax; };

◆ etMin()

float Ringer::onnx::Threshold::etMin ( ) const
inline

Get the lower et edge.

Definition at line 24 of file Threshold.h.

24 { return m_etmin; };

Member Data Documentation

◆ m_etamax

float Ringer::onnx::Threshold::m_etamax
private

Definition at line 36 of file Threshold.h.

◆ m_etamin

float Ringer::onnx::Threshold::m_etamin
private

Definition at line 36 of file Threshold.h.

◆ m_etmax

float Ringer::onnx::Threshold::m_etmax
private

Definition at line 36 of file Threshold.h.

◆ m_etmin

float Ringer::onnx::Threshold::m_etmin
private

Definition at line 36 of file Threshold.h.

◆ m_maxavgmu

float Ringer::onnx::Threshold::m_maxavgmu
private

Definition at line 38 of file Threshold.h.

◆ m_offset

float Ringer::onnx::Threshold::m_offset
private

Definition at line 38 of file Threshold.h.

◆ m_slope

float Ringer::onnx::Threshold::m_slope
private

Definition at line 38 of file Threshold.h.


The documentation for this class was generated from the following files:
Ringer::onnx::Threshold::m_offset
float m_offset
Definition: Threshold.h:38
athena.value
value
Definition: athena.py:122
Ringer::onnx::Threshold::m_maxavgmu
float m_maxavgmu
Definition: Threshold.h:38
Ringer::onnx::Threshold::m_etamin
float m_etamin
Definition: Threshold.h:36
Ringer::onnx::Threshold::m_etmax
float m_etmax
Definition: Threshold.h:36
min
#define min(a, b)
Definition: cfImp.cxx:40
Ringer::onnx::Threshold::m_slope
float m_slope
Definition: Threshold.h:38
convertTimingResiduals.offset
offset
Definition: convertTimingResiduals.py:71
LArCellBinning.etamin
etamin
Definition: LArCellBinning.py:137
Ringer::onnx::Threshold::m_etmin
float m_etmin
Definition: Threshold.h:36
Ringer::onnx::Threshold::m_etamax
float m_etamax
Definition: Threshold.h:36