ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
GlobalSim::EnergyThresholdAlgTool_jXE Class Reference

#include <EnergyThresholdAlgTool_jXE.h>

Inheritance diagram for GlobalSim::EnergyThresholdAlgTool_jXE:
Collaboration diagram for GlobalSim::EnergyThresholdAlgTool_jXE:

Public Member Functions

 EnergyThresholdAlgTool_jXE (const std::string &type, const std::string &name, const IInterface *parent)
 
virtual ~EnergyThresholdAlgTool_jXE ()=default
 
StatusCode initialize () override
 
virtual StatusCode run (const EventContext &ctx) const override
 
virtual std::string toString () const override
 

Private Attributes

Gaudi::Property< std::string > m_algInstanceName
 
Gaudi::Property< unsigned int > m_nbits
 
Gaudi::Property< unsigned int > m_threshold
 
SG::ReadHandleKey< GlobalSim::jXETOBArraym_jXETOBArrayReadKey
 
SG::WriteHandleKey< GlobalSim::Countm_CountWriteKey
 
ToolHandle< GenericMonitoringToolm_monTool {this, "monTool", {}, "MonitoringTool"}
 

Detailed Description

Definition at line 24 of file EnergyThresholdAlgTool_jXE.h.

Constructor & Destructor Documentation

◆ EnergyThresholdAlgTool_jXE()

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

Definition at line 15 of file EnergyThresholdAlgTool_jXE.cxx.

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

◆ ~EnergyThresholdAlgTool_jXE()

virtual GlobalSim::EnergyThresholdAlgTool_jXE::~EnergyThresholdAlgTool_jXE ( )
virtualdefault

Member Function Documentation

◆ initialize()

StatusCode GlobalSim::EnergyThresholdAlgTool_jXE::initialize ( )
override

Definition at line 21 of file EnergyThresholdAlgTool_jXE.cxx.

21  {
22 
23  if (m_nbits == 0u) {
24  ATH_MSG_ERROR("m_nbits == 0");
25  return StatusCode::FAILURE;
26  }
27 
30  return StatusCode::SUCCESS;
31  }

◆ run()

StatusCode GlobalSim::EnergyThresholdAlgTool_jXE::run ( const EventContext &  ctx) const
overridevirtual

Definition at line 34 of file EnergyThresholdAlgTool_jXE.cxx.

34  {
35 
36 
38  CHECK(jXEs.isValid());
39 
40  auto count = std::make_unique<GlobalSim::Count>();
41 
42  CHECK(EnergyThreshold_jXE(m_algInstanceName, m_nbits, m_threshold).run(*jXEs, *count));
43 
45  ctx);
46  CHECK(h_write.record(std::move(count)));
47 
48  return StatusCode::SUCCESS;
49  }

◆ toString()

std::string GlobalSim::EnergyThresholdAlgTool_jXE::toString ( ) const
overridevirtual

Definition at line 51 of file EnergyThresholdAlgTool_jXE.cxx.

51  {
52 
53  std::stringstream ss;
54  ss << "EnergyThresholdAlgTool_jXE. name: " << name() << '\n'
55  << m_jXETOBArrayReadKey << '\n'
56  << m_CountWriteKey << '\n';
57 
58  ss <<EnergyThreshold_jXE(m_algInstanceName,
59  m_nbits,
60  m_threshold).toString();
61  return ss.str();
62  }

Member Data Documentation

◆ m_algInstanceName

Gaudi::Property<std::string> GlobalSim::EnergyThresholdAlgTool_jXE::m_algInstanceName
private
Initial value:
{
this,
"alg_instance_name",
{},
"instance name of concrete L1Topo Algorithm"}

Definition at line 42 of file EnergyThresholdAlgTool_jXE.h.

◆ m_CountWriteKey

SG::WriteHandleKey<GlobalSim::Count> GlobalSim::EnergyThresholdAlgTool_jXE::m_CountWriteKey
private
Initial value:
{this, "CountWriteKey", "",
"key to write out an L1Topo Count object"}

Definition at line 65 of file EnergyThresholdAlgTool_jXE.h.

◆ m_jXETOBArrayReadKey

SG::ReadHandleKey<GlobalSim::jXETOBArray> GlobalSim::EnergyThresholdAlgTool_jXE::m_jXETOBArrayReadKey
private
Initial value:
{this, "TOBArrayReadKey", "",
"key to read in an jXETOBArray"}

Definition at line 61 of file EnergyThresholdAlgTool_jXE.h.

◆ m_monTool

ToolHandle<GenericMonitoringTool> GlobalSim::EnergyThresholdAlgTool_jXE::m_monTool {this, "monTool", {}, "MonitoringTool"}
private

Definition at line 70 of file EnergyThresholdAlgTool_jXE.h.

◆ m_nbits

Gaudi::Property<unsigned int> GlobalSim::EnergyThresholdAlgTool_jXE::m_nbits
private
Initial value:
{
this,
"nbits",
{0u},
"number of bits to be set in TCS::Count"}

Definition at line 48 of file EnergyThresholdAlgTool_jXE.h.

◆ m_threshold

Gaudi::Property<unsigned int> GlobalSim::EnergyThresholdAlgTool_jXE::m_threshold
private
Initial value:
{
this,
"hundredMeVThreshold",
{0u},
"threshold from menu * 10"}

Definition at line 54 of file EnergyThresholdAlgTool_jXE.h.


The documentation for this class was generated from the following files:
GlobalSim::EnergyThresholdAlgTool_jXE::m_CountWriteKey
SG::WriteHandleKey< GlobalSim::Count > m_CountWriteKey
Definition: EnergyThresholdAlgTool_jXE.h:65
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
Trk::u
@ u
Enums for curvilinear frames.
Definition: ParamDefs.h:77
XMLtoHeader.count
count
Definition: XMLtoHeader.py:85
GlobalSim::EnergyThresholdAlgTool_jXE::m_nbits
Gaudi::Property< unsigned int > m_nbits
Definition: EnergyThresholdAlgTool_jXE.h:48
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
GlobalSim::EnergyThresholdAlgTool_jXE::m_jXETOBArrayReadKey
SG::ReadHandleKey< GlobalSim::jXETOBArray > m_jXETOBArrayReadKey
Definition: EnergyThresholdAlgTool_jXE.h:61
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
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
GlobalSim::EnergyThresholdAlgTool_jXE::m_threshold
Gaudi::Property< unsigned int > m_threshold
Definition: EnergyThresholdAlgTool_jXE.h:54
GlobalSim::EnergyThresholdAlgTool_jXE::run
virtual StatusCode run(const EventContext &ctx) const override
Definition: EnergyThresholdAlgTool_jXE.cxx:34
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:76
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
GlobalSim::EnergyThresholdAlgTool_jXE::m_algInstanceName
Gaudi::Property< std::string > m_algInstanceName
Definition: EnergyThresholdAlgTool_jXE.h:42