ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TrigJetConditionConfig_abs_eta Class Reference

#include <TrigJetConditionConfig_abs_eta.h>

Inheritance diagram for TrigJetConditionConfig_abs_eta:
Collaboration diagram for TrigJetConditionConfig_abs_eta:

Public Member Functions

 TrigJetConditionConfig_abs_eta (const std::string &type, const std::string &name, const IInterface *parent)
 
virtual StatusCode initialize () override
 
virtual Condition getCondition () const override
 

Private Member Functions

StatusCode checkVals () const
 

Private Attributes

Gaudi::Property< std::string > m_min {this, "min", {"0."}, "Abs eta min for eta region"}
 
Gaudi::Property< std::string > m_max {this, "max", {"inf"}, "Abs eta max for eta region"}
 

Detailed Description

Definition at line 13 of file TrigJetConditionConfig_abs_eta.h.

Constructor & Destructor Documentation

◆ TrigJetConditionConfig_abs_eta()

TrigJetConditionConfig_abs_eta::TrigJetConditionConfig_abs_eta ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

Definition at line 10 of file TrigJetConditionConfig_abs_eta.cxx.

12  :
13  base_class(type, name, parent){
14 
15 }

Member Function Documentation

◆ checkVals()

StatusCode TrigJetConditionConfig_abs_eta::checkVals ( ) const
private

Definition at line 30 of file TrigJetConditionConfig_abs_eta.cxx.

30  {
31 
32  auto a2d = ArgStrToDouble();
33 
34  auto min_val = a2d(m_min);
35  auto max_val = a2d(m_max);
36 
37  if (min_val < 0.){
38  ATH_MSG_ERROR(" min eta < 0 " << m_min);
39  return StatusCode::FAILURE;
40  }
41 
42  if (min_val > max_val){
43  ATH_MSG_ERROR(" min eta > max eta");
44  return StatusCode::FAILURE;
45  }
46  return StatusCode::SUCCESS;
47 }

◆ getCondition()

Condition TrigJetConditionConfig_abs_eta::getCondition ( ) const
overridevirtual

Definition at line 24 of file TrigJetConditionConfig_abs_eta.cxx.

24  {
25  auto a2d = ArgStrToDouble();
26  return std::make_unique<EtaConditionAbs>(a2d(m_min), a2d(m_max));
27 }

◆ initialize()

StatusCode TrigJetConditionConfig_abs_eta::initialize ( )
overridevirtual

Definition at line 18 of file TrigJetConditionConfig_abs_eta.cxx.

18  {
19  CHECK(checkVals());
20  return StatusCode::SUCCESS;
21 }

Member Data Documentation

◆ m_max

Gaudi::Property<std::string> TrigJetConditionConfig_abs_eta::m_max {this, "max", {"inf"}, "Abs eta max for eta region"}
private

Definition at line 31 of file TrigJetConditionConfig_abs_eta.h.

◆ m_min

Gaudi::Property<std::string> TrigJetConditionConfig_abs_eta::m_min {this, "min", {"0."}, "Abs eta min for eta region"}
private

Definition at line 28 of file TrigJetConditionConfig_abs_eta.h.


The documentation for this class was generated from the following files:
TrigJetConditionConfig_abs_eta::checkVals
StatusCode checkVals() const
Definition: TrigJetConditionConfig_abs_eta.cxx:30
ArgStrToDouble
Definition: ArgStrToDouble.h:13
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
test_pyathena.parent
parent
Definition: test_pyathena.py:15
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
TrigJetConditionConfig_abs_eta::m_min
Gaudi::Property< std::string > m_min
Definition: TrigJetConditionConfig_abs_eta.h:28
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
TrigJetConditionConfig_abs_eta::m_max
Gaudi::Property< std::string > m_max
Definition: TrigJetConditionConfig_abs_eta.h:31
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78