ATLAS Offline Software
Loading...
Searching...
No Matches
Muon::MuonTrackToSegmentTool Class Reference

Tool to combine two segments. More...

#include <MuonTrackToSegmentTool.h>

Inheritance diagram for Muon::MuonTrackToSegmentTool:
Collaboration diagram for Muon::MuonTrackToSegmentTool:

Public Types

using MeasVec = std::vector<const Trk::MeasurementBase*>

Public Member Functions

 MuonTrackToSegmentTool (const std::string &, const std::string &, const IInterface *)
 default AlgTool constructor
 ~MuonTrackToSegmentTool ()=default
 destructor
StatusCode initialize ()
 initialize method, method taken from bass-class AlgTool
MuonSegmentconvert (const EventContext &ctx, const Trk::Track &track) const
 convert track to segment
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Static Public Member Functions

static const InterfaceID & interfaceID ()
 access to tool interface

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

std::vector< IdentifiercalculateHoles (const EventContext &ctx, const Identifier &chid, const Trk::TrackParameters &pars, const MeasVec &measurements) const
 calculate holes
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

ServiceHandle< Muon::IMuonIdHelperSvcm_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}
ServiceHandle< IMuonEDMHelperSvcm_edmHelperSvc
PublicToolHandle< MuonEDMPrinterToolm_printer
ToolHandle< Trk::IPropagatorm_propagator {this, "Propagator", "Trk::RungeKuttaPropagator/AtlasRungeKuttaPropagator"}
SG::ReadCondHandleKey< Muon::MuonIntersectGeoDatam_chamberGeoKey {this, "ChamberGeoKey", "MuonStationIntersects", "Pointer to hole search service"}
SG::ReadCondHandleKey< MuonGM::MuonDetectorManagerm_DetectorManagerKey
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default)
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

Tool to combine two segments.

It appoximates the combined segment by a straight line. The tool assumes that this is a valid assumption.

For more details look at the mainpage of this package.

Definition at line 41 of file MuonTrackToSegmentTool.h.

Member Typedef Documentation

◆ MeasVec

Definition at line 43 of file MuonTrackToSegmentTool.h.

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ MuonTrackToSegmentTool()

Muon::MuonTrackToSegmentTool::MuonTrackToSegmentTool ( const std::string & t,
const std::string & n,
const IInterface * p )

default AlgTool constructor

Definition at line 23 of file MuonTrackToSegmentTool.cxx.

23 : AthAlgTool(t, n, p) {
24 declareInterface<IMuonTrackToSegmentTool>(this);
25 }
AthAlgTool()
Default constructor:

◆ ~MuonTrackToSegmentTool()

Muon::MuonTrackToSegmentTool::~MuonTrackToSegmentTool ( )
default

destructor

Member Function Documentation

◆ calculateHoles()

std::vector< Identifier > Muon::MuonTrackToSegmentTool::calculateHoles ( const EventContext & ctx,
const Identifier & chid,
const Trk::TrackParameters & pars,
const MeasVec & measurements ) const
private

calculate holes

Definition at line 211 of file MuonTrackToSegmentTool.cxx.

213 {
214 SG::ReadCondHandle<Muon::MuonIntersectGeoData> InterSectSvc{m_chamberGeoKey,ctx};
215 if (!InterSectSvc.isValid()) {
216 ATH_MSG_ERROR("Failed to retrieve chamber intersection service");
217 }
218
219 SG::ReadCondHandle<MuonGM::MuonDetectorManager> detMgr{m_DetectorManagerKey,ctx};
220 const MuonGM::MuonDetectorManager* MuonDetMgr = detMgr.cptr();
221
222 const MuonStationIntersect intersect = InterSectSvc->tubesCrossedByTrack(MuonDetMgr, chid, pars.position(), pars.momentum().unit());
223
224 // set to identify the hit on the segment
225 std::set<Identifier> hitsOnSegment;
226 for (const Trk::MeasurementBase* mit : measurements) {
227 const MdtDriftCircleOnTrack* mdt = dynamic_cast<const MdtDriftCircleOnTrack*>(mit);
228 if (mdt) hitsOnSegment.insert(mdt->identify());
229 }
230
231 // clear hole vector
232 std::vector<Identifier> holes;
233 for (unsigned int ii = 0; ii < intersect.tubeIntersects().size(); ++ii) {
234 const MuonTubeIntersect& tint = intersect.tubeIntersects()[ii];
235
236 // skip hole check if there is a hit in this tube
237 if (hitsOnSegment.count(tint.tubeId)) continue;
238
239 // if track goes through a tube which did not have a hit count as hole
240 if (std::abs(tint.rIntersect) < MuonDetMgr->getMdtReadoutElement(tint.tubeId)->innerTubeRadius() && tint.xIntersect < -200.) {
241 holes.push_back(tint.tubeId);
242 }
243 }
244 return holes;
245 }
#define ATH_MSG_ERROR(x)
double innerTubeRadius() const
Returns the inner tube radius excluding the aluminium walls.
const MdtReadoutElement * getMdtReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_DetectorManagerKey
SG::ReadCondHandleKey< Muon::MuonIntersectGeoData > m_chamberGeoKey
const_pointer_type cptr()
Identifier identify() const
return the identifier -extends MeasurementBase
std::optional< double > intersect(const AmgVector(N)&posA, const AmgVector(N)&dirA, const AmgVector(N)&posB, const AmgVector(N)&dirB)
Calculates the point B' along the line B that's closest to a second line A.

◆ convert()

MuonSegment * Muon::MuonTrackToSegmentTool::convert ( const EventContext & ctx,
const Trk::Track & track ) const
virtual

convert track to segment

convert track to segment, express the new segment parameters on the surface of the first segment

Implements Muon::IMuonTrackToSegmentTool.

Definition at line 37 of file MuonTrackToSegmentTool.cxx.

37 {
38 // Avoids FPE with clang.
41
42 ATH_MSG_DEBUG(" creating MuonSegment from track ");
43
44 const Trk::Perigee* perigee = track.perigeeParameters();
45 if (!perigee) {
46 ATH_MSG_WARNING(" was expecting a perigee here... ");
47 return nullptr;
48 }
49
50 const Trk::FitQuality* fq = track.fitQuality();
51 if (!fq) {
52 ATH_MSG_WARNING(" was expecting a FitQuality here... ");
53 return nullptr;
54 }
55
56 std::set<Identifier> chIds;
57
58 // copy rots, get surface
59 DataVector<const Trk::MeasurementBase> rots{};
60 rots.reserve(track.measurementsOnTrack()->size());
61
62 // loop over TSOS
63 const Trk::TrackStates* states = track.trackStateOnSurfaces();
64 if (!states) {
65 ATH_MSG_WARNING(" track without states, discarding track ");
66 return nullptr;
67 }
68 // track direction vector
69 const Amg::Vector3D dir = perigee->momentum().unit();
70
71 const Amg::Transform3D* surfaceTransform = nullptr;
72 const Amg::Transform3D* backupTransform = nullptr;
73 std::unique_ptr<Amg::Transform3D> surfaceTransformToBeDeleted;
74 double weightedDistanceSquared{0}, weightSquared{0};
75 for (const Trk::TrackStateOnSurface* tsos : *states) {
76 // require TrackParameters
77 const Trk::TrackParameters* pars = tsos->trackParameters();
78 if (!pars) continue;
79
80 // check whether state is a measurement
81 const Trk::MeasurementBase* meas = tsos->measurementOnTrack();
82 if (!meas || tsos->type(Trk::TrackStateOnSurface::Outlier)) continue;
83 rots.push_back(meas->clone());
84
85 // only consider eta hits
86 Identifier id = m_edmHelperSvc->getIdentifier(*meas);
87 if (!id.is_valid() || m_idHelperSvc->measuresPhi(id)) continue;
88
89 double distance = (pars->position() - perigee->position()).dot(dir);
90 double weight = 1. / meas->localCovariance()(Trk::locX, Trk::locX);
91 ATH_MSG_VERBOSE(" distance " << distance << " error " << Amg::error(meas->localCovariance(), Trk::locX) << " weight " << weight
92 << " " << m_idHelperSvc->toString(id));
93 weightedDistanceSquared += distance * weight;
94 weightSquared += weight;
95 if (m_idHelperSvc->isMdt(id)) {
96 chIds.insert(m_idHelperSvc->chamberId(id));
97 if (!surfaceTransform) {
98 const MdtDriftCircleOnTrack* mdt = dynamic_cast<const MdtDriftCircleOnTrack*>(meas);
99 if (mdt) {
100 // create new surface using AMDB reference frame
101 surfaceTransformToBeDeleted = std::make_unique<Amg::Transform3D>(mdt->detectorElement()->AmdbLRSToGlobalTransform().rotation());
102 surfaceTransformToBeDeleted->pretranslate(mdt->detectorElement()->center());
103 surfaceTransform = surfaceTransformToBeDeleted.get();
104 }
105 }
106 } else if ((m_idHelperSvc->isMM(id) || m_idHelperSvc->isCsc(id)) && !surfaceTransform) {
107 surfaceTransform = &(meas)->associatedSurface().transform();
108 } else if (!surfaceTransform && !backupTransform) {
109 backupTransform = &(meas)->associatedSurface().transform();
110 }
111 }
112 if (!surfaceTransform) surfaceTransform = backupTransform;
113 // calculate distance new reference point, shift it 100 mm towards the start of the segment
114 double refDistance = (weightSquared > 0 ? weightedDistanceSquared / weightSquared : 1) - 100;
115 ATH_MSG_DEBUG(" weighted distance " << refDistance);
116
117 const Amg::Vector3D refPos = perigee->position() + refDistance * dir;
118
119 // find closest measured parameters
120 double minDist = -1e6;
121 const Trk::TrackParameters* closestPars = nullptr;
122 for (const Trk::TrackStateOnSurface* tsos : *states) {
123 // require TrackParameters
124 const Trk::TrackParameters* pars = tsos->trackParameters();
125 if (!pars || !pars->covariance()) continue;
126
127 // look for the closest measured parameters to the reference point
128 double distance = (pars->position() - refPos).dot(dir);
129 if (distance < 0 && std::abs(distance) < std::abs(minDist)) {
130 minDist = distance;
131 closestPars = pars;
132 }
133 }
134
135 if (!surfaceTransform) {
136 ATH_MSG_DEBUG(" failed to create a PlaneSurface for the track, cannot make segment!!! " << std::endl
137 << m_printer->print(track)
138 << std::endl
139 << m_printer->printStations(track));
140 return nullptr;
141 }
142
143 if (!closestPars) {
144 closestPars = perigee;
145 minDist = (perigee->position() - refPos).dot(dir);
146 }
147
148 Amg::Transform3D transform(surfaceTransform->rotation());
149 transform.pretranslate(refPos);
150 constexpr double surfDim = 500.;
151 std::unique_ptr<Trk::PlaneSurface> surf = std::make_unique<Trk::PlaneSurface>(transform, surfDim, surfDim);
152 std::unique_ptr<Trk::TrackParameters> exPars = m_propagator->propagate(ctx, *closestPars, *surf, minDist > 0 ? Trk::oppositeMomentum : Trk::alongMomentum, false,
153 Trk::MagneticFieldProperties(Trk::NoField));
154 if (!exPars || !exPars->covariance()) {
155 ATH_MSG_VERBOSE("First trial reaching the surface failed. This is presumably due to a too large momentum. Let's try with a dummy 1 GeV momentum");
156 std::unique_ptr<Trk::TrackParameters> cloned_pars {closestPars->clone()};
157 constexpr double OneOverGeV = 1./ Gaudi::Units::GeV;
158 cloned_pars->parameters()[Trk::qOverP] = cloned_pars->charge() *OneOverGeV;
159 exPars = m_propagator->propagate(ctx, *cloned_pars, *surf, Trk::anyDirection, false,
160 Trk::MagneticFieldProperties(Trk::NoField));
161
162 if (!exPars){
163 ATH_MSG_DEBUG(" propagation failed!!! "<<*cloned_pars<<std::endl<<std::endl<<*surf);
164 return nullptr;
165 }
166 exPars->parameters()[Trk::qOverP] = closestPars->parameters()[Trk::qOverP];
167 }
168 Amg::Vector2D locPos{Amg::Vector2D::Zero()};
169 if (!surf->globalToLocal(exPars->position(), exPars->momentum(), locPos)) {
170 ATH_MSG_WARNING(" localToGlobal failed!!! ");
171 return nullptr;
172 }
173 Trk::LocalDirection locDir;
174 surf->globalToLocalDirection(exPars->momentum(), locDir);
175
176 // convert errors on global angles theta/phi to errors on local angles angleYZ/angleXZ
177 Trk::JacobianPhiThetaLocalAngles globalToLocalMeasAnglesJacobian(exPars->parameters()[Trk::phi], exPars->parameters()[Trk::theta],
178 exPars->associatedSurface().transform().rotation().inverse());
179
180 // make the Jacobian to convert all in one go from global to local
181 // so that the correlations are calculated correctly
182 AmgSymMatrix(5) globalToLocalMeasJacobian{AmgSymMatrix(5)::Zero()};
183 globalToLocalMeasJacobian(Trk::locX, Trk::locX) = 1.0;
184 globalToLocalMeasJacobian(Trk::locY, Trk::locY) = 1.0;
185 globalToLocalMeasJacobian(Trk::phi, Trk::phi) = globalToLocalMeasAnglesJacobian(0, 0);
186 globalToLocalMeasJacobian(Trk::theta, Trk::theta) = globalToLocalMeasAnglesJacobian(1, 1);
187 globalToLocalMeasJacobian(Trk::theta, Trk::phi) = globalToLocalMeasAnglesJacobian(0, 1); // also fills (Trk::phi,Trk::theta)
188 globalToLocalMeasJacobian(Trk::phi, Trk::theta) = globalToLocalMeasJacobian(Trk::theta, Trk::phi); // also fills (Trk::theta,Trk::phi)
189 globalToLocalMeasJacobian(Trk::qOverP, Trk::qOverP) = 1.0;
190
191 AmgSymMatrix(5) cov = exPars->covariance()->similarity(globalToLocalMeasJacobian);
192
193 Trk::FitQuality* quality = nullptr;
194 if (!chIds.empty()) {
195 // calculate holes
196 std::vector<Identifier> holes;
197 for (const Identifier& chid : chIds) {
198 std::vector<Identifier> holesChamber = calculateHoles(ctx, chid, *exPars, rots.stdcont());
199 holes.insert(holes.end(), holesChamber.begin(), holesChamber.end());
200 }
201 quality = new MuonSegmentQuality(fq->chiSquared(), fq->numberDoF(), holes);
202
203 } else {
204 quality = new Trk::FitQuality(fq->chiSquared(), fq->numberDoF());
205 }
206 MuonSegment* seg = new MuonSegment(
207 locPos, locDir, cov, surf.release(), std::move(rots), quality);
208 return seg;
209 }
Matrix< Scalar, OtherDerived::RowsAtCompileTime, OtherDerived::RowsAtCompileTime > similarity(const MatrixBase< OtherDerived > &m) const
similarity method : yields ms = m*s*m^T
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
#define ATH_MSG_DEBUG(x)
#define AmgSymMatrix(dim)
MuonSegment_v1 MuonSegment
Reference the current persistent version:
if(febId1==febId2)
static const Attributes_t empty
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
const PtrVector & stdcont() const
Return the underlying std::vector of the container.
virtual const MuonGM::MdtReadoutElement * detectorElement() const override final
Returns the detector element, assoicated with the PRD of this class.
virtual const Amg::Vector3D & center(const Identifier &) const override final
Return the center of the surface associated with this identifier In the case of silicon it returns th...
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
std::vector< Identifier > calculateHoles(const EventContext &ctx, const Identifier &chid, const Trk::TrackParameters &pars, const MeasVec &measurements) const
calculate holes
PublicToolHandle< MuonEDMPrinterTool > m_printer
ServiceHandle< IMuonEDMHelperSvc > m_edmHelperSvc
ToolHandle< Trk::IPropagator > m_propagator
int numberDoF() const
returns the number of degrees of freedom of the overall track or vertex fit as integer
Definition FitQuality.h:60
double chiSquared() const
returns the of the overall track fit
Definition FitQuality.h:56
virtual MeasurementBase * clone() const =0
Pseudo-Constructor.
const Amg::MatrixX & localCovariance() const
Interface method to get the localError.
const Amg::Vector3D & momentum() const
Access method for the momentum.
virtual ParametersBase< DIM, T > * clone() const override=0
clone method for polymorphic deep copy
const Amg::Vector3D & position() const
Access method for the position.
@ Outlier
This TSoS contains an outlier, that is, it contains a MeasurementBase/RIO_OnTrack which was not used ...
double error(const Amg::MatrixX &mat, int index)
return diagonal error of the matrix caller should ensure the matrix is symmetric and the index is in ...
Eigen::Affine3d Transform3D
float distance(const Amg::Vector3D &p1, const Amg::Vector3D &p2)
calculates the distance between two point in 3D space
Eigen::Matrix< double, 2, 1 > Vector2D
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
Eigen::Matrix< double, 3, 1 > Vector3D
@ oppositeMomentum
@ alongMomentum
@ anyDirection
DataVector< const Trk::TrackStateOnSurface > TrackStates
ParametersT< TrackParametersDim, Charged, PerigeeSurface > Perigee
@ NoField
Field is set to 0., 0., 0.,.
@ locY
local cartesian
Definition ParamDefs.h:38
@ locX
Definition ParamDefs.h:37
@ theta
Definition ParamDefs.h:66
@ qOverP
perigee
Definition ParamDefs.h:67
@ phi
Definition ParamDefs.h:75
ParametersBase< TrackParametersDim, Charged > TrackParameters
void Zero(TH1D *hin)
Definition generate.cxx:32
#define CXXUTILS_TRAPPING_FP
Definition trapping_fp.h:24

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ initialize()

StatusCode Muon::MuonTrackToSegmentTool::initialize ( )

initialize method, method taken from bass-class AlgTool

Definition at line 27 of file MuonTrackToSegmentTool.cxx.

27 {
28 ATH_CHECK(m_propagator.retrieve());
29 ATH_CHECK(m_idHelperSvc.retrieve());
30 ATH_CHECK(m_edmHelperSvc.retrieve());
31 ATH_CHECK(m_printer.retrieve());
32 ATH_CHECK(m_chamberGeoKey.initialize());
33 ATH_CHECK(m_DetectorManagerKey.initialize());
34 return StatusCode::SUCCESS;
35 }
#define ATH_CHECK
Evaluate an expression and check for errors.

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ interfaceID()

const InterfaceID & Muon::IMuonTrackToSegmentTool::interfaceID ( )
inlinestaticinherited

access to tool interface

Definition at line 32 of file IMuonTrackToSegmentTool.h.

static const InterfaceID IID_IMuonTrackToSegmentTool("Muon::IMuonTrackToSegmentTool", 1, 0)

◆ msg()

MsgStream & AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ renounce()

std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and DerivationFramework::CfAthAlgTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka

Member Data Documentation

◆ m_chamberGeoKey

SG::ReadCondHandleKey<Muon::MuonIntersectGeoData> Muon::MuonTrackToSegmentTool::m_chamberGeoKey {this, "ChamberGeoKey", "MuonStationIntersects", "Pointer to hole search service"}
private

Definition at line 72 of file MuonTrackToSegmentTool.h.

72{this, "ChamberGeoKey", "MuonStationIntersects", "Pointer to hole search service"};

◆ m_DetectorManagerKey

SG::ReadCondHandleKey<MuonGM::MuonDetectorManager> Muon::MuonTrackToSegmentTool::m_DetectorManagerKey
private
Initial value:
{this, "DetectorManagerKey", "MuonDetectorManager",
"Key of input MuonDetectorManager condition data"}

Definition at line 74 of file MuonTrackToSegmentTool.h.

74 {this, "DetectorManagerKey", "MuonDetectorManager",
75 "Key of input MuonDetectorManager condition data"};

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_edmHelperSvc

ServiceHandle<IMuonEDMHelperSvc> Muon::MuonTrackToSegmentTool::m_edmHelperSvc
private
Initial value:
{
this, "edmHelper", "Muon::MuonEDMHelperSvc/MuonEDMHelperSvc",
"Handle to the service providing the IMuonEDMHelperSvc interface"}

Definition at line 64 of file MuonTrackToSegmentTool.h.

64 {
65 this, "edmHelper", "Muon::MuonEDMHelperSvc/MuonEDMHelperSvc",
66 "Handle to the service providing the IMuonEDMHelperSvc interface"}; //<! multipurpose helper tool

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_idHelperSvc

ServiceHandle<Muon::IMuonIdHelperSvc> Muon::MuonTrackToSegmentTool::m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}
private

Definition at line 63 of file MuonTrackToSegmentTool.h.

63{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};

◆ m_printer

PublicToolHandle<MuonEDMPrinterTool> Muon::MuonTrackToSegmentTool::m_printer
private
Initial value:
{this, "EDMPrinter", "Muon::MuonEDMPrinterTool/MuonEDMPrinterTool",
"helper to nicely print out tracks"}

Definition at line 68 of file MuonTrackToSegmentTool.h.

68 {this, "EDMPrinter", "Muon::MuonEDMPrinterTool/MuonEDMPrinterTool",
69 "helper to nicely print out tracks"};

◆ m_propagator

ToolHandle<Trk::IPropagator> Muon::MuonTrackToSegmentTool::m_propagator {this, "Propagator", "Trk::RungeKuttaPropagator/AtlasRungeKuttaPropagator"}
private

Definition at line 70 of file MuonTrackToSegmentTool.h.

70{this, "Propagator", "Trk::RungeKuttaPropagator/AtlasRungeKuttaPropagator"};

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files: