ATLAS Offline Software
EnergyThresholdAlgTool_jXE.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 #include "EnergyThreshold_jXE.h"
7 #include "../IO/jXETOBArray.h"
8 #include "../IO/Count.h"
9 
10 
11 #include <sstream>
12 
13 namespace GlobalSim {
14 
16  const std::string& name,
17  const IInterface* parent) :
18  base_class(type, name, parent){
19  }
20 
22 
23  if (m_nbits == 0u) {
24  ATH_MSG_ERROR("m_nbits == 0");
25  return StatusCode::FAILURE;
26  }
27 
30  return StatusCode::SUCCESS;
31  }
32 
34  EnergyThresholdAlgTool_jXE::run(const EventContext& ctx) const {
35 
36 
38  CHECK(jXEs.isValid());
39 
40  auto count = std::make_unique<GlobalSim::Count>();
41 
43 
45  ctx);
46  CHECK(h_write.record(std::move(count)));
47 
48  return StatusCode::SUCCESS;
49  }
50 
52 
53  std::stringstream ss;
54  ss << "EnergyThresholdAlgTool_jXE. name: " << name() << '\n'
55  << m_jXETOBArrayReadKey << '\n'
56  << m_CountWriteKey << '\n';
57 
59  m_nbits,
61  return ss.str();
62  }
63 }
64 
GlobalSim::EnergyThresholdAlgTool_jXE::toString
virtual std::string toString() const override
Definition: EnergyThresholdAlgTool_jXE.cxx:51
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
GlobalSim::EnergyThreshold_jXE
Definition: EnergyThreshold_jXE.h:19
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
Trk::u
@ u
Enums for curvilinear frames.
Definition: ParamDefs.h:83
XMLtoHeader.count
count
Definition: XMLtoHeader.py:85
GlobalSim::EnergyThresholdAlgTool_jXE::m_nbits
Gaudi::Property< unsigned int > m_nbits
Definition: EnergyThresholdAlgTool_jXE.h:48
GlobalSim::EnergyThresholdAlgTool_jXE::initialize
StatusCode initialize() override
Definition: EnergyThresholdAlgTool_jXE.cxx:21
GlobalSim
AlgTool to obtain a GlobalSim::cTAUTOBArray This class uses ReadHandls to jFex and eFex Tau Rois If t...
Definition: dump.h:8
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
EnergyThresholdAlgTool_jXE.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
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
SG::ReadHandle::isValid
virtual bool isValid() override final
Can the handle be successfully dereferenced?
GlobalSim::EnergyThresholdAlgTool_jXE::EnergyThresholdAlgTool_jXE
EnergyThresholdAlgTool_jXE(const std::string &type, const std::string &name, const IInterface *parent)
Definition: EnergyThresholdAlgTool_jXE.cxx:15
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:76
SG::WriteHandle::record
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
GlobalSim::EnergyThreshold_jXE::toString
std::string toString() const
Definition: EnergyThreshold_jXE.cxx:59
EnergyThreshold_jXE.h
GlobalSim::EnergyThresholdAlgTool_jXE::m_algInstanceName
Gaudi::Property< std::string > m_algInstanceName
Definition: EnergyThresholdAlgTool_jXE.h:42