35 const Trk::Perigee* perigee = track->perigeeParameters();
36 std::ostringstream sout;
38 sout <<
" Track has no perigee parameters!";
40 sout <<
" pt " << perigee->
momentum().perp() <<
" eta " << perigee->
momentum().eta() <<
" phi " << perigee->
momentum().phi();
41 sout <<
" hasExtrapolatedTrack " << (
extrapolatedTrack() ?
"yes" :
"no") << std::endl;
ElementLink implementation for ROOT usage.
size_t m_extContIdx
Index of the MSOE track in the output container.
void setSegments(std::vector< const Muon::MuonSegment * > &&segments)
set the vector of associated segments to the candidate
const ElementLink< TrackCollection > m_extrapolatedTrackLink
element link to extrapolated track
const ElementLink< xAOD::TrackParticleContainer > m_extrapolatedParticleLink
element link to the extrapolated muon track particle
std::vector< const Muon::MuonSegment * > m_assoc_segments
Segments associated with the candidate.
const ElementLink< xAOD::TrackParticleContainer > m_muonSpectrometerTrackLink
element link to spectrometer track
const Trk::Track & muonSpectrometerTrack() const
access spectrometer track, always there
~MuonCandidate()
destructor
const Trk::Track * primaryTrack() const
Returns the extrapolated track otherwise the muonSpectrometer.
std::string toString() const
print candidate to string
MuonCandidate(const ElementLink< xAOD::TrackParticleContainer > &msTrackLink)
constructor taking an ElementLink to a xAOD::TrackParicle& Users should ensure that the element link ...
const ElementLink< TrackCollection > & extrapolatedTrackLink() const
access extrapolated track element link
const std::vector< const Muon::MuonSegment * > & getSegments() const
returns the vector of associated muon segments
const ElementLink< xAOD::TrackParticleContainer > & muonSpectrometerTrackLink() const
access spectrometer track, always there
const ElementLink< xAOD::TrackParticleContainer > & extrapolatedParticleLink() const
access extrapolated track particle element link
void setCommissioning(bool b)
Sets ths comissioning flag.
const Trk::Track * m_muonSpectrometerTrack
pointer to spectrometer track, not owned
const Trk::Track * extrapolatedTrack() const
access extrapolated track, can be zero if back extrapolation failed
bool m_isCommissioning
flag whether the track belongs to the comissioning stream
size_t extrapolatedElementID() const
returns the index of the container where the extrapolated track is located
bool isCommissioning() const
Returns whether the muon belongs to the comissioning chain.
const Amg::Vector3D & momentum() const
Access method for the momentum.
The MuonTagToSegMap is an auxillary construct that links the MuonSegments associated with a combined ...
ParametersT< TrackParametersDim, Charged, PerigeeSurface > Perigee