AlgTool to move eFex TOBS into the GlobalSim TOB system.
More...
#include <eFexCvtrAlgTool.h>
|
| | eFexCvtrAlgTool (const std::string &type, const std::string &name, const IInterface *parent) |
| virtual | ~eFexCvtrAlgTool () 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 |
AlgTool to move eFex TOBS into the GlobalSim TOB system.
Definition at line 23 of file eFexCvtrAlgTool.h.
◆ eFexCvtrAlgTool()
| GlobalSim::eFexCvtrAlgTool::eFexCvtrAlgTool |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
◆ ~eFexCvtrAlgTool()
| virtual GlobalSim::eFexCvtrAlgTool::~eFexCvtrAlgTool |
( |
| ) |
|
|
overridevirtualdefault |
◆ initialize()
| StatusCode GlobalSim::eFexCvtrAlgTool::initialize |
( |
| ) |
|
|
overridevirtual |
Initialize function running before first event.
Definition at line 16 of file eFexCvtrAlgTool.cxx.
16 {
19
20 return StatusCode::SUCCESS;
21 }
#define CHECK(...)
Evaluate an expression and check for errors.
◆ run()
| StatusCode GlobalSim::eFexCvtrAlgTool::run |
( |
const EventContext & | ctx | ) |
const |
|
overridevirtual |
Main functional block running for each event.
Definition at line 24 of file eFexCvtrAlgTool.cxx.
24 {
25
26 SG::ReadHandle<xAOD::eFexEMRoIContainer> inContainer(
m_eEmRoIKey, ctx);
27 CHECK(inContainer.isValid());
28
29 ATH_MSG_DEBUG(
"Number of eFexROIs read in " << inContainer->size());
30
32
33 auto outContainer = std::make_unique<OutContainer>();
34
35 outContainer->reserve(inContainer->size());
36
37
38 using ConcTOB=GlobalSim::IOBitwise::eEmTOB;
39 std::transform(std::cbegin(*inContainer),
40 std::cend(*inContainer),
41 std::back_inserter(*outContainer),
42 [](const auto& inTob){
43 return new ConcTOB(*inTob);});
44
46 ctx);
47 CHECK(h_write.record(std::move(outContainer)));
48
49 return StatusCode::SUCCESS;
50 }
DataVector< GlobalSim::IOBitwise::eEmTOB > eEmTOBContainer
◆ toString()
| std::string GlobalSim::eFexCvtrAlgTool::toString |
( |
| ) |
const |
|
overridevirtual |
◆ m_eEmRoIKey
Definition at line 44 of file eFexCvtrAlgTool.h.
44{this, "eFexEMRoIKey", "L1_eEMRoI", "eFEXEM EDM"};
◆ m_eEmTOBContainerKey
Initial value:{
this,
"eEmTOBs",
"eEmTOBs",
"Key for GlobalSim eEmTOB container"}
Definition at line 48 of file eFexCvtrAlgTool.h.
48 {
49 this,
50 "eEmTOBs",
51 "eEmTOBs",
52 "Key for GlobalSim eEmTOB container"};
The documentation for this class was generated from the following files: