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

TagBase implementation for a combined fit. More...

#include <MuGirlLowBetaTag.h>

Inheritance diagram for MuonCombined::MuGirlLowBetaTag:
Collaboration diagram for MuonCombined::MuGirlLowBetaTag:

Public Types

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

Public Member Functions

 MuGirlLowBetaTag (const ElementLink< TrackCollection > &combLink, const std::vector< ElementLink< Trk::SegmentCollection > > &segments)
 Constructor a combined track and a list of segments as input. More...
 
 MuGirlLowBetaTag (const std::vector< ElementLink< Trk::SegmentCollection > > &segments)
 Constructor taking a list of segments. More...
 
 ~MuGirlLowBetaTag ()=default
 destructor More...
 
const Trk::TrackcombinedTrack () const
 access combined track More...
 
ElementLink< TrackCollectioncombinedTrackLink () const
 
const Trk::TrackupdatedExtrapolatedTrack () const
 access update extrapolated track, returns zero if none are available More...
 
void setUpdatedExtrapolatedTrack (const ElementLink< TrackCollection > &meLink)
 set update extrapolated track More...
 
const std::vector< ElementLink< Trk::SegmentCollection > > & segments () const
 access segments More...
 
std::vector< const Muon::MuonSegment * > associatedSegments () const override
 access to associated segments, empty vector if non available More...
 
void setMuBeta (float muBeta)
 
float getMuBeta () const
 
void setStauExtras (std::unique_ptr< MuGirlNS::StauExtras > stauExtras)
 
MuGirlNS::StauExtrasgetStauExtras ()
 
const MuGirlNS::StauExtrasgetStauExtras () const
 
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...
 
Type type () const
 access to MuonType More...
 
Author author () const
 access to Muon Author More...
 
virtual bool isCommissioning () const
 Returns whether the muon belongs to the commissioning chain. More...
 

Private Member Functions

 MuGirlLowBetaTag (const MuGirlLowBetaTag &)=delete
 block copy and assignment More...
 
MuGirlLowBetaTagoperator= (const MuGirlLowBetaTag &)=delete
 

Private Attributes

ElementLink< TrackCollectionm_combLink {}
 data content More...
 
ElementLink< TrackCollectionm_meLink {}
 
std::vector< ElementLink< Trk::SegmentCollection > > m_segments {}
 
float m_muBeta {-9999.}
 list of segments More...
 
std::unique_ptr< MuGirlNS::StauExtrasm_stauExtras {}
 
Author m_author
 author and type info More...
 
Type m_type
 author More...
 

Detailed Description

TagBase implementation for a combined fit.

Definition at line 27 of file MuGirlLowBetaTag.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

◆ MuGirlLowBetaTag() [1/3]

MuonCombined::MuGirlLowBetaTag::MuGirlLowBetaTag ( const ElementLink< TrackCollection > &  combLink,
const std::vector< ElementLink< Trk::SegmentCollection > > &  segments 
)

Constructor a combined track and a list of segments as input.

Definition at line 12 of file MuGirlLowBetaTag.cxx.

◆ MuGirlLowBetaTag() [2/3]

MuonCombined::MuGirlLowBetaTag::MuGirlLowBetaTag ( const std::vector< ElementLink< Trk::SegmentCollection > > &  segments)

Constructor taking a list of segments.

Definition at line 16 of file MuGirlLowBetaTag.cxx.

16  :
17  TagBase(TagBase::Author::MuGirlLowBeta, TagBase::Type::SegmentTagged), m_segments{segments} {}

◆ ~MuGirlLowBetaTag()

MuonCombined::MuGirlLowBetaTag::~MuGirlLowBetaTag ( )
default

destructor

◆ MuGirlLowBetaTag() [3/3]

MuonCombined::MuGirlLowBetaTag::MuGirlLowBetaTag ( const MuGirlLowBetaTag )
privatedelete

block copy and assignment

Member Function Documentation

◆ associatedSegments()

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

access to associated segments, empty vector if non available

Reimplemented from MuonCombined::TagBase.

Definition at line 27 of file MuGirlLowBetaTag.cxx.

27  {
28  std::vector<const Muon::MuonSegment*> ret{};
30  const Muon::MuonSegment* muo_seg = dynamic_cast<const Muon::MuonSegment*>(*link);
31  ret.push_back(muo_seg);
32  }
33  return ret;
34  }

◆ author()

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

access to Muon Author

Definition at line 58 of file TagBase.h.

58 { return m_author; }

◆ combinedTrack()

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

access combined track

Definition at line 19 of file MuGirlLowBetaTag.cxx.

19 { return m_combLink.isValid() ? *m_combLink : nullptr; }

◆ combinedTrackLink()

ElementLink<TrackCollection> MuonCombined::MuGirlLowBetaTag::combinedTrackLink ( ) const
inline

Definition at line 45 of file MuGirlLowBetaTag.h.

45 { return m_combLink; }

◆ getMuBeta()

float MuonCombined::MuGirlLowBetaTag::getMuBeta ( ) const

Definition at line 37 of file MuGirlLowBetaTag.cxx.

37 { return m_muBeta; }

◆ getStauExtras() [1/2]

MuGirlNS::StauExtras * MuonCombined::MuGirlLowBetaTag::getStauExtras ( )

Definition at line 42 of file MuGirlLowBetaTag.cxx.

42 { return m_stauExtras.get(); }

◆ getStauExtras() [2/2]

const MuGirlNS::StauExtras * MuonCombined::MuGirlLowBetaTag::getStauExtras ( ) const

Definition at line 43 of file MuGirlLowBetaTag.cxx.

43 { return m_stauExtras.get(); }

◆ isCommissioning()

bool MuonCombined::TagBase::isCommissioning ( ) const
inlinevirtualinherited

Returns whether the muon belongs to the commissioning chain.

Reimplemented in MuonCombined::CombinedFitTag, MuonCombined::MuGirlTag, and MuonCombined::StacoTag.

Definition at line 88 of file TagBase.h.

88 { return false; }

◆ name()

std::string MuonCombined::MuGirlLowBetaTag::name ( ) const
inlineoverridevirtual

name string

Implements MuonCombined::TagBase.

Definition at line 69 of file MuGirlLowBetaTag.h.

69 { return "MuGirlLowBetaTag"; }

◆ operator=()

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

◆ primaryTrack()

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

access to primary muon system track, zero if non available

Reimplemented from MuonCombined::TagBase.

Definition at line 26 of file MuGirlLowBetaTag.cxx.

26 { return combinedTrack(); }

◆ segments()

const std::vector< ElementLink< Trk::SegmentCollection > > & MuonCombined::MuGirlLowBetaTag::segments ( ) const

access segments

Definition at line 24 of file MuGirlLowBetaTag.cxx.

24 { return m_segments; }

◆ setMuBeta()

void MuonCombined::MuGirlLowBetaTag::setMuBeta ( float  muBeta)

Definition at line 36 of file MuGirlLowBetaTag.cxx.

36 { m_muBeta = muBeta; }

◆ setStauExtras()

void MuonCombined::MuGirlLowBetaTag::setStauExtras ( std::unique_ptr< MuGirlNS::StauExtras stauExtras)

Definition at line 39 of file MuGirlLowBetaTag.cxx.

39  {
40  m_stauExtras= std::move(stauExtras);
41  }

◆ setUpdatedExtrapolatedTrack()

void MuonCombined::MuGirlLowBetaTag::setUpdatedExtrapolatedTrack ( const ElementLink< TrackCollection > &  meLink)

set update extrapolated track

Definition at line 22 of file MuGirlLowBetaTag.cxx.

22 { m_meLink = meLink; }

◆ toString()

std::string MuonCombined::MuGirlLowBetaTag::toString ( ) const
inlineoverridevirtual

print content to string

Implements MuonCombined::TagBase.

Definition at line 72 of file MuGirlLowBetaTag.h.

72 { return name(); }

◆ type()

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

access to MuonType

Definition at line 55 of file TagBase.h.

55 { return m_type; }

◆ updatedExtrapolatedTrack()

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

access update extrapolated track, returns zero if none are available

Definition at line 20 of file MuGirlLowBetaTag.cxx.

20 { return m_meLink.isValid() ? *m_meLink : nullptr; }

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::MuGirlLowBetaTag::m_combLink {}
private

data content

Definition at line 83 of file MuGirlLowBetaTag.h.

◆ m_meLink

ElementLink<TrackCollection> MuonCombined::MuGirlLowBetaTag::m_meLink {}
private

Definition at line 84 of file MuGirlLowBetaTag.h.

◆ m_muBeta

float MuonCombined::MuGirlLowBetaTag::m_muBeta {-9999.}
private

list of segments

Definition at line 88 of file MuGirlLowBetaTag.h.

◆ m_segments

std::vector<ElementLink<Trk::SegmentCollection> > MuonCombined::MuGirlLowBetaTag::m_segments {}
private

Definition at line 85 of file MuGirlLowBetaTag.h.

◆ m_stauExtras

std::unique_ptr<MuGirlNS::StauExtras> MuonCombined::MuGirlLowBetaTag::m_stauExtras {}
private

Definition at line 89 of file MuGirlLowBetaTag.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::MuGirlLowBetaTag::segments
const std::vector< ElementLink< Trk::SegmentCollection > > & segments() const
access segments
Definition: MuGirlLowBetaTag.cxx:24
MuonCombined::TagBase::m_author
Author m_author
author and type info
Definition: TagBase.h:84
MuonCombined::MuGirlLowBetaTag::m_stauExtras
std::unique_ptr< MuGirlNS::StauExtras > m_stauExtras
Definition: MuGirlLowBetaTag.h:89
xAOD::MuGirlLowBeta
@ MuGirlLowBeta
MuGirlLowBeta.
Definition: TrackingPrimitives.h:145
MuonCombined::MuGirlLowBetaTag::name
std::string name() const override
name string
Definition: MuGirlLowBetaTag.h:69
ret
T ret(T t)
Definition: rootspy.cxx:260
MuonCombined::TagBase::m_type
Type m_type
author
Definition: TagBase.h:85
MuonCombined::MuGirlLowBetaTag::m_combLink
ElementLink< TrackCollection > m_combLink
data content
Definition: MuGirlLowBetaTag.h:83
Trk::Combined
@ Combined
Definition: TrackSummaryTool.h:32
MuonCombined::MuGirlLowBetaTag::combinedTrack
const Trk::Track * combinedTrack() const
access combined track
Definition: MuGirlLowBetaTag.cxx:19
MuonCombined::MuGirlLowBetaTag::m_segments
std::vector< ElementLink< Trk::SegmentCollection > > m_segments
Definition: MuGirlLowBetaTag.h:85
MuonCombined::MuGirlLowBetaTag::m_muBeta
float m_muBeta
list of segments
Definition: MuGirlLowBetaTag.h:88
Muon::MuonSegment
Definition: MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h:45
MuonCombined::MuGirlLowBetaTag::m_meLink
ElementLink< TrackCollection > m_meLink
Definition: MuGirlLowBetaTag.h:84