ATLAS Offline Software
Loading...
Searching...
No Matches
GepEratioAlg.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3 */
4
5#ifndef TRIGGEPPERF_GEPERATIOALG_H
6#define TRIGGEPPERF_GEPERATIOALG_H
7
14#include "Gaudi/Property.h"
15
16namespace Gep {
17
18template <typename T>
20public:
21 GepEratioAlg(const std::string& name, ISvcLocator* pSvcLocator);
22
23 virtual StatusCode initialize() override;
24 virtual StatusCode execute(const EventContext& ctx) const override;
25
26private:
27 SG::ReadHandleKey<DataVector<T>> m_seedsKey{this, "SeedsKey", "L1_eEMRoI", "Input eFex seeds"};
28 SG::ReadHandleKey<Gep::GepCellMap> m_gepCellsKey{this, "gepCellMapKey", "GepCells", "Input calo cells map"};
29
31 this, "OutputEratioDecorKey", "Eratio", "Output variable decorated with Eratio result"};
32
33 Gaudi::Property<unsigned int> m_etaWindowHalfSize{
34 this, "EtaWindowHalfSize", 8, "Half-size of window in eta (total size = 2*HalfSize + 1)"};
35
36 Gaudi::Property<unsigned int> m_phiWindowHalfSize{
37 this, "PhiWindowHalfSize", 1, "Half-size of window in phi (total size = 2*HalfSize + 1)"};
38
39};
40
41}
42
43#include "GepEratioAlg.ixx"
44
45
46
47class GepEMEratioAlg: public Gep::GepEratioAlg<xAOD::eFexEMRoI>
48{
49public:
50 GepEMEratioAlg(const std::string& name, ISvcLocator* pSvcLocator) : Gep::GepEratioAlg<xAOD::eFexEMRoI>(name, pSvcLocator) {}
51};
52
53class GepTauEratioAlg: public Gep::GepEratioAlg<xAOD::eFexTauRoI>
54{
55public:
56 GepTauEratioAlg(const std::string& name, ISvcLocator* pSvcLocator) : Gep::GepEratioAlg<xAOD::eFexTauRoI>(name, pSvcLocator) {}
57};
58
59#endif
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
GepEMEratioAlg(const std::string &name, ISvcLocator *pSvcLocator)
GepTauEratioAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize() override
GepEratioAlg(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadHandleKey< DataVector< T > > m_seedsKey
Gaudi::Property< unsigned int > m_etaWindowHalfSize
SG::ReadHandleKey< Gep::GepCellMap > m_gepCellsKey
Gaudi::Property< unsigned int > m_phiWindowHalfSize
virtual StatusCode execute(const EventContext &ctx) const override
SG::WriteDecorHandleKey< DataVector< T > > m_eratioKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.