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

TagBase implementation for a segment tagger. More...

#include <SegmentTag.h>

Inheritance diagram for MuonCombined::SegmentTag:
Collaboration diagram for MuonCombined::SegmentTag:

Public Types

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

Public Member Functions

 SegmentTag (const std::vector< MuonCombined::MuonSegmentInfo > &segmentsInfo)
 Constructor taking a match chi2 as input. More...
 
 ~SegmentTag ()
 destructor More...
 
const std::vector< MuonSegmentInfo > & segmentsInfo () const
 access More...
 
std::vector< const Muon::MuonSegment * > associatedSegments () const override
 access to associated segments, empty vector if non available More...
 
std::string name () const override
 name string More...
 
std::string toString () const override
 print content to string More...
 
Type type () const
 access to MuonType More...
 
Author author () const
 access to Muon Author More...
 
virtual const Trk::TrackprimaryTrack () const
 access to primary muon system track, zero if non available More...
 
virtual bool isCommissioning () const
 Returns whether the muon belongs to the commissioning chain. More...
 

Private Member Functions

 SegmentTag (const SegmentTag &)=delete
 block copy and assignment More...
 
SegmentTagoperator= (const SegmentTag &)=delete
 

Private Attributes

std::vector< MuonCombined::MuonSegmentInfom_segmentsInfo
 data content More...
 
Author m_author
 author and type info More...
 
Type m_type
 author More...
 

Detailed Description

TagBase implementation for a segment tagger.

Definition at line 14 of file SegmentTag.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

◆ SegmentTag() [1/2]

MuonCombined::SegmentTag::SegmentTag ( const std::vector< MuonCombined::MuonSegmentInfo > &  segmentsInfo)

Constructor taking a match chi2 as input.

Definition at line 9 of file SegmentTag.cxx.

9  :
10  TagBase(TagBase::Author::MuTagIMO, TagBase::Type::SegmentTagged), m_segmentsInfo(segmentsInfo) {}

◆ ~SegmentTag()

MuonCombined::SegmentTag::~SegmentTag ( )
default

destructor

◆ SegmentTag() [2/2]

MuonCombined::SegmentTag::SegmentTag ( const SegmentTag )
privatedelete

block copy and assignment

Member Function Documentation

◆ associatedSegments()

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

access to associated segments, empty vector if non available

Reimplemented from MuonCombined::TagBase.

Definition at line 13 of file SegmentTag.cxx.

13  {
14  std::vector<const Muon::MuonSegment*> segments;
15  for (const auto& info : m_segmentsInfo) {
16  if (info.segment) segments.push_back(info.segment);
17  }
18  return segments;
19  }

◆ author()

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

access to Muon Author

Definition at line 58 of file TagBase.h.

58 { return m_author; }

◆ 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::SegmentTag::name ( ) const
inlineoverridevirtual

name string

Implements MuonCombined::TagBase.

Definition at line 31 of file SegmentTag.h.

31 { return "SegmentTag"; }

◆ operator=()

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

◆ primaryTrack()

const Trk::Track * MuonCombined::TagBase::primaryTrack ( ) const
inlinevirtualinherited

access to primary muon system track, zero if non available

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

Definition at line 89 of file TagBase.h.

89 { return nullptr; }

◆ segmentsInfo()

const std::vector< MuonCombined::MuonSegmentInfo > & MuonCombined::SegmentTag::segmentsInfo ( ) const

access

Definition at line 20 of file SegmentTag.cxx.

20 { return m_segmentsInfo; }

◆ toString()

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

print content to string

Implements MuonCombined::TagBase.

Definition at line 34 of file SegmentTag.h.

34 { return name(); }

◆ 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_segmentsInfo

std::vector<MuonCombined::MuonSegmentInfo> MuonCombined::SegmentTag::m_segmentsInfo
private

data content

Definition at line 42 of file SegmentTag.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:
grepfile.info
info
Definition: grepfile.py:38
MuonCombined::TagBase::TagBase
TagBase(Author author, Type type)
protected base class to be called by concrete implementations
Definition: TagBase.h:80
MuonCombined::SegmentTag::name
std::string name() const override
name string
Definition: SegmentTag.h:31
MuonCombined::TagBase::m_author
Author m_author
author and type info
Definition: TagBase.h:84
MuonParameters::MuTagIMO
@ MuTagIMO
Definition: MuonParamDefs.h:66
MuonCombined::TagBase::m_type
Type m_type
author
Definition: TagBase.h:85
MuonCombined::SegmentTag::segmentsInfo
const std::vector< MuonSegmentInfo > & segmentsInfo() const
access
Definition: SegmentTag.cxx:20
MuonCombined::SegmentTag::m_segmentsInfo
std::vector< MuonCombined::MuonSegmentInfo > m_segmentsInfo
data content
Definition: SegmentTag.h:42