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

#include <TrigJetConditionConfig_repeated.h>

Inheritance diagram for TrigJetConditionConfig_repeated:
Collaboration diagram for TrigJetConditionConfig_repeated:

Public Member Functions

 TrigJetConditionConfig_repeated (const std::string &type, const std::string &name, const IInterface *parent)
 
virtual StatusCode initialize () override
 
virtual ConditionPtr getRepeatedCondition () const override
 

Private Member Functions

std::unique_ptr< IConditiongetCompoundCondition () const
 
StatusCode checkVals () const
 

Private Attributes

ToolHandleArray< ITrigJetConditionConfigm_elementConditions
 
Gaudi::Property< std::size_t > m_multiplicity
 
Gaudi::Property< int > m_clique
 
Gaudi::Property< std::size_t > m_tree_id
 
Gaudi::Property< std::size_t > m_tree_pid
 
Gaudi::Property< int > m_chainPartInd
 
Gaudi::Property< bool > m_invert
 

Detailed Description

Definition at line 16 of file TrigJetConditionConfig_repeated.h.

Constructor & Destructor Documentation

◆ TrigJetConditionConfig_repeated()

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

Definition at line 16 of file TrigJetConditionConfig_repeated.cxx.

18  :
19  base_class(type, name, parent){
20 
21 }

Member Function Documentation

◆ checkVals()

StatusCode TrigJetConditionConfig_repeated::checkVals ( ) const
private

Definition at line 57 of file TrigJetConditionConfig_repeated.cxx.

57  {
58 
59  if (m_multiplicity < 1u) {
60  ATH_MSG_ERROR("m_multiplicity = " + std::to_string(m_multiplicity) +
61  "expected > 0");
62  return StatusCode::FAILURE;
63  }
64 
65  return StatusCode::SUCCESS;
66 }

◆ getCompoundCondition()

std::unique_ptr< ICondition > TrigJetConditionConfig_repeated::getCompoundCondition ( ) const
private

Definition at line 30 of file TrigJetConditionConfig_repeated.cxx.

30  {
31  std::vector<Condition> elements;
32  for(const auto& el : m_elementConditions){
33 
34  auto cond = el->getCondition();
35  if (cond != nullptr) {
36  elements.push_back(std::move(cond));
37  }
38  }
39 
40  return std::make_unique<CompoundCondition>(elements);
41 }

◆ getRepeatedCondition()

ConditionPtr TrigJetConditionConfig_repeated::getRepeatedCondition ( ) const
overridevirtual

Definition at line 44 of file TrigJetConditionConfig_repeated.cxx.

44  {
45 
46  if (m_elementConditions.empty()) {return ConditionPtr(nullptr);}
47 
48  return
49  std::make_unique<RepeatedCondition>(getCompoundCondition(),
51  m_clique,
53  m_invert);
54 }

◆ initialize()

StatusCode TrigJetConditionConfig_repeated::initialize ( )
overridevirtual

Definition at line 24 of file TrigJetConditionConfig_repeated.cxx.

24  {
25  ATH_MSG_DEBUG("initialising " << name());
26  return StatusCode::SUCCESS;
27 }

Member Data Documentation

◆ m_chainPartInd

Gaudi::Property<int> TrigJetConditionConfig_repeated::m_chainPartInd
private
Initial value:
{this,
"chainPartInd",
{-1},
"identifier for chain leg - used to group jets for jet hypo clients "}

Definition at line 47 of file TrigJetConditionConfig_repeated.h.

◆ m_clique

Gaudi::Property<int> TrigJetConditionConfig_repeated::m_clique
private
Initial value:
{this, "clique", {-1},
"indentical condition index"}

Definition at line 38 of file TrigJetConditionConfig_repeated.h.

◆ m_elementConditions

ToolHandleArray<ITrigJetConditionConfig> TrigJetConditionConfig_repeated::m_elementConditions
private
Initial value:
{
this, "conditionMakers", {},
"elemental conditions makers for a leaf node."}

Definition at line 30 of file TrigJetConditionConfig_repeated.h.

◆ m_invert

Gaudi::Property<bool> TrigJetConditionConfig_repeated::m_invert
private
Initial value:
{this, "invert", {false},
"invert isSatisfied()"}

Definition at line 52 of file TrigJetConditionConfig_repeated.h.

◆ m_multiplicity

Gaudi::Property<std::size_t> TrigJetConditionConfig_repeated::m_multiplicity
private
Initial value:
{this, "multiplicity", {1},
"no. of occurences of identical condition"}

Definition at line 34 of file TrigJetConditionConfig_repeated.h.

◆ m_tree_id

Gaudi::Property<std::size_t> TrigJetConditionConfig_repeated::m_tree_id
private
Initial value:
{this, "id", {0},
"Condition ID if in FastReduction condition tree"}

Definition at line 41 of file TrigJetConditionConfig_repeated.h.

◆ m_tree_pid

Gaudi::Property<std::size_t> TrigJetConditionConfig_repeated::m_tree_pid
private
Initial value:
{this, "pid", {0},
"ID of parent Condition ID if in FastReduction condition tree"}

Definition at line 44 of file TrigJetConditionConfig_repeated.h.


The documentation for this class was generated from the following files:
TrigJetConditionConfig_repeated::getCompoundCondition
std::unique_ptr< ICondition > getCompoundCondition() const
Definition: TrigJetConditionConfig_repeated.cxx:30
Trk::u
@ u
Enums for curvilinear frames.
Definition: ParamDefs.h:77
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
TrigJetConditionConfig_repeated::m_invert
Gaudi::Property< bool > m_invert
Definition: TrigJetConditionConfig_repeated.h:52
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
test_pyathena.parent
parent
Definition: test_pyathena.py:15
plotIsoValidation.el
el
Definition: plotIsoValidation.py:197
ConditionPtr
std::unique_ptr< IRepeatedCondition > ConditionPtr
Definition: RepeatedConditionsDefs.h:19
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
TrigJetConditionConfig_repeated::m_multiplicity
Gaudi::Property< std::size_t > m_multiplicity
Definition: TrigJetConditionConfig_repeated.h:34
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TrigJetConditionConfig_repeated::m_clique
Gaudi::Property< int > m_clique
Definition: TrigJetConditionConfig_repeated.h:38
TrigJetConditionConfig_repeated::m_elementConditions
ToolHandleArray< ITrigJetConditionConfig > m_elementConditions
Definition: TrigJetConditionConfig_repeated.h:30
TrigJetConditionConfig_repeated::m_chainPartInd
Gaudi::Property< int > m_chainPartInd
Definition: TrigJetConditionConfig_repeated.h:47