|
ATLAS Offline Software
|
Tool to handle TP conversions for Tracking EDM.
More...
#include <EventCnvSuperTool.h>
Tool to handle TP conversions for Tracking EDM.
This tool has sub tools that do the detector-specific conversions
Definition at line 26 of file EventCnvSuperTool.h.
◆ EventCnvSuperTool()
Trk::EventCnvSuperTool::EventCnvSuperTool |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
Definition at line 16 of file EventCnvSuperTool.cxx.
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");
◆ ~EventCnvSuperTool()
Trk::EventCnvSuperTool::~EventCnvSuperTool |
( |
| ) |
|
|
virtual |
◆ canHandleInDet()
virtual bool Trk::EventCnvSuperTool::canHandleInDet |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ canHandleMuonSpectrometer()
virtual bool Trk::EventCnvSuperTool::canHandleMuonSpectrometer |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ doTrackOverlay()
virtual bool Trk::EventCnvSuperTool::doTrackOverlay |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ finalize()
StatusCode Trk::EventCnvSuperTool::finalize |
( |
| ) |
|
|
overridevirtual |
Definition at line 102 of file EventCnvSuperTool.cxx.
103 msg() <<
"Finalize().";
106 <<
" ERROR/WARNING messages (with maximum permissable = "
109 return StatusCode::SUCCESS;
◆ getCnvTool()
Definition at line 112 of file EventCnvSuperTool.cxx.
119 return &(*m_idCnvTool);
128 return &(*m_muonCnvTool);
132 "Muon RIO_OnTrack, but have no muon cnv tool. Cannot set check "
◆ getSurface()
From passed Identifier.
Definition at line 147 of file EventCnvSuperTool.cxx.
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);
◆ initialize()
StatusCode Trk::EventCnvSuperTool::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 47 of file EventCnvSuperTool.cxx.
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;
◆ maxNumberOfErrors()
virtual int Trk::EventCnvSuperTool::maxNumberOfErrors |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ noGeometry()
virtual bool Trk::EventCnvSuperTool::noGeometry |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ prepareRIO_OnTrack()
Take the passed RoT and prepare the PRD ElementLink for writing to disc.
Definition at line 181 of file EventCnvSuperTool.cxx.
183 if (cnvTool !=
nullptr) {
187 msg() <<
"prepareRIO_OnTrack could not find appropriate tool to prepare: "
188 << *RoT << std::endl;
◆ prepareRIO_OnTrackLink()
void Trk::EventCnvSuperTool::prepareRIO_OnTrackLink |
( |
const RIO_OnTrack * |
Rot, |
|
|
ELKey_t & |
key, |
|
|
ELIndex_t & |
index |
|
) |
| const |
|
overridevirtual |
Take the passed RoT and return the EL components to write to disc.
Definition at line 192 of file EventCnvSuperTool.cxx.
196 if (cnvTool !=
nullptr) {
200 msg() <<
"prepareRIO_OnTrack could not find appropriate tool to prepare: "
201 << *RoT << std::endl;
◆ recreateRIO_OnTrack()
void Trk::EventCnvSuperTool::recreateRIO_OnTrack |
( |
Trk::RIO_OnTrack * |
RoT | ) |
const |
|
overridevirtual |
Take the passed RoT and recreate it (i.e.
fill missing pointers etc)
Definition at line 166 of file EventCnvSuperTool.cxx.
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: "
◆ m_detID
◆ m_doID
bool Trk::EventCnvSuperTool::m_doID |
|
private |
◆ m_doMuons
bool Trk::EventCnvSuperTool::m_doMuons |
|
private |
◆ m_doTrackOverlay
bool Trk::EventCnvSuperTool::m_doTrackOverlay |
|
private |
Property for whether track overlay is being used, in which case different PRD containers are used by the converters.
Definition at line 75 of file EventCnvSuperTool.h.
◆ m_errCount
std::atomic_int Trk::EventCnvSuperTool::m_errCount |
|
mutableprivate |
Current number of ERROR/WARNING messages sent to output.
Definition at line 77 of file EventCnvSuperTool.h.
◆ m_haveIdCnvTool
bool Trk::EventCnvSuperTool::m_haveIdCnvTool |
|
private |
Flag set in intialise, letting us know whether the tool has been found.
Definition at line 69 of file EventCnvSuperTool.h.
◆ m_haveMuonCnvTool
bool Trk::EventCnvSuperTool::m_haveMuonCnvTool |
|
private |
Flag set in intialise, letting us know whether the tool has been found.
Definition at line 70 of file EventCnvSuperTool.h.
◆ m_idCnvTool
◆ m_maxErrCount
int Trk::EventCnvSuperTool::m_maxErrCount |
|
private |
Maximum number of permissable ERROR/WARNING messages sent to output.
Definition at line 78 of file EventCnvSuperTool.h.
◆ m_muonCnvTool
The documentation for this class was generated from the following files:
#define ATH_MSG_VERBOSE(x)
::StatusCode StatusCode
StatusCode definition for legacy code.
bool is_indet(Identifier id) const
bool is_muon(Identifier id) const
std::string show_to_string(Identifier id, const IdContext *context=0, char sep='.') const
or provide the printout in string form
#define ATH_MSG_WARNING(x)
Identifier identify() const
return the identifier -extends MeasurementBase