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");
39}
◆ ~EventCnvSuperTool()
| Trk::EventCnvSuperTool::~EventCnvSuperTool |
( |
| ) |
|
|
virtual |
Definition at line 41 of file EventCnvSuperTool.cxx.
41 {
44 << " WARNING or ERROR messages");
45}
#define ATH_MSG_WARNING(x)
◆ 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.
102 {
103 msg() <<
"Finalize().";
106 << " ERROR/WARNING messages (with maximum permissable = "
109 return StatusCode::SUCCESS;
110}
◆ getCnvTool()
Definition at line 112 of file EventCnvSuperTool.cxx.
113 {
115 return nullptr;
116
119 return &(*m_idCnvTool);
120 } else {
123 return nullptr;
124 }
125 } else {
128 return &(*m_muonCnvTool);
129 } else {
132 "Muon RIO_OnTrack, but have no muon cnv tool. Cannot set check "
133 "RoT.");
134 return nullptr;
135 }
136 }
137 }
138
141 ATH_MSG_WARNING(
"Unknown Identifier: (" << ident <<
"), that is (" <<
id
142 << ")");
143 }
144 return nullptr;
145}
◆ getSurface()
From passed Identifier.
Definition at line 147 of file EventCnvSuperTool.cxx.
148 {
149 const Surface* surface = nullptr;
150 const Trk::ITrkEventCnvTool* cnvTool =
getCnvTool(
id);
151 if (cnvTool != nullptr) {
153 if (detEl != nullptr)
154 surface = &(detEl->surface(id));
157 << id << " Returning 0.");
158 } else {
161 "getSurface: could not get cnv tool for Identifier:" << id);
162 }
163 return surface;
164}
◆ initialize()
| StatusCode Trk::EventCnvSuperTool::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 47 of file EventCnvSuperTool.cxx.
47 {
48
52 }
53
56 "This tool has been configured without either Muons or ID, and so "
57 "can't do anything. Problems likely.");
58 }
59
60
64 "Failed to retrieve InDet helper tool "
66 << ". Will not be able to recreate ID Surfaces / Det Elements.");
68 } else {
71 }
72 } else {
74 }
75
79 "Failed to retrieve Muon helper tool "
81 << ". Will not be able to recreate ID Surfaces / Det Elements.");
83 } else {
86 }
87 } else {
89 }
90
91
94 "Failed to retrieve either and InDet or a Muon tool. Will not be able "
95 "to recreate surfaces / detector elements.");
97 }
98
99 return StatusCode::SUCCESS;
100}
#define ATH_MSG_VERBOSE(x)
::StatusCode StatusCode
StatusCode definition for legacy code.
◆ 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.
181 {
183 if (cnvTool != nullptr) {
185 } else {
187 msg() <<
"prepareRIO_OnTrack could not find appropriate tool to prepare: "
188 << *RoT << std::endl;
189 }
190}
Identifier identify() const
return the identifier -extends MeasurementBase
◆ 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.
194 {
195 const Trk::ITrkEventCnvTool* cnvTool =
getCnvTool(RoT->identify());
196 if (cnvTool != nullptr) {
198 } else {
200 msg() <<
"prepareRIO_OnTrack could not find appropriate tool to prepare: "
201 << *RoT << std::endl;
202 }
203}
◆ 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.
166 {
167 using namespace std;
169 if (cnvTool != nullptr) {
171 } else {
172 const type_info&
info =
typeid(*RoT);
175 "recreateRIO_OnTrack: could not get cnv tool. Returning without "
176 "correctly filling ROT of type: "
178 }
179}
◆ 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
| ToolHandle<Trk::ITrkEventCnvTool> Trk::EventCnvSuperTool::m_idCnvTool {this, "IdCnvTool", "InDet::InDetEventCnvTool/InDetEventCnvTool", "Tool used to handle ID RoTs etc"} |
|
private |
Tool used to handle ID RoTs etc.
Definition at line 65 of file EventCnvSuperTool.h.
65{this, "IdCnvTool", "InDet::InDetEventCnvTool/InDetEventCnvTool", "Tool used to handle ID RoTs etc"};
◆ 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
| ToolHandle<Trk::ITrkEventCnvTool> Trk::EventCnvSuperTool::m_muonCnvTool {this, "MuonCnvTool", "Muon::MuonEventCnvTool/MuonEventCnvTool", "Tool used to handle Muon RoTs etc"} |
|
private |
Tool used to handle Muon RoTs etc.
Definition at line 66 of file EventCnvSuperTool.h.
66{this, "MuonCnvTool", "Muon::MuonEventCnvTool/MuonEventCnvTool", "Tool used to handle Muon RoTs etc"};
The documentation for this class was generated from the following files: