ATLAS Offline Software
Loading...
Searching...
No Matches
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}
#define ATH_MSG_ERROR(x)
Gaudi::Property< std::size_t > m_multiplicity

◆ 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}
ToolHandleArray< ITrigJetConditionConfig > m_elementConditions

◆ 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(),
53 m_invert);
54}
std::unique_ptr< IRepeatedCondition > ConditionPtr
std::unique_ptr< ICondition > getCompoundCondition() const

◆ 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}
#define ATH_MSG_DEBUG(x)

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.

47 {this,
48 "chainPartInd",
49 {-1},
50 "identifier for chain leg - used to group jets for jet hypo clients "};

◆ 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.

38 {this, "clique", {-1},
39 "indentical condition index"};

◆ 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.

30 {
31 this, "conditionMakers", {},
32 "elemental conditions makers for a leaf node."};

◆ 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.

52 {this, "invert", {false},
53 "invert isSatisfied()"};

◆ 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.

34 {this, "multiplicity", {1},
35 "no. of occurences of identical condition"};

◆ 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.

41 {this, "id", {0},
42 "Condition ID if in FastReduction condition tree"};

◆ 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.

44 {this, "pid", {0},
45 "ID of parent Condition ID if in FastReduction condition tree"};

The documentation for this class was generated from the following files: