ATLAS Offline Software
Loading...
Searching...
No Matches
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.
 ~Threshold ()=default
 Destructor.
float etMin () const
 Get the lower et edge.
float etaMin () const
 Get the lower eta edge.
float etMax () const
 Get the high et edge.
float etaMax () const
 Get the high eta edge.
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),
15 m_etamin(etamin),
16 m_etamax(etamax),
17 m_slope(slope),
18 m_offset(offset),
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: