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

#include <TrigJetConditionConfig_mult.h>

Inheritance diagram for TrigJetConditionConfig_mult:
Collaboration diagram for TrigJetConditionConfig_mult:

Public Member Functions

 TrigJetConditionConfig_mult (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", {}, "min multiplicity"}
 
Gaudi::Property< std::string > m_max {this, "max", {}, "max multiplicity"}
 
std::size_t m_min_szt {0}
 
std::size_t m_max_szt {0}
 

Detailed Description

Definition at line 17 of file TrigJetConditionConfig_mult.h.

Constructor & Destructor Documentation

◆ TrigJetConditionConfig_mult()

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

Definition at line 13 of file TrigJetConditionConfig_mult.cxx.

15  :
16  base_class(type, name, parent){
17 
18 }

Member Function Documentation

◆ checkVals()

StatusCode TrigJetConditionConfig_mult::checkVals ( ) const
private

Definition at line 38 of file TrigJetConditionConfig_mult.cxx.

38  {
39  if (m_min_szt >= m_max_szt){
40  ATH_MSG_ERROR("multMin >= multMax " << m_min_szt << " " << m_max_szt
41  << " inputs " << m_min << " " << m_max);
42  return StatusCode::FAILURE;
43  }
44  return StatusCode::SUCCESS;
45 }

◆ getCondition()

Condition TrigJetConditionConfig_mult::getCondition ( ) const
overridevirtual

Definition at line 33 of file TrigJetConditionConfig_mult.cxx.

33  {
34  return std::make_unique<MultiplicityCondition>(m_min_szt, m_max_szt);
35 }

◆ initialize()

StatusCode TrigJetConditionConfig_mult::initialize ( )
overridevirtual

Definition at line 21 of file TrigJetConditionConfig_mult.cxx.

21  {
22 
23  auto cnvtr = ArgStrToSizeT();
24  m_min_szt = cnvtr(m_min);
25  m_max_szt = cnvtr(m_max);
26 
27  CHECK(checkVals());
28 
29  return StatusCode::SUCCESS;
30 }

Member Data Documentation

◆ m_max

Gaudi::Property<std::string> TrigJetConditionConfig_mult::m_max {this, "max", {}, "max multiplicity"}
private

Definition at line 36 of file TrigJetConditionConfig_mult.h.

◆ m_max_szt

std::size_t TrigJetConditionConfig_mult::m_max_szt {0}
private

Definition at line 39 of file TrigJetConditionConfig_mult.h.

◆ m_min

Gaudi::Property<std::string> TrigJetConditionConfig_mult::m_min {this, "min", {}, "min multiplicity"}
private

Definition at line 33 of file TrigJetConditionConfig_mult.h.

◆ m_min_szt

std::size_t TrigJetConditionConfig_mult::m_min_szt {0}
private

Definition at line 38 of file TrigJetConditionConfig_mult.h.


The documentation for this class was generated from the following files:
TrigJetConditionConfig_mult::m_max
Gaudi::Property< std::string > m_max
Definition: TrigJetConditionConfig_mult.h:36
TrigJetConditionConfig_mult::checkVals
StatusCode checkVals() const
Definition: TrigJetConditionConfig_mult.cxx:38
TrigJetConditionConfig_mult::m_min_szt
std::size_t m_min_szt
Definition: TrigJetConditionConfig_mult.h:38
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
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
TrigJetConditionConfig_mult::m_max_szt
std::size_t m_max_szt
Definition: TrigJetConditionConfig_mult.h:39
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
ArgStrToSizeT
Definition: ArgStrToSizeT.h:13
TrigJetConditionConfig_mult::m_min
Gaudi::Property< std::string > m_min
Definition: TrigJetConditionConfig_mult.h:33