ATLAS Offline Software
Loading...
Searching...
No Matches
MuonCombined::CombinedFitTag Class Reference

TagBase implementation for a combined fit. More...

#include <CombinedFitTag.h>

Inheritance diagram for MuonCombined::CombinedFitTag:
Collaboration diagram for MuonCombined::CombinedFitTag:

Public Types

using Type = xAOD::Muon::MuonType
 typedefs
using Author = xAOD::Muon::Author

Public Member Functions

 CombinedFitTag (xAOD::Muon::Author author, const MuonCandidate &muonCandidate, const Trk::TrackScore &score)
 Constructor taking a MuonCandidate as input Users should ensure that the life time of the MuonCandidate The class takes ownership of the track score.
 ~CombinedFitTag ()
 destructor
const Trk::TrackcombinedTrack () const
 access combined track
ElementLink< TrackCollectioncombinedTrackLink () const
void setCombinedTrackLink (const ElementLink< TrackCollection > &combLink)
 set combined track ElementLink
const MuonCandidatemuonCandidate () const
 access to MuonCandidate
const Trk::TrackupdatedExtrapolatedTrack () const
 access update extrapolated track, returns zero if none are available
ElementLink< TrackCollectionupdatedExtrapolatedTrackLink () const
void setUpdatedExtrapolatedTrackLink (const ElementLink< TrackCollection > &MELink)
 set update extrapolated track ElementLink
void innerMatch (double chi2, int dof, double prob)
 store inner match quality info
double matchChi2 () const
 access the inner matching chi2
int matchDoF () const
 access the inner matching DoF
double matchProb () const
 access the inner matching probability
void fieldIntegral (const Rec::FieldIntegral &fieldI)
 set field integral measurements
const Rec::FieldIntegralfieldIntegral () const
 get field integral measurements
void momentumBalanceSignificance (double m)
 set momentum balance significance
double momentumBalanceSignificance () const
 get momentum balance significance
const Trk::TrackScoretrackScore () const
 get track score
std::string name () const override
 name string
std::string toString () const override
 print content to string
const Trk::TrackprimaryTrack () const override
 access to primary muon system track, zero if non available
std::vector< const Muon::MuonSegment * > associatedSegments () const override
 access to associated segments, empty vector if non available
bool isCommissioning () const override
 Returns whether the muon belongs to the commissioning chain.
Type type () const
 access to MuonType
Author author () const
 access to Muon Author

Private Member Functions

 CombinedFitTag (const CombinedFitTag &)=delete
 block copy and assignment
CombinedFitTagoperator= (const CombinedFitTag &)=delete

Private Attributes

const MuonCandidatem_muonCandidate {nullptr}
 data content
ElementLink< TrackCollectionm_combLink {}
 MuonCandidate.
Trk::TrackScore m_trackScore
ElementLink< TrackCollectionm_MELink {}
Rec::FieldIntegral m_fieldIntegral
double m_matchChi2 {0.}
int m_matchDoF {0}
double m_matchProb {0.}
double m_momentumBalanceSignificance {0.}
Author m_author
 author and type info
Type m_type
 author

Detailed Description

TagBase implementation for a combined fit.

Definition at line 24 of file CombinedFitTag.h.

Member Typedef Documentation

◆ Author

using MuonCombined::TagBase::Author = xAOD::Muon::Author
inherited

Definition at line 52 of file TagBase.h.

◆ Type

using MuonCombined::TagBase::Type = xAOD::Muon::MuonType
inherited

typedefs

Definition at line 51 of file TagBase.h.

Constructor & Destructor Documentation

◆ CombinedFitTag() [1/2]

MuonCombined::CombinedFitTag::CombinedFitTag ( xAOD::Muon::Author author,
const MuonCandidate & muonCandidate,
const Trk::TrackScore & score )

Constructor taking a MuonCandidate as input Users should ensure that the life time of the MuonCandidate The class takes ownership of the track score.

Definition at line 15 of file CombinedFitTag.cxx.

15 :
16 TagBase(author, TagBase::Type::Combined), m_muonCandidate(&muonCandidate), m_trackScore(score) {}
const MuonCandidate * m_muonCandidate
data content
const MuonCandidate & muonCandidate() const
access to MuonCandidate
Author author() const
access to Muon Author
Definition TagBase.h:58
TagBase(Author author, Type type)
protected base class to be called by concrete implementations
Definition TagBase.h:80

◆ ~CombinedFitTag()

MuonCombined::CombinedFitTag::~CombinedFitTag ( )
default

destructor

◆ CombinedFitTag() [2/2]

MuonCombined::CombinedFitTag::CombinedFitTag ( const CombinedFitTag & )
privatedelete

block copy and assignment

Member Function Documentation

◆ associatedSegments()

std::vector< const Muon::MuonSegment * > MuonCombined::CombinedFitTag::associatedSegments ( ) const
overridevirtual

access to associated segments, empty vector if non available

Reimplemented from MuonCombined::TagBase.

Definition at line 49 of file CombinedFitTag.cxx.

49{ return muonCandidate().getSegments(); }
const std::vector< const Muon::MuonSegment * > & getSegments() const
returns the vector of associated muon segments

◆ author()

Author MuonCombined::TagBase::author ( ) const
inlineinherited

access to Muon Author

Definition at line 58 of file TagBase.h.

58{ return m_author; }
Author m_author
author and type info
Definition TagBase.h:84

◆ combinedTrack()

const Trk::Track * MuonCombined::CombinedFitTag::combinedTrack ( ) const

access combined track

Definition at line 26 of file CombinedFitTag.cxx.

26{ return m_combLink.isValid() ? *m_combLink : nullptr; }
ElementLink< TrackCollection > m_combLink
MuonCandidate.

◆ combinedTrackLink()

ElementLink< TrackCollection > MuonCombined::CombinedFitTag::combinedTrackLink ( ) const

Definition at line 36 of file CombinedFitTag.cxx.

36{ return m_combLink; }

◆ fieldIntegral() [1/2]

const Rec::FieldIntegral & MuonCombined::CombinedFitTag::fieldIntegral ( ) const

get field integral measurements

Definition at line 44 of file CombinedFitTag.cxx.

44{ return m_fieldIntegral; }
Rec::FieldIntegral m_fieldIntegral

◆ fieldIntegral() [2/2]

void MuonCombined::CombinedFitTag::fieldIntegral ( const Rec::FieldIntegral & fieldI)

set field integral measurements

Definition at line 43 of file CombinedFitTag.cxx.

43{ m_fieldIntegral = fieldI; }

◆ innerMatch()

void MuonCombined::CombinedFitTag::innerMatch ( double chi2,
int dof,
double prob )

store inner match quality info

Definition at line 29 of file CombinedFitTag.cxx.

◆ isCommissioning()

bool MuonCombined::CombinedFitTag::isCommissioning ( ) const
overridevirtual

Returns whether the muon belongs to the commissioning chain.

Reimplemented from MuonCombined::TagBase.

Definition at line 25 of file CombinedFitTag.cxx.

25{ return muonCandidate().isCommissioning(); }
bool isCommissioning() const
Returns whether the muon belongs to the comissioning chain.

◆ matchChi2()

double MuonCombined::CombinedFitTag::matchChi2 ( ) const

access the inner matching chi2

Definition at line 40 of file CombinedFitTag.cxx.

40{ return m_matchChi2; }

◆ matchDoF()

int MuonCombined::CombinedFitTag::matchDoF ( ) const

access the inner matching DoF

Definition at line 41 of file CombinedFitTag.cxx.

41{ return m_matchDoF; }

◆ matchProb()

double MuonCombined::CombinedFitTag::matchProb ( ) const

access the inner matching probability

Definition at line 42 of file CombinedFitTag.cxx.

42{ return m_matchProb; }

◆ momentumBalanceSignificance() [1/2]

double MuonCombined::CombinedFitTag::momentumBalanceSignificance ( ) const

get momentum balance significance

Definition at line 46 of file CombinedFitTag.cxx.

◆ momentumBalanceSignificance() [2/2]

void MuonCombined::CombinedFitTag::momentumBalanceSignificance ( double m)

set momentum balance significance

Definition at line 45 of file CombinedFitTag.cxx.

◆ muonCandidate()

const MuonCandidate & MuonCombined::CombinedFitTag::muonCandidate ( ) const

access to MuonCandidate

Definition at line 27 of file CombinedFitTag.cxx.

27{ return *m_muonCandidate; }

◆ name()

std::string MuonCombined::CombinedFitTag::name ( ) const
overridevirtual

name string

Implements MuonCombined::TagBase.

Definition at line 48 of file CombinedFitTag.cxx.

48{ return "CombinedFitTag"; }

◆ operator=()

CombinedFitTag & MuonCombined::CombinedFitTag::operator= ( const CombinedFitTag & )
privatedelete

◆ primaryTrack()

const Trk::Track * MuonCombined::CombinedFitTag::primaryTrack ( ) const
overridevirtual

access to primary muon system track, zero if non available

Reimplemented from MuonCombined::TagBase.

Definition at line 35 of file CombinedFitTag.cxx.

35{ return combinedTrack(); }
const Trk::Track * combinedTrack() const
access combined track

◆ setCombinedTrackLink()

void MuonCombined::CombinedFitTag::setCombinedTrackLink ( const ElementLink< TrackCollection > & combLink)

set combined track ElementLink

Definition at line 37 of file CombinedFitTag.cxx.

37{ m_combLink = combLink; }

◆ setUpdatedExtrapolatedTrackLink()

void MuonCombined::CombinedFitTag::setUpdatedExtrapolatedTrackLink ( const ElementLink< TrackCollection > & MELink)

set update extrapolated track ElementLink

Definition at line 39 of file CombinedFitTag.cxx.

39{ m_MELink = MELink; }
ElementLink< TrackCollection > m_MELink

◆ toString()

std::string MuonCombined::CombinedFitTag::toString ( ) const
overridevirtual

print content to string

Implements MuonCombined::TagBase.

Definition at line 20 of file CombinedFitTag.cxx.

20 {
21 std::ostringstream sout;
22 sout << name() << " TrackScore " << trackScore() << " matchChi2 " << matchChi2();
23 return sout.str();
24 }
const Trk::TrackScore & trackScore() const
get track score
std::string name() const override
name string
double matchChi2() const
access the inner matching chi2

◆ trackScore()

const Trk::TrackScore & MuonCombined::CombinedFitTag::trackScore ( ) const

get track score

Definition at line 47 of file CombinedFitTag.cxx.

47{ return m_trackScore; }

◆ type()

Type MuonCombined::TagBase::type ( ) const
inlineinherited

access to MuonType

Definition at line 55 of file TagBase.h.

55{ return m_type; }
Type m_type
author
Definition TagBase.h:85

◆ updatedExtrapolatedTrack()

const Trk::Track * MuonCombined::CombinedFitTag::updatedExtrapolatedTrack ( ) const

access update extrapolated track, returns zero if none are available

Definition at line 28 of file CombinedFitTag.cxx.

28{ return m_MELink.isValid() ? *m_MELink : nullptr; }

◆ updatedExtrapolatedTrackLink()

ElementLink< TrackCollection > MuonCombined::CombinedFitTag::updatedExtrapolatedTrackLink ( ) const

Definition at line 38 of file CombinedFitTag.cxx.

38{ return m_MELink; }

Member Data Documentation

◆ m_author

Author MuonCombined::TagBase::m_author
privateinherited

author and type info

Definition at line 84 of file TagBase.h.

◆ m_combLink

ElementLink<TrackCollection> MuonCombined::CombinedFitTag::m_combLink {}
private

MuonCandidate.

Definition at line 105 of file CombinedFitTag.h.

105{}; // link to combined track

◆ m_fieldIntegral

Rec::FieldIntegral MuonCombined::CombinedFitTag::m_fieldIntegral
private

Definition at line 109 of file CombinedFitTag.h.

◆ m_matchChi2

double MuonCombined::CombinedFitTag::m_matchChi2 {0.}
private

Definition at line 111 of file CombinedFitTag.h.

111{0.};

◆ m_matchDoF

int MuonCombined::CombinedFitTag::m_matchDoF {0}
private

Definition at line 112 of file CombinedFitTag.h.

112{0};

◆ m_matchProb

double MuonCombined::CombinedFitTag::m_matchProb {0.}
private

Definition at line 113 of file CombinedFitTag.h.

113{0.};

◆ m_MELink

ElementLink<TrackCollection> MuonCombined::CombinedFitTag::m_MELink {}
private

Definition at line 107 of file CombinedFitTag.h.

107{}; // link to ME track

◆ m_momentumBalanceSignificance

double MuonCombined::CombinedFitTag::m_momentumBalanceSignificance {0.}
private

Definition at line 114 of file CombinedFitTag.h.

114{0.};

◆ m_muonCandidate

const MuonCandidate* MuonCombined::CombinedFitTag::m_muonCandidate {nullptr}
private

data content

Definition at line 104 of file CombinedFitTag.h.

104{nullptr};

◆ m_trackScore

Trk::TrackScore MuonCombined::CombinedFitTag::m_trackScore
private

Definition at line 106 of file CombinedFitTag.h.

◆ m_type

Type MuonCombined::TagBase::m_type
privateinherited

author

Definition at line 85 of file TagBase.h.


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