ATLAS Offline Software
eEmSelectAlgTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "eEmSelectAlgTool.h"
6 #include "eEmSelect.h"
7 
8 namespace GlobalSim {
10  const std::string& name,
11  const IInterface* parent) :
12  base_class(type, name, parent){
13  }
14 
16 
19 
20  return StatusCode::SUCCESS;
21  }
22 
24  eEmSelectAlgTool::run(const EventContext& ctx) const {
25 
27  CHECK(eems.isValid());
28 
29  auto outTOBArray = std::make_unique<GenericTOBArray>("eEmSelectTOBArray");
30 
33  m_MinET,
34  m_REtaMin,
35  m_RHadMin,
36  m_WsTotMin);
37 
38  CHECK(alg.run(*eems, *outTOBArray));
39 
40 
42  ctx);
43  CHECK(h_write.record(std::move(outTOBArray)));
44 
45  return StatusCode::SUCCESS;
46  }
47 
48  std::string eEmSelectAlgTool::toString() const {
49 
50  std::stringstream ss;
51  ss << "eEmSelectAlgTool. name: " << name() << '\n'
52  << m_eEmTOBArrayReadKey << '\n'
53  << m_TOBArrayWriteKey << "\nalg:\n"
56  m_MinET,
57  m_REtaMin,
58  m_RHadMin,
60 
61  return ss.str();
62  }
63 }
64 
GlobalSim::eEmSelectAlgTool::m_algInstanceName
Gaudi::Property< std::string > m_algInstanceName
Definition: eEmSelectAlgTool.h:38
GlobalSim::eEmSelectAlgTool::eEmSelectAlgTool
eEmSelectAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: eEmSelectAlgTool.cxx:9
GlobalSim::eEmSelectAlgTool::m_TOBArrayWriteKey
SG::WriteHandleKey< GlobalSim::GenericTOBArray > m_TOBArrayWriteKey
Definition: eEmSelectAlgTool.h:86
eEmSelectAlgTool.h
SGout2dot.alg
alg
Definition: SGout2dot.py:243
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
GlobalSim::eEmSelect
Definition: Global/GlobalSimulation/src/L1TopoAlgs/eEmSelect.h:19
GlobalSim::eEmSelectAlgTool::initialize
StatusCode initialize() override
Definition: eEmSelectAlgTool.cxx:15
GlobalSim::eEmSelectAlgTool::m_MinET
Gaudi::Property< unsigned int > m_MinET
Definition: eEmSelectAlgTool.h:52
GlobalSim
AlgTool to obtain a GlobalSim::cTAUTOBArray This class uses ReadHandls to jFex and eFex Tau Rois If t...
Definition: dump.h:8
GlobalSim::eEmSelectAlgTool::m_eEmTOBArrayReadKey
SG::ReadHandleKey< GlobalSim::eEmTOBArray > m_eEmTOBArrayReadKey
Definition: eEmSelectAlgTool.h:82
GlobalSim::eEmSelectAlgTool::toString
virtual std::string toString() const override
Definition: eEmSelectAlgTool.cxx:48
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
test_pyathena.parent
parent
Definition: test_pyathena.py:15
GlobalSim::eEmSelectAlgTool::run
virtual StatusCode run(const EventContext &ctx) const override
Definition: eEmSelectAlgTool.cxx:24
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
GlobalSim::eEmSelectAlgTool::m_InputWidth
Gaudi::Property< unsigned int > m_InputWidth
Definition: eEmSelectAlgTool.h:45
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
SG::ReadHandle::isValid
virtual bool isValid() override final
Can the handle be successfully dereferenced?
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:76
eEmSelect.h
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::eEmSelectAlgTool::m_REtaMin
Gaudi::Property< unsigned int > m_REtaMin
Definition: eEmSelectAlgTool.h:59
GlobalSim::eEmSelectAlgTool::m_WsTotMin
Gaudi::Property< unsigned int > m_WsTotMin
Definition: eEmSelectAlgTool.h:73
GlobalSim::eEmSelect::toString
std::string toString() const
Definition: Global/GlobalSimulation/src/L1TopoAlgs/eEmSelect.cxx:52
GlobalSim::eEmSelectAlgTool::m_RHadMin
Gaudi::Property< unsigned int > m_RHadMin
Definition: eEmSelectAlgTool.h:66