|
ATLAS Offline Software
|
Tool used in the persisency convertors to help rebuild EDM objects.
More...
#include <MuonEventCnvTool.h>
|
ServiceHandle< Muon::IMuonIdHelperSvc > | m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"} |
|
SG::ReadHandleKey< RpcPrepDataContainer > | m_rpcPrdKey {this, "RpcClusterContainer", "RPC_Measurements", "Location for RPC PRDs"} |
|
SG::ReadHandleKey< CscPrepDataContainer > | m_cscPrdKey {this, "CscClusterContainer", "CSC_Clusters", "Location for CSC PRDs"} |
|
SG::ReadHandleKey< TgcPrepDataContainer > | m_tgcPrdKey {this, "TgcClusterContainer", "TGC_MeasurementsAllBCs", "Location for TGC PRDs"} |
|
SG::ReadHandleKey< MdtPrepDataContainer > | m_mdtPrdKey {this, "MdtClusterContainer", "MDT_DriftCircles", "Location for MDT PRDs"} |
|
SG::ReadHandleKey< MMPrepDataContainer > | m_mmPrdKey {this, "MM_ClusterContainer", "MM_Measurements", "Location for MM PRDs"} |
|
SG::ReadHandleKey< sTgcPrepDataContainer > | m_stgcPrdKey {this, "STGC_ClusterContainer", "STGC_Measurements", "Location for sTGC PRDs"} |
|
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > | m_detectorManagerKey |
|
Gaudi::Property< bool > | m_manuallyFindPRDs |
| If true, search for PRDs manually - i.e. More...
|
|
Gaudi::Property< bool > | m_fixTGCs {this, "FixTGCs", false, "If true, try to fix broken EL, e.g. ATLASRECTS-5151"} |
|
Tool used in the persisency convertors to help rebuild EDM objects.
Definition at line 30 of file MuonEventCnvTool.h.
◆ MuonConcreteType
◆ MuonEventCnvTool()
Muon::MuonEventCnvTool::MuonEventCnvTool |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ checkRoT()
check that the RoT is correctly filled
Definition at line 46 of file MuonEventCnvTool.cxx.
63 ATH_MSG_ERROR(
"Type does not match known concrete type of MuonSpectrometer! Dumping RoT:" << rioOnTrack);
66 <<
"MM=" <<
MM <<
")");
◆ getDetectorElement() [1/2]
Return the detectorElement associated with this Identifier.
Definition at line 169 of file MuonEventCnvTool.cxx.
170 const EventContext& ctx = Gaudi::Hive::currentContext();
173 if (!muonMgrHandle.isValid()) {
174 ATH_MSG_ERROR(
"Failed to retrieve the Muon detector manager from the conditions store");
177 muonMgr = muonMgrHandle.cptr();
182 detEl = muonMgr->getRpcReadoutElement(
id);
184 detEl = muonMgr->getCscReadoutElement(
id);
186 detEl = muonMgr->getTgcReadoutElement(
id);
188 detEl = muonMgr->getMdtReadoutElement(
id);
190 detEl = muonMgr->getsTgcReadoutElement(
id);
192 detEl = muonMgr->getMMReadoutElement(
id);
◆ getDetectorElement() [2/2]
◆ getLink() [1/2]
◆ getLink() [2/2]
Definition at line 216 of file MuonEventCnvTool.cxx.
219 if (!handle.isValid()) {
226 auto ptr = handle->indexFindPtr(idHash);
234 for (
const auto& collIt : *
ptr) {
235 if (collIt->identify() ==
id)
return collIt;
◆ getLinks()
Definition at line 70 of file MuonEventCnvTool.cxx.
91 return std::pair<const Trk::TrkDetElementBase*, const Trk::PrepRawData*>(detEl, prd);
◆ initialize()
StatusCode Muon::MuonEventCnvTool::initialize |
( |
| ) |
|
|
overridevirtual |
◆ prepareRIO_OnTrack()
Definition at line 94 of file MuonEventCnvTool.cxx.
97 prepareRIO_OnTrackElementLink<const Muon::MdtPrepDataContainer, Muon::MdtDriftCircleOnTrack>(mdt);
102 prepareRIO_OnTrackElementLink<const Muon::CscPrepDataContainer, Muon::CscClusterOnTrack>(csc);
107 prepareRIO_OnTrackElementLink<const Muon::RpcPrepDataContainer, Muon::RpcClusterOnTrack>(rpc);
112 prepareRIO_OnTrackElementLink<const Muon::TgcPrepDataContainer, Muon::TgcClusterOnTrack>(tgc);
117 prepareRIO_OnTrackElementLink<const Muon::sTgcPrepDataContainer, Muon::sTgcClusterOnTrack>(stgc);
122 prepareRIO_OnTrackElementLink<const Muon::MMPrepDataContainer, Muon::MMClusterOnTrack>(
mm);
◆ prepareRIO_OnTrackLink()
void Muon::MuonEventCnvTool::prepareRIO_OnTrackLink |
( |
const Trk::RIO_OnTrack * |
rot, |
|
|
ELKey_t & |
key, |
|
|
ELIndex_t & |
index |
|
) |
| const |
|
overridevirtual |
Similar, but just return the EL components rather then changing ROT.
Definition at line 127 of file MuonEventCnvTool.cxx.
130 prepareRIO_OnTrackElementLink<const Muon::MdtPrepDataContainer, Muon::MdtDriftCircleOnTrack>(mdt,
key,
index);
135 prepareRIO_OnTrackElementLink<const Muon::CscPrepDataContainer, Muon::CscClusterOnTrack>(csc,
key,
index);
140 prepareRIO_OnTrackElementLink<const Muon::RpcPrepDataContainer, Muon::RpcClusterOnTrack>(rpc,
key,
index);
145 prepareRIO_OnTrackElementLink<const Muon::TgcPrepDataContainer, Muon::TgcClusterOnTrack>(tgc,
key,
index);
150 prepareRIO_OnTrackElementLink<const Muon::sTgcPrepDataContainer, Muon::sTgcClusterOnTrack>(stgc,
key,
index);
155 prepareRIO_OnTrackElementLink<const Muon::MMPrepDataContainer, Muon::MMClusterOnTrack>(
mm,
key,
index);
◆ recreateRIO_OnTrack()
void Muon::MuonEventCnvTool::recreateRIO_OnTrack |
( |
Trk::RIO_OnTrack * |
RoT | ) |
const |
|
overridevirtual |
Take the passed RoT and recreate it (i.e.
fill missing pointers etc)
Definition at line 160 of file MuonEventCnvTool.cxx.
161 std::pair<const Trk::TrkDetElementBase*, const Trk::PrepRawData*> pair =
getLinks(*RoT);
◆ m_cscPrdKey
◆ m_detectorManagerKey
Initial value:{this, "DetectorManagerKey", "MuonDetectorManager",
"Key of input MuonDetectorManager condition data"}
Definition at line 77 of file MuonEventCnvTool.h.
◆ m_fixTGCs
Gaudi::Property<bool> Muon::MuonEventCnvTool::m_fixTGCs {this, "FixTGCs", false, "If true, try to fix broken EL, e.g. ATLASRECTS-5151"} |
|
private |
◆ m_idHelperSvc
◆ m_manuallyFindPRDs
Gaudi::Property<bool> Muon::MuonEventCnvTool::m_manuallyFindPRDs |
|
private |
Initial value:{this, "FindPRDsManually", false,
"If true, search for PRDs manually - i.e. do not rely on ElementLink working"}
If true, search for PRDs manually - i.e.
do not rely on ElementLink working
- Warning
- This functionality is left in primarily for debugging - will probably be removed in near future.
Definition at line 82 of file MuonEventCnvTool.h.
◆ m_mdtPrdKey
◆ m_mmPrdKey
◆ m_rpcPrdKey
◆ m_stgcPrdKey
◆ m_tgcPrdKey
The documentation for this class was generated from the following files:
Ensure that the Athena extensions are properly loaded.
Class to represent calibrated clusters formed from TGC strips.
Class to represent calibrated clusters formed from RPC strips.
#define ATH_MSG_VERBOSE(x)
ElementLinkToIDC_TGC_Container m_rio
PrepRawData object assoicated with this measurement.
Class to represent calibrated clusters formed from TGC strips.
Class to represent calibrated clusters formed from TGC strips.
Ensure that the ATLAS eigen extensions are properly loaded.
This class represents the corrected MDT measurements, where the corrections include the effects of wi...
StatusCode initialize(bool used=true)
virtual IdentifierHash idDE() const =0
returns the DE hashID
virtual const Trk::PrepRawData * prepRawData() const =0
returns the PrepRawData (also known as RIO) object to which this RIO_OnTrack is associated.
Class to represent the calibrated clusters created from CSC strips.
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
Identifier identify() const
return the identifier -extends MeasurementBase