5#ifndef GLOBALSIM_EGAMMA1_ONLINEMAPNBHOOD_H
6#define GLOBALSIM_EGAMMA1_ONLINEMAPNBHOOD_H
22#include "Identifier/Identifier.h"
43 virtual StatusCode
execute(
const EventContext& )
const override;
58 ToolHandle<eFexRoIAlgTool>
62 "GlobalSim::eFexRoIAlgTool",
63 "AlgTool to provide a vector<const xAOD::eFexEMRoI*>"};
71 "Key for the container of the LAr cells sent to Global"};
105 "stripNeighborhoodTOBKey",
106 "stripNeighborhoodTOBContainer",
107 "location to write strip neighborhoods of EFex RoIs, with the associated TOBs"};
115 "flag to enable dumps"};
122 "flag to enable terse dumps"};
157 std::vector<std::vector<std::shared_ptr<const GlobalSim::GlobalLArCell>> >&)
const;
162 std::vector<std::vector<std::shared_ptr<const GlobalSim::GlobalLArCell>> >&)
const;
165 std::shared_ptr<const GlobalLArCell>
findMax(std::vector<std::shared_ptr<const GlobalLArCell>>&)
const;
An algorithm that can be simultaneously executed in multiple threads.
Helper class for offline cell identifiers.
ToolHandle< eFexRoIAlgTool > m_roiAlgTool
ToolHandle for the eFexRoI AlgTool.
const CaloCell_ID * m_calocell_id
SG::WriteHandleKey< std::vector< float > > m_eFEXphiKey
WriteHandle Key for the eFexRoI's phi (for valid windows, for DEBUG).
Egamma1_OnlineMapNbhood(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< bool > m_dumpTerse
Parameter to toggle dumping of brief information window information.
SG::WriteHandleKey< IOBitwise::eEmNbhoodTOBContainer > m_neighKey
WriteHandle Key for the resulting TOBs.
StatusCode findWindow(IdentifierHash, const GlobalSim::GlobalLArCellContainer &, std::vector< std::vector< std::shared_ptr< const GlobalSim::GlobalLArCell > > > &) const
Function to produce a window around an input seed cell.
std::shared_ptr< const GlobalLArCell > findMax(std::vector< std::shared_ptr< const GlobalLArCell > > &) const
Function to find the maximum energy cell in a vector of cells.
virtual StatusCode execute(const EventContext &) const override
execute function running for every event
SG::WriteHandleKey< std::vector< float > > m_eFEXetaKey
WriteHandle Key for the eFexRoI's eta (for valid windows, for DEBUG).
const LArEM_ID * m_larem_id
StatusCode findMaxima(IdentifierHash &, std::vector< std::vector< std::shared_ptr< const GlobalSim::GlobalLArCell > > > &) const
Function to find the maximum energy cell in a window.
SG::WriteHandleKey< std::vector< float > > m_FailedeFEXetaKey
WriteHandle Key for the eFexRoI's eta (for invalid windows, for DEBUG).
virtual StatusCode initialize() override
initialize function running before the first event
StatusCode findNeighborhoods_OnlineMap(const std::vector< const xAOD::eFexEMRoI * > &, const GlobalSim::GlobalLArCellContainer &, std::vector< bool > &, IOBitwise::eEmNbhoodTOBContainer &) const
Function to produce mutliple windows from a vector of incoming eFeX RoIs.
StatusCode findNeighborhood_OnlineMap(const xAOD::eFexEMRoI *, const GlobalSim::GlobalLArCellContainer &, bool &, IOBitwise::eEmNbhoodTOBContainer &) const
Function to produce a window from an incoming eFeX RoI.
SG::WriteHandleKey< std::vector< float > > m_FailedeFEXphiKey
WriteHandle Key for the eFexRoI's phi (for invalid windows, for DEBUG).
Gaudi::Property< bool > m_dump
Parameter to toggle dumping of full information window information.
SG::ReadHandleKey< GlobalSim::GlobalLArCellContainer > m_gblLArCellContainerKey
ReadHandle Key to the GlobalLArCellContainer.
bool findSeedCell(float, float, const GlobalSim::GlobalLArCellContainer &, Identifier &) const
Function to find the seed cell for a window from the eFeX RoI position.
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
ReadHandle Key for the EventInfo object.
bool findHalfStrips(int, float, float, const GlobalSim::GlobalLArCellContainer &, Identifier &) const
Function to search for seed cells according to local granularity.
This is a "hash" representation of an Identifier.
Helper class for LArEM offline identifiers.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
DataVector< GlobalSim::IOBitwise::eEmNbhoodTOB > eEmNbhoodTOBContainer
AlgTool that to test whether expected the TIP values generated by data supplied by eEmMultTestBench c...
eFexEMRoI_v1 eFexEMRoI
Define the latest version of the eFexEMRoI class.