AlgTool to extract the gFex Rho information into the GlobalSim TOB system.
More...
#include <gFexRhoCvtrAlgTool.h>
AlgTool to extract the gFex Rho information into the GlobalSim TOB system.
Definition at line 23 of file gFexRhoCvtrAlgTool.h.
◆ gFexRhoCvtrAlgTool()
| GlobalSim::gFexRhoCvtrAlgTool::gFexRhoCvtrAlgTool |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
◆ ~gFexRhoCvtrAlgTool()
| virtual GlobalSim::gFexRhoCvtrAlgTool::~gFexRhoCvtrAlgTool |
( |
| ) |
|
|
overridevirtualdefault |
◆ initialize()
| StatusCode GlobalSim::gFexRhoCvtrAlgTool::initialize |
( |
| ) |
|
|
overridevirtual |
Initialize function running before first event.
Definition at line 15 of file gFexRhoCvtrAlgTool.cxx.
15 {
18
19 return StatusCode::SUCCESS;
20 }
#define CHECK(...)
Evaluate an expression and check for errors.
◆ 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
44 ctx);
45 CHECK(h_write.record(std::move(outContainer)));
46
47 return StatusCode::SUCCESS;
48 }
DataVector< GlobalSim::IOBitwise::gFexRhoTOB > gFexRhoTOBContainer
◆ toString()
| std::string GlobalSim::gFexRhoCvtrAlgTool::toString |
( |
| ) |
const |
|
overridevirtual |
◆ m_gFexJetRoIKey
Definition at line 44 of file gFexRhoCvtrAlgTool.h.
44{this, "gFexJetRoIKey", "L1_gFexRhoRoI", "gFexRho EDM"};
◆ m_gFexRhoTOBContainerKey
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: