ATLAS Offline Software
Loading...
Searching...
No Matches
GlobalSim::gFexRhoCvtrAlgTool Class Reference

AlgTool to extract the gFex Rho information into the GlobalSim TOB system. More...

#include <gFexRhoCvtrAlgTool.h>

Inheritance diagram for GlobalSim::gFexRhoCvtrAlgTool:
Collaboration diagram for GlobalSim::gFexRhoCvtrAlgTool:

Public Member Functions

 gFexRhoCvtrAlgTool (const std::string &type, const std::string &name, const IInterface *parent)
virtual ~gFexRhoCvtrAlgTool () override=default
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.
virtual std::string toString () const override

Private Attributes

SG::ReadHandleKey< xAOD::gFexJetRoIContainerm_gFexJetRoIKey {this, "gFexJetRoIKey", "L1_gFexRhoRoI", "gFexRho EDM"}
SG::WriteHandleKey< GlobalSim::IOBitwise::gFexRhoTOBContainerm_gFexRhoTOBContainerKey

Detailed Description

AlgTool to extract the gFex Rho information into the GlobalSim TOB system.

Definition at line 23 of file gFexRhoCvtrAlgTool.h.

Constructor & Destructor Documentation

◆ gFexRhoCvtrAlgTool()

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

Definition at line 9 of file gFexRhoCvtrAlgTool.cxx.

11 :
12 base_class(type, name, parent){
13 }

◆ ~gFexRhoCvtrAlgTool()

virtual GlobalSim::gFexRhoCvtrAlgTool::~gFexRhoCvtrAlgTool ( )
overridevirtualdefault

Member Function Documentation

◆ initialize()

StatusCode GlobalSim::gFexRhoCvtrAlgTool::initialize ( )
overridevirtual

Initialize function running before first event.

Definition at line 15 of file gFexRhoCvtrAlgTool.cxx.

15 {
16 CHECK(m_gFexJetRoIKey.initialize());
17 CHECK(m_gFexRhoTOBContainerKey.initialize());
18
19 return StatusCode::SUCCESS;
20 }
#define CHECK(...)
Evaluate an expression and check for errors.
SG::WriteHandleKey< GlobalSim::IOBitwise::gFexRhoTOBContainer > m_gFexRhoTOBContainerKey
SG::ReadHandleKey< xAOD::gFexJetRoIContainer > m_gFexJetRoIKey

◆ run()

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

Main functional block running for each event.

Definition at line 23 of file gFexRhoCvtrAlgTool.cxx.

23 {
24
25 SG::ReadHandle<xAOD::gFexJetRoIContainer> inContainer(m_gFexJetRoIKey, ctx);
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
36 using ConcTOB=GlobalSim::IOBitwise::gFexRhoTOB;
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
43 auto h_write = SG::WriteHandle<OutContainer>(m_gFexRhoTOBContainerKey,
44 ctx);
45 CHECK(h_write.record(std::move(outContainer)));
46
47 return StatusCode::SUCCESS;
48 }
#define ATH_MSG_DEBUG(x)
DataVector< GlobalSim::IOBitwise::gFexRhoTOB > gFexRhoTOBContainer
Definition gFexRhoTOB.h:75

◆ toString()

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

Definition at line 50 of file gFexRhoCvtrAlgTool.cxx.

50 {
51 return "gFexRhoRoI to gFexRhoTOB converter";
52 }

Member Data Documentation

◆ m_gFexJetRoIKey

SG::ReadHandleKey<xAOD::gFexJetRoIContainer> GlobalSim::gFexRhoCvtrAlgTool::m_gFexJetRoIKey {this, "gFexJetRoIKey", "L1_gFexRhoRoI", "gFexRho EDM"}
private

Definition at line 44 of file gFexRhoCvtrAlgTool.h.

44{this, "gFexJetRoIKey", "L1_gFexRhoRoI", "gFexRho EDM"};

◆ m_gFexRhoTOBContainerKey

SG::WriteHandleKey<GlobalSim::IOBitwise::gFexRhoTOBContainer> GlobalSim::gFexRhoCvtrAlgTool::m_gFexRhoTOBContainerKey
private
Initial value:
{
this,
"gFexRhoTOBs",
"gFexRhoTOBs",
"Key for GlobalSim gFexRhoTOB container"}

Definition at line 48 of file gFexRhoCvtrAlgTool.h.

48 {
49 this,
50 "gFexRhoTOBs",
51 "gFexRhoTOBs",
52 "Key for GlobalSim gFexRhoTOB container"};

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