ATLAS Offline Software
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
MuonCombined::StacoTag Class Reference

TagBase implementation for a combined fit. More...

#include <StacoTag.h>

Inheritance diagram for MuonCombined::StacoTag:
Collaboration diagram for MuonCombined::StacoTag:

Public Types

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

Public Member Functions

 StacoTag (const MuonCandidate &muonCandidate, std::unique_ptr< const Trk::Perigee > &perigee, double chi2)
 Constructor taking a MuonCandidate, a combined perigee and match chi2 as input Users should ensure that the life time of the MuonCandidate The class takes ownership of the combined perigee. More...
 
 ~StacoTag ()
 destructor More...
 
const Trk::PerigeecombinedParameters () const
 access combined parameters More...
 
std::unique_ptr< const Trk::PerigeereleaseCombinedParameters ()
 release combined parameters, user gets ownership More...
 
const MuonCandidatemuonCandidate () const
 access to MuonCandidate More...
 
double matchChi2 () const
 access to match chi2 More...
 
std::string name () const override
 name string More...
 
std::string toString () const override
 print content to string More...
 
const Trk::TrackprimaryTrack () const override
 access to primary muon system track, zero if non available More...
 
bool isCommissioning () const override
 Returns whether the muon belongs to the commissioning chain. More...
 
std::vector< const Muon::MuonSegment * > associatedSegments () const override
 access to associated segments, empty vector if non available More...
 
Type type () const
 access to MuonType More...
 
Author author () const
 access to Muon Author More...
 

Private Member Functions

 StacoTag (const StacoTag &)=delete
 block copy and assignment More...
 
StacoTagoperator= (const StacoTag &)=delete
 

Private Attributes

const MuonCandidatem_muonCandidate {nullptr}
 data content More...
 
std::unique_ptr< const Trk::Perigeem_combinedParameters {nullptr}
 MuonCandidate. More...
 
double m_chi2 {0.}
 combined parameters More...
 
Author m_author
 author and type info More...
 
Type m_type
 author More...
 

Detailed Description

TagBase implementation for a combined fit.

Definition at line 22 of file StacoTag.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

◆ StacoTag() [1/2]

MuonCombined::StacoTag::StacoTag ( const MuonCandidate muonCandidate,
std::unique_ptr< const Trk::Perigee > &  perigee,
double  chi2 
)

Constructor taking a MuonCandidate, a combined perigee and match chi2 as input Users should ensure that the life time of the MuonCandidate The class takes ownership of the combined perigee.

Definition at line 11 of file StacoTag.cxx.

◆ ~StacoTag()

MuonCombined::StacoTag::~StacoTag ( )
default

destructor

◆ StacoTag() [2/2]

MuonCombined::StacoTag::StacoTag ( const StacoTag )
privatedelete

block copy and assignment

Member Function Documentation

◆ associatedSegments()

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

access to associated segments, empty vector if non available

Reimplemented from MuonCombined::TagBase.

Definition at line 31 of file StacoTag.cxx.

31 { return muonCandidate().getSegments(); }

◆ author()

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

access to Muon Author

Definition at line 58 of file TagBase.h.

58 { return m_author; }

◆ combinedParameters()

const Trk::Perigee & MuonCombined::StacoTag::combinedParameters ( ) const

access combined parameters

Definition at line 26 of file StacoTag.cxx.

26 { return *m_combinedParameters.get(); }

◆ isCommissioning()

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

Returns whether the muon belongs to the commissioning chain.

Reimplemented from MuonCombined::TagBase.

Definition at line 20 of file StacoTag.cxx.

20 { return muonCandidate().isCommissioning(); }

◆ matchChi2()

double MuonCombined::StacoTag::matchChi2 ( ) const

access to match chi2

Definition at line 29 of file StacoTag.cxx.

29 { return m_chi2; }

◆ muonCandidate()

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

access to MuonCandidate

Definition at line 28 of file StacoTag.cxx.

28 { return *m_muonCandidate; }

◆ name()

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

name string

Implements MuonCombined::TagBase.

Definition at line 19 of file StacoTag.cxx.

19 { return "StacoTag"; }

◆ operator=()

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

◆ primaryTrack()

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

access to primary muon system track, zero if non available

Reimplemented from MuonCombined::TagBase.

Definition at line 30 of file StacoTag.cxx.

30 { return muonCandidate().primaryTrack(); }

◆ releaseCombinedParameters()

std::unique_ptr< const Trk::Perigee > MuonCombined::StacoTag::releaseCombinedParameters ( )

release combined parameters, user gets ownership

Definition at line 27 of file StacoTag.cxx.

27 { return std::move(m_combinedParameters); }

◆ toString()

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

print content to string

Implements MuonCombined::TagBase.

Definition at line 21 of file StacoTag.cxx.

21  {
22  std::ostringstream sout;
23  sout << name() << " match chi2 " << matchChi2();
24  return sout.str();
25  }

◆ type()

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

access to MuonType

Definition at line 55 of file TagBase.h.

55 { return m_type; }

Member Data Documentation

◆ m_author

Author MuonCombined::TagBase::m_author
privateinherited

author and type info

Definition at line 84 of file TagBase.h.

◆ m_chi2

double MuonCombined::StacoTag::m_chi2 {0.}
private

combined parameters

Definition at line 68 of file StacoTag.h.

◆ m_combinedParameters

std::unique_ptr<const Trk::Perigee> MuonCombined::StacoTag::m_combinedParameters {nullptr}
private

MuonCandidate.

Definition at line 67 of file StacoTag.h.

◆ m_muonCandidate

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

data content

Definition at line 66 of file StacoTag.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:
MuonCombined::TagBase::TagBase
TagBase(Author author, Type type)
protected base class to be called by concrete implementations
Definition: TagBase.h:80
MuonCombined::MuonCandidate::primaryTrack
const Trk::Track * primaryTrack() const
Returns the extrapolated track otherwise the muonSpectrometer.
Definition: Reconstruction/MuonIdentification/MuonCombinedEvent/src/MuonCandidate.cxx:53
MuonCombined::TagBase::m_author
Author m_author
author and type info
Definition: TagBase.h:84
MuonCombined::StacoTag::name
std::string name() const override
name string
Definition: StacoTag.cxx:19
MuonCombined::StacoTag::m_muonCandidate
const MuonCandidate * m_muonCandidate
data content
Definition: StacoTag.h:66
MuonCombined::StacoTag::matchChi2
double matchChi2() const
access to match chi2
Definition: StacoTag.cxx:29
MuonCombined::TagBase::m_type
Type m_type
author
Definition: TagBase.h:85
chi2
double chi2(TH1 *h0, TH1 *h1)
Definition: comparitor.cxx:522
MuonCombined::MuonCandidate::getSegments
const std::vector< const Muon::MuonSegment * > & getSegments() const
returns the vector of associated muon segments
Definition: Reconstruction/MuonIdentification/MuonCombinedEvent/src/MuonCandidate.cxx:64
Trk::Combined
@ Combined
Definition: TrackSummaryTool.h:32
MuonCombined::StacoTag::combinedParameters
const Trk::Perigee & combinedParameters() const
access combined parameters
Definition: StacoTag.cxx:26
MuonCombined::StacoTag::m_chi2
double m_chi2
combined parameters
Definition: StacoTag.h:68
MuonCombined::StacoTag::m_combinedParameters
std::unique_ptr< const Trk::Perigee > m_combinedParameters
MuonCandidate.
Definition: StacoTag.h:67
xAOD::STACO
@ STACO
Tracks produced by STACO.
Definition: TrackingPrimitives.h:99
MuonCombined::StacoTag::muonCandidate
const MuonCandidate & muonCandidate() const
access to MuonCandidate
Definition: StacoTag.cxx:28
MuonCombined::MuonCandidate::isCommissioning
bool isCommissioning() const
Returns whether the muon belongs to the comissioning chain.
Definition: Reconstruction/MuonIdentification/MuonCombinedEvent/src/MuonCandidate.cxx:61