ATLAS Offline Software
Loading...
Searching...
No Matches
MuonInputProvider.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 L1TopoSimulation_MuonInputProvider
6#define L1TopoSimulation_MuonInputProvider
7
11#include "GaudiKernel/ToolHandle.h"
12#include "GaudiKernel/LockedHandle.h"
18
20
21#include <vector>
22
23namespace TrigConf
24{
25 class L1Menu;
26} // namespace TrigConf
27
28namespace TCS {
29 class MuonTOB;
30 class LateMuonTOB;
31}
32
33namespace LVL1 {
34
36
37 class MuonInputProvider : public extends<AthAlgTool, IInputTOBConverter> {
38 public:
39 MuonInputProvider(const std::string& type, const std::string& name,
40 const IInterface* parent);
41
42 virtual StatusCode initialize() override;
43
44 virtual StatusCode fillTopoInputEvent(TCS::TopoInputEvent& ) const override;
45
46 private:
47 TCS::MuonTOB createMuonTOB(const xAOD::MuonRoI & muonRoI, const std::vector<unsigned int> & rpcPtValues, const std::vector<unsigned int> & tgcPtValues) const;
49 TCS::LateMuonTOB createLateMuonTOB(const xAOD::MuonRoI & muonRoI, const std::vector<unsigned int> & rpcPtValues, const std::vector<unsigned int> & tgcPtValues) const;
51
52 /*
53 @brief use L1Topo convention for muon flags (1 = true/positive, -1 = false/negative, 0 = undefined)
54 */
55 int topoFlag(bool flag) const;
56
57 ToolHandle<LVL1::ITrigT1MuonRecRoiTool> m_recRPCRoiTool{this, "RecRpcRoiTool", "LVL1::TrigT1RPCRecRoiTool/TrigT1RPCRecRoiTool", "RPC RoI reconstruction tool"};
58 ToolHandle<LVL1::ITrigT1MuonRecRoiTool> m_recTGCRoiTool{this, "RecTgcRoiTool", "LVL1::TrigT1TGCRecRoiTool/TrigT1TGCRecRoiTool", "TGC RoI reconstruction tool"};
59 ToolHandle<GenericMonitoringTool> m_monTool {this, "MonTool", "", "Monitoring tool to create online histograms"};
60
61 SG::ReadHandleKey<LVL1::MuCTPIL1Topo> m_MuCTPItoL1TopoLocation { this, "locationMuCTPItoL1Topo", LVL1MUCTPI::DEFAULT_MuonL1TopoLocation, "Storegate key for MuCTPItoL1Topo "};
62 SG::ReadHandleKey<LVL1::MuCTPIL1Topo> m_MuCTPItoL1TopoLocationPlusOne { this, "locationMuCTPItoL1Topo1", LVL1MUCTPI::DEFAULT_MuonL1TopoLocation, "Storegate key for MuCTPItoL1TopoPlusOne"};
63 SG::ReadHandleKey<xAOD::MuonRoIContainer> m_MuonL1RoILocation {this, "locationMuonRoI", "LVL1MuonRoIs", "Empty=Use Muctpi, LVL1MuonRoIs=Use reading from xAOD L1 RoI"};
64 SG::ReadHandleKey<xAOD::MuonRoIContainer> m_MuonL1RoILocationPlusOne {this, "locationMuonRoI1", "LVL1MuonRoIsBCp1", "Empty=Use Muctpi, LVL1MuonRoIs=Use reading from xAOD L1 RoI"};
65
66 };
67}
68
69#endif
Header file to be included by clients of the Monitored infrastructure.
MuCTPI input class to the L1Topo simulation.
SG::ReadHandleKey< LVL1::MuCTPIL1Topo > m_MuCTPItoL1TopoLocationPlusOne
ToolHandle< GenericMonitoringTool > m_monTool
ToolHandle< LVL1::ITrigT1MuonRecRoiTool > m_recRPCRoiTool
int topoFlag(bool flag) const
TCS::LateMuonTOB createLateMuonTOB(const xAOD::MuonRoI &muonRoI, const std::vector< unsigned int > &rpcPtValues, const std::vector< unsigned int > &tgcPtValues) const
virtual StatusCode initialize() override
TCS::MuonTOB createMuonTOB(const xAOD::MuonRoI &muonRoI, const std::vector< unsigned int > &rpcPtValues, const std::vector< unsigned int > &tgcPtValues) const
SG::ReadHandleKey< LVL1::MuCTPIL1Topo > m_MuCTPItoL1TopoLocation
ToolHandle< LVL1::ITrigT1MuonRecRoiTool > m_recTGCRoiTool
SG::ReadHandleKey< xAOD::MuonRoIContainer > m_MuonL1RoILocationPlusOne
virtual StatusCode fillTopoInputEvent(TCS::TopoInputEvent &) const override
MuonInputProvider(const std::string &type, const std::string &name, const IInterface *parent)
SG::ReadHandleKey< xAOD::MuonRoIContainer > m_MuonL1RoILocation
Property holding a SG store/key/clid from which a ReadHandle is made.
L1 menu configuration.
Definition L1Menu.h:28
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Forward iterator to traverse the main components of the trigger configuration.
Definition Config.h:22
MuonRoI_v1 MuonRoI
Definition MuonRoI.h:15