ATLAS Offline Software
Loading...
Searching...
No Matches
Egamma1_LArStrip_Fex.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4
5#ifndef GLOBALSIM_EGAMMA1_LARSTRIP_FEX_H
6#define GLOBALSIM_EGAMMA1_LARSTRIP_FEX_H
7
8/*
9 This Algorithm finds and outputs CaloCell in the neighborhoods of eFEX
10 RoIs. These neighhoods are used to run various Algorithms in GlobalSim.
11*/
12
13#include "ICaloCellsProducer.h"
14#include "eFexRoIAlgTool.h"
15
18
21
22#include <vector>
23
24namespace GlobalSim {
25
26
28 public:
29
30
31 Egamma1_LArStrip_Fex(const std::string& name, ISvcLocator* pSvcLocator);
32
33 virtual StatusCode initialize() override;
34 virtual StatusCode execute(const EventContext& ) const override;
35
36 private:
37
39 this,
40 "EventInfo",
41 "EventInfo",
42 "EventInfo name"};
43
44 // tool to get a vector of cal cells
45
46 ToolHandle<ICaloCellsProducer> m_cellProducer{this,
47 "caloCellProducer",
48 "EMB1CellFromCaloCells",
49 "AlgTool to provide a vector of CaloCells"
50 };
51
52 // tool to get eFexRoIs
53
54 ToolHandle<eFexRoIAlgTool>
56 "roiAlgTool",
57 "EMB1CellFromCaloCells",
58 "AlgTool to provide a vector<const xAOD::eFexEMRoI*>"};
59
60 Gaudi::Property<bool> m_dump {
61 this,
62 "dump",
63 false,
64 "flag to enable dumps"};
65
66 Gaudi::Property<bool> m_dumpTerse {
67 this,
68 "dumpTerse",
69 false,
70 "flag to enable terse dumps"};
71
74 this,
75 "stripNeighborhoodTOBKey",
76 "stripNeighborhoodTOBContainer",
77 "location to write strip neighborhoods of EFex RoIs, with the associated TOBs"};
78
79 StatusCode
80 findNeighborhoods(const std::vector<const xAOD::eFexEMRoI*>&,
81 const std::vector<const CaloCell*>&,
83
84 StatusCode
86 const std::vector<const CaloCell*>&,
88
89 StatusCode
91 const std::vector<const CaloCell*>&,
92 const CaloCell*&) const;
93
94 };
95
96}
97#endif
98
99
100
101
An algorithm that can be simultaneously executed in multiple threads.
Data object for each calorimeter readout cell.
Definition CaloCell.h:57
ToolHandle< eFexRoIAlgTool > m_roiAlgTool
ToolHandle< ICaloCellsProducer > m_cellProducer
virtual StatusCode execute(const EventContext &) const override
SG::WriteHandleKey< IOBitwise::eEmNbhoodTOBContainer > m_neighKey
StatusCode findNeighborhood(const xAOD::eFexEMRoI *, const std::vector< const CaloCell * > &, IOBitwise::eEmNbhoodTOBContainer &) const
StatusCode findClosestCellToRoI(const xAOD::eFexEMRoI *, const std::vector< const CaloCell * > &, const CaloCell *&) const
StatusCode findNeighborhoods(const std::vector< const xAOD::eFexEMRoI * > &, const std::vector< const CaloCell * > &, IOBitwise::eEmNbhoodTOBContainer &) const
Egamma1_LArStrip_Fex(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
virtual StatusCode initialize() override
Gaudi::Property< bool > m_dumpTerse
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
Property: Defining the container object.
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.
Definition eFexEMRoI.h:17