19 : base_class(t, n, p),
29 "If true (default), attempt to retrieve Muon helper tool and "
30 "convert Muon objects.");
31 declareProperty(
"DoID",
m_doID,
32 "If true (default), attempt to retrieve Inner Detector "
33 "helper tool and convert ID objects.");
35 "If true, ID on-track conversion tools will look for "
36 "background PRD collections");
38 "Maximum number of errors that will be reported");
44 <<
" WARNING or ERROR messages");
49 StatusCode
sc = detStore()->retrieve(
m_detID,
"AtlasID");
56 "This tool has been configured without either Muons or ID, and so "
57 "can't do anything. Problems likely.");
64 "Failed to retrieve InDet helper tool "
66 <<
". Will not be able to recreate ID Surfaces / Det Elements.");
79 "Failed to retrieve Muon helper tool "
81 <<
". Will not be able to recreate ID Surfaces / Det Elements.");
94 "Failed to retrieve either and InDet or a Muon tool. Will not be able "
95 "to recreate surfaces / detector elements.");
99 return StatusCode::SUCCESS;
103 msg() <<
"Finalize().";
106 <<
" ERROR/WARNING messages (with maximum permissable = "
109 return StatusCode::SUCCESS;
119 return &(*m_idCnvTool);
128 return &(*m_muonCnvTool);
132 "Muon RIO_OnTrack, but have no muon cnv tool. Cannot set check "
140 std::string ident =
m_detID->show_to_string(
id);
141 ATH_MSG_WARNING(
"Unknown Identifier: (" << ident <<
"), that is (" <<
id
149 const Surface* surface =
nullptr;
151 if (cnvTool !=
nullptr) {
153 if (detEl !=
nullptr)
154 surface = &(detEl->
surface(
id));
157 <<
id <<
" Returning 0.");
161 "getSurface: could not get cnv tool for Identifier:" <<
id);
169 if (cnvTool !=
nullptr) {
172 const type_info& info =
typeid(*RoT);
175 "recreateRIO_OnTrack: could not get cnv tool. Returning without "
176 "correctly filling ROT of type: "
183 if (cnvTool !=
nullptr) {
187 msg() <<
"prepareRIO_OnTrack could not find appropriate tool to prepare: "
188 << *RoT << std::endl;
194 ELIndex_t&
index)
const {
196 if (cnvTool !=
nullptr) {
200 msg() <<
"prepareRIO_OnTrack could not find appropriate tool to prepare: "
201 << *RoT << std::endl;
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
Class to handle RIO On Tracks ROT) for InDet and Muons, it inherits from the common MeasurementBase.
Identifier identify() const
return the identifier -extends MeasurementBase
Abstract Base Class for tracking surfaces.
This is the base class for all tracking detector elements with read-out relevant information.
virtual const Surface & surface() const =0
Return surface associated with this detector element.