ATLAS Offline Software
Loading...
Searching...
No Matches
gFexRhoCvtrAlgTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7namespace GlobalSim {
8
10 const std::string& name,
11 const IInterface* parent):
12 base_class(type, name, parent){
13 }
14
16 CHECK(m_gFexJetRoIKey.initialize());
17 CHECK(m_gFexRhoTOBContainerKey.initialize());
18
19 return StatusCode::SUCCESS;
20 }
21
22 StatusCode
23 gFexRhoCvtrAlgTool::run(const EventContext& ctx) const {
24
26 CHECK(inContainer.isValid());
27
28 ATH_MSG_DEBUG("Number of gFexRhoROIs read in " << inContainer->size());
29
31
32 auto outContainer = std::make_unique<OutContainer>();
33
34 outContainer->reserve(inContainer->size());
35
37 std::transform(std::cbegin(*inContainer),
38 std::cend(*inContainer),
39 std::back_inserter(*outContainer),
40 [](const auto& inTob){
41 return new ConcTOB(*inTob);});
42
44 ctx);
45 CHECK(h_write.record(std::move(outContainer)));
46
47 return StatusCode::SUCCESS;
48 }
49
50 std::string gFexRhoCvtrAlgTool::toString() const {
51 return "gFexRhoRoI to gFexRhoTOB converter";
52 }
53}
54
#define ATH_MSG_DEBUG(x)
#define CHECK(...)
Evaluate an expression and check for errors.
SG::WriteHandleKey< GlobalSim::IOBitwise::gFexRhoTOBContainer > m_gFexRhoTOBContainerKey
SG::ReadHandleKey< xAOD::gFexJetRoIContainer > m_gFexJetRoIKey
virtual std::string toString() const override
virtual StatusCode initialize() override
Initialize function running before first event.
virtual StatusCode run(const EventContext &ctx) const override
Main functional block running for each event.
gFexRhoCvtrAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
virtual bool isValid() override final
Can the handle be successfully dereferenced?
DataVector< GlobalSim::IOBitwise::gFexRhoTOB > gFexRhoTOBContainer
Definition gFexRhoTOB.h:75
AlgTool to read in LArStripNeighborhoods, and run the eRatio Algorithm.