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 25 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 std::unique_ptr< IDataCollector > & | dc, |
|
|
const EventContext & | ctx ) const |
|
overridevirtual |
Main functional block running for each event.
Definition at line 23 of file gFexRhoCvtrAlgTool.cxx.
24 {
25
26 if (dc){dc->collect(*this, "start");}
27
28 SG::ReadHandle<xAOD::gFexJetRoIContainer> inContainer(
m_gFexJetRoIKey, ctx);
29 CHECK(inContainer.isValid());
30
31 ATH_MSG_DEBUG(
"Number of gFexRhoROIs read in " << inContainer->size());
32 if(inContainer->size() != 3){
33 ATH_MSG_ERROR(
"Expected 3 input gFex Rho TOBs. I received " << inContainer->size());
34 }
35
37 auto outContainer = std::make_unique<OutContainer>();
38
41 for(auto tob:*inContainer){
43 rho_bits += tob->gFexTobEt();
44 rho_scale = tob->tobEtScale();
45 }
46
47 outContainer->push_back(std::make_unique<IOBitwise::gFexRhoTOB>(rho_bits, rho_scale));
48
49 for(auto tob:*outContainer){
51 }
52
54 ctx);
55 CHECK(h_write.record(std::move(outContainer)));
56
57 if (dc){dc->collect(*this, "end");}
58
59 return StatusCode::SUCCESS;
60 }
DataVector< GlobalSim::IOBitwise::gFexRhoTOB > gFexRhoTOBContainer
◆ toString()
| std::string GlobalSim::gFexRhoCvtrAlgTool::toString |
( |
| ) |
const |
|
overridevirtual |
◆ m_gFexJetRoIKey
Definition at line 47 of file gFexRhoCvtrAlgTool.h.
47{this, "gFexJetRoIKey", "L1_gFexRhoRoI", "gFexRho EDM"};
◆ m_gFexRhoTOBContainerKey
Initial value:{
this,
"gFexRhoTOBs",
"gFexRhoTOBs",
"Key for GlobalSim gFexRhoTOB container"}
Definition at line 51 of file gFexRhoCvtrAlgTool.h.
51 {
52 this,
53 "gFexRhoTOBs",
54 "gFexRhoTOBs",
55 "Key for GlobalSim gFexRhoTOB container"};
The documentation for this class was generated from the following files: