10 const std::string& name,
11 const IInterface* parent):
12 base_class(
type, name, parent){
19 return StatusCode::SUCCESS;
24 const EventContext& ctx)
const {
26 if (dc){dc->collect(*
this,
"start");}
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());
37 auto outContainer = std::make_unique<OutContainer>();
41 for(
auto tob:*inContainer){
43 rho_bits += tob->gFexTobEt();
44 rho_scale = tob->tobEtScale();
47 outContainer->push_back(std::make_unique<IOBitwise::gFexRhoTOB>(rho_bits, rho_scale));
49 for(
auto tob:*outContainer){
55 CHECK(h_write.record(std::move(outContainer)));
57 if (dc){dc->collect(*
this,
"end");}
59 return StatusCode::SUCCESS;
63 return "gFexRhoRoI to gFexRhoTOB converter";
#define CHECK(...)
Evaluate an expression and check for errors.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
DataVector< GlobalSim::IOBitwise::gFexRhoTOB > gFexRhoTOBContainer
AlgTool to read in LArStripNeighborhoods, and run the BDT Algorithm.