ATLAS Offline Software
Loading...
Searching...
No Matches
RoIBResultToxAOD.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4//
5//
6#ifndef ANALYSISTRIGGERALGS_ROIBRESULTTOXAOD_H
7#define ANALYSISTRIGGERALGS_ROIBRESULTTOXAOD_H
8
9// Gaudi/Athena include(s):
11#include "GaudiKernel/ServiceHandle.h"
12#include "GaudiKernel/ToolHandle.h"
15
16// Tool/service include(s):
21
22// EDM include(s):
31
44
45public:
47 RoIBResultToxAOD( const std::string& name, ISvcLocator* svcLoc );
48
51
53 virtual bool isClonable() const override { return true; }
54
56 virtual StatusCode initialize() override;
57
59 virtual StatusCode execute(const EventContext& ctx) const override;
60
62
63private:
65 StatusCode createEmTauRoI( const ROIB::RoIBResult& roib,
66 const EventContext& ctx ) const;
68 StatusCode createJetEnergyRoI( const ROIB::RoIBResult& roib,
69 const EventContext& ctx ) const;
71 StatusCode createMuonRoI( const ROIB::RoIBResult& roib,
72 const EventContext& ctx ) const;
73
76
78 ToolHandle<LVL1::ITrigT1MuonRecRoiTool> m_recRPCRoiTool { this, "RecRpcRoiTool", "LVL1::TrigT1RPCRecRoiTool/TrigT1RPCRecRoiTool"};
80 ToolHandle< LVL1::ITrigT1MuonRecRoiTool > m_recTGCRoiTool {
81 this, "RecTgcRoiTool", "LVL1::TrigT1TGCRecRoiTool/TrigT1TGCRecRoiTool",
82 "TGC RoI reconstruction service" };
83
85
88
90 ToolHandle< LVL1::IL1CPMTools > m_emTauTool {
91 this, "L1CPMTools", "LVL1::L1CPMTools/L1CPMTools",
92 "Tool for calculation of EmTau trigger sums per RoI" };
93
94 ToolHandle< LVL1::IL1JEMJetTools > m_jetTool {
95 this, "L1JEMJetTools", "LVL1::L1JEMJetTools/L1JEMJetTools",
96 "Tool for calculation of Jet cluster sums per RoI" };
97
99
102
105 this, "RoIBResultInputKey", "RoIBResult",
106 "Key for the ROIB::RoIBResult input object" };
107
110 this, "CPMTowerLocation", LVL1::TrigT1CaloDefs::CPMTowerLocation,
111 "Key for the xAOD::CPMTowerContainer input object" };
112
114 this, "JetElementLocation", LVL1::TrigT1CaloDefs::JetElementLocation,
115 "Key for the xAOD::JetElementContainer input object" };
116
118
121
124 this, "xAODKeyMuon", "LVL1MuonRoIs",
125 "Key for the xAOD::MuonRoIContainer output object" };
126
128 this, "xAODKeyEmTau", "LVL1EmTauRoIs",
129 "Key for the xAOD::EmTauRoIContainer output object" };
130
132 this, "xAODKeyEsum", "LVL1EnergySumRoI",
133 "Key for the xAOD::EnergySumRoI output object" };
134
136 this, "xAODKeyJetEt", "LVL1JetEtRoI",
137 "Key for the xAOD::JetEtRoI output object" };
138
140 this, "xAODKeyJet", "LVL1JetRoIs",
141 "Key for the xAOD::JetRoIContainer output object" };
142
144
148 Gaudi::Property< bool > m_doCalo {
149 this, "DoCalo", true, "Use inputs from the Calo system" };
150
151 Gaudi::Property< bool > m_doMuon {
152 this, "DoMuon", true, "Use inputs from the Muon system" };
153
155 Gaudi::Property< std::vector< std::string > > m_egammaItem {
156 this, "EGammaItem", {}, "List of LVL1 items for e/gamma trigger type" };
157
158 Gaudi::Property< std::vector< std::string > > m_tauhadItem {
159 this, "TauHadItem", {}, "List of LVL1 items for tau trigger type" };
160
161 Gaudi::Property< std::vector< std::string > > m_jetItem {
162 this, "JetItem", {}, "List of LVL1 items for jet trigger type" };
163
164 Gaudi::Property< std::vector< std::string > > m_esumItem {
165 this, "ESumItem", {}, "List of LVL1 items for energy sum trigger type" };
166
167 Gaudi::Property< std::vector< std::string > > m_highmuItem {
168 this, "HighMuItem", {},
169 "List of LVL1 items for high pt muon trigger type" };
170
171 Gaudi::Property< std::vector< std::string > > m_lowmuItem {
172 this, "LowMuItem", {},
173 "List of LVL1 items for low pt muon trigger type" };
174
176
177}; // class RoIBResultToxAOD
178
179#endif // ANALYSISTRIGGERALGS_ROIBRESULTTOXAOD_H
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.
An algorithm that can be simultaneously executed in multiple threads.
static const std::string JetElementLocation
static const std::string CPMTowerLocation
Class holding the LVL1 RoIB result build by the RoIBuilder.
Definition RoIBResult.h:47
SG::ReadHandleKey< xAOD::CPMTowerContainer > m_cpmTowerKey
Read key for the xAOD::CPMTowerContainer object.
RoIBResultToxAOD(const std::string &name, ISvcLocator *svcLoc)
Algorithm constructor.
ToolHandle< LVL1::IL1JEMJetTools > m_jetTool
Tool for calculation of Jet cluster sums per RoI.
Gaudi::Property< std::vector< std::string > > m_tauhadItem
List of LVL1 items for tau trigger type.
ToolHandle< LVL1::ITrigT1MuonRecRoiTool > m_recRPCRoiTool
The RPC RoI reconstruction tool.
Gaudi::Property< std::vector< std::string > > m_highmuItem
List of LVL1 items for high pt muon trigger type.
ToolHandle< LVL1::ITrigT1MuonRecRoiTool > m_recTGCRoiTool
The TGC RoI reconstruction service.
Gaudi::Property< bool > m_doMuon
Use inputs from the Muon system.
StatusCode createMuonRoI(const ROIB::RoIBResult &roib, const EventContext &ctx) const
Create the Muon RoI objects.
Gaudi::Property< std::vector< std::string > > m_jetItem
List of LVL1 items for jet trigger type.
StatusCode createJetEnergyRoI(const ROIB::RoIBResult &roib, const EventContext &ctx) const
Create the JetEnergy RoI object.
Gaudi::Property< std::vector< std::string > > m_lowmuItem
List of LVL1 items for low pt muon trigger type.
SG::WriteHandleKey< xAOD::JetRoIContainer > m_jetRoIKey
Write key for the xAOD::JetRoIContainer object.
StatusCode createEmTauRoI(const ROIB::RoIBResult &roib, const EventContext &ctx) const
Create the EmTau RoI objects.
SG::ReadHandleKey< ROIB::RoIBResult > m_roibResultKey
Read key for the ROIB::RoIBResult object.
SG::WriteHandleKey< xAOD::EnergySumRoI > m_energysumRoIKey
Write key for the xAOD::EnergySumRoI object.
SG::WriteHandleKey< xAOD::MuonRoIContainer > m_muonRoIKey
Write key for the xAOD::MuonRoIContainer object.
virtual StatusCode initialize() override
Function initialising the algorithm.
Gaudi::Property< std::vector< std::string > > m_egammaItem
List of LVL1 items for e/gamma trigger type.
SG::WriteHandleKey< xAOD::JetEtRoI > m_jetetRoIKey
Write key for the xAOD::JetEtRoI object.
SG::WriteHandleKey< xAOD::EmTauRoIContainer > m_emtauRoIKey
Write key for the xAOD::EmTauRoIContainer object.
SG::ReadHandleKey< xAOD::JetElementContainer > m_jetElementKey
Read key for the xAOD::JetElementContainer object.
virtual bool isClonable() const override
Declare that the algorithm is clonable.
virtual StatusCode execute(const EventContext &ctx) const override
Function executing the algorithm.
Gaudi::Property< std::vector< std::string > > m_esumItem
List of LVL1 items for energy sum trigger type.
Gaudi::Property< bool > m_doCalo
ToolHandle< LVL1::IL1CPMTools > m_emTauTool
Tool for calculation of EmTau trigger sums per RoI.
Property holding a SG store/key/clid from which a WriteHandle is made.