ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigAlgorithms
TrigL2MuonSA
src
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
8
#include "
AthenaBaseComps/AthAlgTool.h
"
9
#include "GaudiKernel/ServiceHandle.h"
10
11
#include "
MdtData.h
"
12
#include "
RpcData.h
"
13
#include "
TgcData.h
"
14
#include "
TrackData.h
"
15
#include "
MuonCnvToolInterfaces/IMuonRawDataProviderTool.h
"
16
#include "
RPC_CondCabling/RpcCablingCondData.h
"
17
#include "
StoreGate/ReadCondHandleKey.h
"
18
#include "
IRegionSelector/IRegSelTool.h
"
19
#include "
MuonRDO/TgcRdoContainer.h
"
20
#include "
StoreGate/ReadHandleKey.h
"
21
#include "
xAODTrigger/MuonRoI.h
"
22
#include "
xAODEventInfo/EventInfo.h
"
23
#include "
MuonRDO/RpcPadContainer.h
"
24
25
#include <fstream>
26
#include <string>
27
#include <vector>
28
29
// --------------------------------------------------------------------------------
30
// --------------------------------------------------------------------------------
31
32
namespace
LVL1
{
33
class
RecMuonRoI
;
34
}
35
36
namespace
LVL2_MUON_CALIBRATION
{
37
class
MdtCalibFragment;
38
class
RpcCalibFragment;
39
class
TgcCalibFragment;
40
}
41
42
class
RpcPad
;
43
class
ROBDataProviderSvc
;
44
45
inline
unsigned
bcBitmap
(uint16_t
bcTag
) {
46
return
(
bcTag
== 1 ? 4 :
47
((
bcTag
== 0 ||
bcTag
== 2) ? 2 :
48
(
bcTag
== 3 ? 1 : 0)));
49
}
50
51
namespace
TrigL2MuonSA
{
52
53
class
MuCalStreamerTool
:
public
AthAlgTool
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
//
phi
Scalar phi() const
phi method
Definition
AmgMatrixBasePlugin.h:67
AthAlgTool.h
IMuonRawDataProviderTool.h
IRegSelTool.h
MdtData.h
bcBitmap
unsigned bcBitmap(uint16_t bcTag)
Definition
MuCalStreamerTool.h:45
MuonRoI.h
ReadCondHandleKey.h
RpcCablingCondData.h
RpcData.h
RpcPadContainer.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
bcTag
unsigned bcTag(unsigned bcBitMap)
Definition
TgcByteStreamData.h:357
TgcData.h
TgcRdoContainer.h
TrackData.h
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
LVL1::RecMuonRoI
This class defines the reconstructed Muon ROI.
Definition
RecMuonRoI.h:60
ROBDataProviderSvc
ROBDataProviderSvc provides access to individual ROB fragments.
Definition
ROBDataProviderSvc.h:33
RpcPad
Definition
RpcPad.h:22
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
TrigL2MuonSA::MuCalStreamerTool::createTgcFragment
StatusCode createTgcFragment(std::vector< uint32_t > &tgcRobIdList, LVL2_MUON_CALIBRATION::TgcCalibFragment &tgcFragment, const EventContext &ctx) const
Definition
MuCalStreamerTool.cxx:324
TrigL2MuonSA::MuCalStreamerTool::m_regSel_MDT
ToolHandle< IRegSelTool > m_regSel_MDT
Definition
MuCalStreamerTool.h:79
TrigL2MuonSA::MuCalStreamerTool::createMdtFragment
StatusCode createMdtFragment(TrigL2MuonSA::MdtHits &mdtHits, LVL2_MUON_CALIBRATION::MdtCalibFragment &mdtFragment, float phi) const
Definition
MuCalStreamerTool.cxx:197
TrigL2MuonSA::MuCalStreamerTool::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition
MuCalStreamerTool.h:75
TrigL2MuonSA::MuCalStreamerTool::createRpcFragment
StatusCode createRpcFragment(const xAOD::MuonRoI *roi, LVL2_MUON_CALIBRATION::RpcCalibFragment &rpcFragment, const EventContext &ctx) const
Definition
MuCalStreamerTool.cxx:239
TrigL2MuonSA::MuCalStreamerTool::m_readKey
SG::ReadCondHandleKey< RpcCablingCondData > m_readKey
Definition
MuCalStreamerTool.h:82
TrigL2MuonSA::MuCalStreamerTool::MuCalStreamerTool
MuCalStreamerTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
MuCalStreamerTool.cxx:19
TrigL2MuonSA::MuCalStreamerTool::m_regSel_TGC
ToolHandle< IRegSelTool > m_regSel_TGC
Definition
MuCalStreamerTool.h:80
TrigL2MuonSA::MuCalStreamerTool::initialize
virtual StatusCode initialize() override
Definition
MuCalStreamerTool.cxx:29
TrigL2MuonSA::MuCalStreamerTool::m_tgcRdoKey
SG::ReadHandleKey< TgcRdoContainer > m_tgcRdoKey
Definition
MuCalStreamerTool.h:74
TrigL2MuonSA::MuCalStreamerTool::m_rpcPadKey
SG::ReadHandleKey< RpcPadContainer > m_rpcPadKey
Definition
MuCalStreamerTool.h:76
TrigL2MuonSA::MuCalStreamerTool::createRoiFragment
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
Definition
MuCalStreamerTool.cxx:47
TrigL2MuonSA::TrackPattern
Definition
TrackData.h:16
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition
IZdcDataAccess.h:13
LVL2_MUON_CALIBRATION
Definition
MuCalStreamerTool.h:36
TrigL2MuonSA
Definition
AlignmentBarrelLUT.h:13
TrigL2MuonSA::MdtHits
std::vector< MdtHitData > MdtHits
Definition
MdtData.h:56
TrigL2MuonSA::RpcHits
std::vector< RpcHitData > RpcHits
Definition
RpcData.h:57
TrigL2MuonSA::TgcHits
std::vector< TgcHitData > TgcHits
Definition
TgcData.h:43
xAOD::MuonRoI
MuonRoI_v1 MuonRoI
Definition
MuonRoI.h:15
type
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0