ATLAS Offline Software
Loading...
Searching...
No Matches
MuCalStreamerTool.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 TRIGL2MUONSA_MUCALSTREAMERTOOL_H
6#define TRIGL2MUONSA_MUCALSTREAMERTOOL_H
7
9#include "GaudiKernel/ServiceHandle.h"
10
11#include "MdtData.h"
12#include "RpcData.h"
13#include "TgcData.h"
14#include "TrackData.h"
21#include "xAODTrigger/MuonRoI.h"
24
25#include <fstream>
26#include <string>
27#include <vector>
28
29// --------------------------------------------------------------------------------
30// --------------------------------------------------------------------------------
31
32namespace LVL1 {
33 class RecMuonRoI;
34}
35
37 class MdtCalibFragment;
38 class RpcCalibFragment;
39 class TgcCalibFragment;
40}
41
42class RpcPad;
44
45inline unsigned bcBitmap(uint16_t bcTag) {
46 return (bcTag == 1 ? 4 :
47 ((bcTag == 0 || bcTag == 2) ? 2 :
48 (bcTag == 3 ? 1 : 0)));
49}
50
51namespace TrigL2MuonSA {
52
54 {
55 public:
56
57 MuCalStreamerTool(const std::string& type,
58 const std::string& name,
59 const IInterface* parent);
60
61 virtual StatusCode initialize() override;
62
63 // create the fragment corresponding to an roi
64 StatusCode createRoiFragment(const xAOD::MuonRoI* roi,
65 TrigL2MuonSA::TrackPattern& trackPattern,
66 TrigL2MuonSA::MdtHits& mdtHits,
67 TrigL2MuonSA::RpcHits& rpcHits,
68 TrigL2MuonSA::TgcHits& tgcHits,
69 std::vector<uint32_t>& localBuffer, // Add localBuffer parameter
70 const EventContext& ctx) const;
71
72 private:
73
74 SG::ReadHandleKey<TgcRdoContainer> m_tgcRdoKey{this, "TgcRdoContainer", "TGCRDO", "Tgc RDO Input"};
75 SG::ReadHandleKey<xAOD::EventInfo> m_eventInfoKey{ this, "EventInfoKey", "EventInfo", "" };
76 SG::ReadHandleKey<RpcPadContainer> m_rpcPadKey{this, "RpcPadContainerKey", "RPCPAD", "RpcPad container fro MuCalStreamerTool"};
77
78 // the region selector
79 ToolHandle<IRegSelTool> m_regSel_MDT{this, "RegSel_MDT", "RegSelTool/RegSelTool_MDT", "MDT Region Selector Tool"};
80 ToolHandle<IRegSelTool> m_regSel_TGC{this, "RegSel_TGC", "RegSelTool/RegSelTool_TGC", "TGC Region Selector Tool"};
81
82 SG::ReadCondHandleKey<RpcCablingCondData> m_readKey{this, "ReadKey", "RpcCablingCondData", "Key of RpcCablingCondData"};
83
84 // create the MDT fragment
85 StatusCode createMdtFragment(TrigL2MuonSA::MdtHits& mdtHits,
86 LVL2_MUON_CALIBRATION::MdtCalibFragment& mdtFragment, float phi) const;
87
88 // create the RPC fragment
89 StatusCode createRpcFragment(const xAOD::MuonRoI* roi,
90 LVL2_MUON_CALIBRATION::RpcCalibFragment& rpcFragment, const EventContext& ctx) const;
91
92 // create the TGC fragment
93 StatusCode createTgcFragment(std::vector<uint32_t>& tgcRobIdList,
94 LVL2_MUON_CALIBRATION::TgcCalibFragment& tgcFragment, const EventContext& ctx) const;
95
96 };
97
98} // namespace TrigL2MuonSA
99
100#endif //
Scalar phi() const
phi method
unsigned bcBitmap(uint16_t bcTag)
Property holding a SG store/key/clid from which a ReadHandle is made.
unsigned bcTag(unsigned bcBitMap)
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
This class defines the reconstructed Muon ROI.
Definition RecMuonRoI.h:60
ROBDataProviderSvc provides access to individual ROB fragments.
Property holding a SG store/key/clid from which a ReadHandle is made.
StatusCode createTgcFragment(std::vector< uint32_t > &tgcRobIdList, LVL2_MUON_CALIBRATION::TgcCalibFragment &tgcFragment, const EventContext &ctx) const
ToolHandle< IRegSelTool > m_regSel_MDT
StatusCode createMdtFragment(TrigL2MuonSA::MdtHits &mdtHits, LVL2_MUON_CALIBRATION::MdtCalibFragment &mdtFragment, float phi) const
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
StatusCode createRpcFragment(const xAOD::MuonRoI *roi, LVL2_MUON_CALIBRATION::RpcCalibFragment &rpcFragment, const EventContext &ctx) const
SG::ReadCondHandleKey< RpcCablingCondData > m_readKey
MuCalStreamerTool(const std::string &type, const std::string &name, const IInterface *parent)
ToolHandle< IRegSelTool > m_regSel_TGC
virtual StatusCode initialize() override
SG::ReadHandleKey< TgcRdoContainer > m_tgcRdoKey
SG::ReadHandleKey< RpcPadContainer > m_rpcPadKey
StatusCode createRoiFragment(const xAOD::MuonRoI *roi, TrigL2MuonSA::TrackPattern &trackPattern, TrigL2MuonSA::MdtHits &mdtHits, TrigL2MuonSA::RpcHits &rpcHits, TrigL2MuonSA::TgcHits &tgcHits, std::vector< uint32_t > &localBuffer, const EventContext &ctx) const
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
std::vector< MdtHitData > MdtHits
Definition MdtData.h:56
std::vector< RpcHitData > RpcHits
Definition RpcData.h:57
std::vector< TgcHitData > TgcHits
Definition TgcData.h:43
MuonRoI_v1 MuonRoI
Definition MuonRoI.h:15