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// #include "../IO/IeEmTOB.h"
19
22
23#include <vector>
24
25namespace GlobalSim {
26
27
29 public:
30
31
32 Egamma1_LArStrip_Fex(const std::string& name, ISvcLocator* pSvcLocator);
33
34 virtual StatusCode initialize() override;
35 virtual StatusCode execute(const EventContext& ) const override;
36
37 private:
38
40 this,
41 "EventInfo",
42 "EventInfo",
43 "EventInfo name"};
44
45 // tool to get a vector of cal cells
46
47 ToolHandle<ICaloCellsProducer> m_cellProducer{this,
48 "caloCellProducer",
49 "EMB1CellFromCaloCells",
50 "AlgTool to provide a vector of CaloCells"
51 };
52
53 // tool to get eFexRoIs
54
55 ToolHandle<eFexRoIAlgTool>
57 "roiAlgTool",
58 "EMB1CellFromCaloCells",
59 "AlgTool to provide a vector<const xAOD::eFexEMRoI*>"};
60
61 Gaudi::Property<bool> m_dump {
62 this,
63 "dump",
64 false,
65 "flag to enable dumps"};
66
67 Gaudi::Property<bool> m_dumpTerse {
68 this,
69 "dumpTerse",
70 false,
71 "flag to enable terse dumps"};
72
75 this,
76 "stripNeighborhoodTOBKey",
77 "stripNeighborhoodTOBContainer",
78 "location to write strip neighborhoods of EFex RoIs, with the associated TOBs"};
79
80 StatusCode
81 findNeighborhoods(const std::vector<const xAOD::eFexEMRoI*>&,
82 const std::vector<const CaloCell*>&,
84
85 StatusCode
87 const std::vector<const CaloCell*>&,
89
90 StatusCode
92 const std::vector<const CaloCell*>&,
93 const CaloCell*&) const;
94
95 };
96
97}
98#endif
99
100
101
102
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