ATLAS Offline Software
Loading...
Searching...
No Matches
Muon::MuonSegmentQuality Class Reference

This is the common muon segment quality object. More...

#include <MuonSegmentQuality.h>

Inheritance diagram for Muon::MuonSegmentQuality:
Collaboration diagram for Muon::MuonSegmentQuality:

Public Member Functions

 MuonSegmentQuality ()
 Default Constructor needed for POOL.
 MuonSegmentQuality (double chi2, int ndof, const std::vector< Identifier > &channelsWithoutHit, bool isStrict=false)
 Constructor.
 MuonSegmentQuality (double chi2, int ndof, std::vector< Identifier > &&channelsWithoutHit, bool isStrict=false)
virtual ~MuonSegmentQuality ()
 Destructor.
unsigned int numberOfHoles () const
 number of holes
const std::vector< Identifier > & channelsWithoutHit () const
 vector of identifiers of channels crossed by the segment but without hit
virtual MuonSegmentQualityclone () const override final
 bare pointer clone
std::unique_ptr< MuonSegmentQualityuniqueClone () const
 NVI clone to unique_ptr.
bool isStrict () const
 Returns true if the segment was created using strict criteria.
 FitQualityImpl ()=default
 default ctor for POOL
 FitQualityImpl (const FitQualityImpl &)=default
 FitQualityImpl (FitQualityImpl &&)=default
 FitQualityImpl (double chiSquared, int numberDoF)
 Constructor with \( \chi^2 \) and \( n_{dof} \).
 FitQualityImpl (double chiSquared, double numberDoF)
 Constructor hadling double type of NDF.
double chiSquared () const
 returns the \( \chi^2 \) of the overall track fit
double doubleNumberDoF () const
 returns the number of degrees of freedom of the overall track or vertex fit as double
int numberDoF () const
 returns the number of degrees of freedom of the overall track or vertex fit as integer
void setChiSquared (double chiSquared)
 set the \( \chi^2 \)
void setNumberDoF (double numberDoF)
 set the number of degrees of freedom

Protected Attributes

double m_chiSquared {}
double m_numberDoF {}

Private Attributes

std::vector< Identifierm_channelsWithoutHit {}
bool m_isStrict {}

Detailed Description

This is the common muon segment quality object.

The object stores a list of channels, crossed by the segment, without hit For specific cases, like for example for the MDTs, a more complicated quality object is needed. It inherites from MuonSegmentQuality.

The number of holes on the segment is calculated by the MuonSegmentQuality as being the total number of channels without a hit. The function can be overloaded by specific qualty objects to provide a more detailed quality measure.

Author
Niels.nosp@m..van.nosp@m..Eldi.nosp@m.k@ce.nosp@m.rn.ch

Definition at line 34 of file MuonSegmentQuality.h.

Constructor & Destructor Documentation

◆ MuonSegmentQuality() [1/3]

Muon::MuonSegmentQuality::MuonSegmentQuality ( )

Default Constructor needed for POOL.

Definition at line 12 of file MuonSegmentQuality.cxx.

12: FitQuality(), m_isStrict(false) {}
FitQuality(const FitQualityImpl &fq)
Definition FitQuality.h:111

◆ MuonSegmentQuality() [2/3]

Muon::MuonSegmentQuality::MuonSegmentQuality ( double chi2,
int ndof,
const std::vector< Identifier > & channelsWithoutHit,
bool isStrict = false )

Constructor.

Definition at line 14 of file MuonSegmentQuality.cxx.

16:
18 {
19
20 }
std::vector< Identifier > m_channelsWithoutHit
const std::vector< Identifier > & channelsWithoutHit() const
vector of identifiers of channels crossed by the segment but without hit
bool isStrict() const
Returns true if the segment was created using strict criteria.
double chi2(TH1 *h0, TH1 *h1)

◆ MuonSegmentQuality() [3/3]

Muon::MuonSegmentQuality::MuonSegmentQuality ( double chi2,
int ndof,
std::vector< Identifier > && channelsWithoutHit,
bool isStrict = false )

Definition at line 22 of file MuonSegmentQuality.cxx.

24:
26 {
27
28 }

◆ ~MuonSegmentQuality()

virtual Muon::MuonSegmentQuality::~MuonSegmentQuality ( )
inlinevirtual

Destructor.

Definition at line 44 of file MuonSegmentQuality.h.

44{}

Member Function Documentation

◆ channelsWithoutHit()

const std::vector< Identifier > & Muon::MuonSegmentQuality::channelsWithoutHit ( ) const
inline

vector of identifiers of channels crossed by the segment but without hit

Definition at line 74 of file MuonSegmentQuality.h.

74 {
76 }

◆ chiSquared()

double Trk::FitQualityImpl::chiSquared ( ) const
inlineinherited

returns the \( \chi^2 \) of the overall track fit

Definition at line 56 of file FitQuality.h.

56{ return m_chiSquared; }

◆ clone()

MuonSegmentQuality * Muon::MuonSegmentQuality::clone ( ) const
inlinefinaloverridevirtual

bare pointer clone

Reimplemented from Trk::FitQuality.

Definition at line 78 of file MuonSegmentQuality.h.

78 {
79 return new MuonSegmentQuality(*this);
80 }
MuonSegmentQuality()
Default Constructor needed for POOL.

◆ doubleNumberDoF()

double Trk::FitQualityImpl::doubleNumberDoF ( ) const
inlineinherited

returns the number of degrees of freedom of the overall track or vertex fit as double

Definition at line 68 of file FitQuality.h.

68{ return m_numberDoF; }

◆ FitQualityImpl() [1/5]

Trk::FitQualityImpl::FitQualityImpl ( )
defaultinherited

default ctor for POOL

◆ FitQualityImpl() [2/5]

Trk::FitQualityImpl::FitQualityImpl ( const FitQualityImpl & )
defaultinherited

◆ FitQualityImpl() [3/5]

Trk::FitQualityImpl::FitQualityImpl ( double chiSquared,
double numberDoF )
inlineinherited

Constructor hadling double type of NDF.

Definition at line 49 of file FitQuality.h.

52 {
53 }
int numberDoF() const
returns the number of degrees of freedom of the overall track or vertex fit as integer
Definition FitQuality.h:60
double chiSquared() const
returns the of the overall track fit
Definition FitQuality.h:56

◆ FitQualityImpl() [4/5]

Trk::FitQualityImpl::FitQualityImpl ( double chiSquared,
int numberDoF )
inlineinherited

Constructor with \( \chi^2 \) and \( n_{dof} \).

Definition at line 42 of file FitQuality.h.

◆ FitQualityImpl() [5/5]

Trk::FitQualityImpl::FitQualityImpl ( FitQualityImpl && )
defaultinherited

◆ isStrict()

bool Muon::MuonSegmentQuality::isStrict ( ) const
inline

Returns true if the segment was created using strict criteria.

Definition at line 82 of file MuonSegmentQuality.h.

82 {
83 return m_isStrict;
84 }

◆ numberDoF()

int Trk::FitQualityImpl::numberDoF ( ) const
inlineinherited

returns the number of degrees of freedom of the overall track or vertex fit as integer

Definition at line 60 of file FitQuality.h.

61 {
62
63 return static_cast<int>(std::floor(m_numberDoF + 0.5));
64 }

◆ numberOfHoles()

unsigned int Muon::MuonSegmentQuality::numberOfHoles ( ) const
inline

number of holes

Definition at line 70 of file MuonSegmentQuality.h.

70 {
71 return m_channelsWithoutHit.size();
72 }

◆ setChiSquared()

void Trk::FitQualityImpl::setChiSquared ( double chiSquared)
inlineinherited

set the \( \chi^2 \)

Definition at line 71 of file FitQuality.h.

◆ setNumberDoF()

void Trk::FitQualityImpl::setNumberDoF ( double numberDoF)
inlineinherited

set the number of degrees of freedom

Definition at line 74 of file FitQuality.h.

◆ uniqueClone()

std::unique_ptr< MuonSegmentQuality > Muon::MuonSegmentQuality::uniqueClone ( ) const
inline

NVI clone to unique_ptr.

Definition at line 56 of file MuonSegmentQuality.h.

56 {
57 return std::unique_ptr<MuonSegmentQuality>(clone());
58 }
virtual MuonSegmentQuality * clone() const override final
bare pointer clone

Member Data Documentation

◆ m_channelsWithoutHit

std::vector<Identifier> Muon::MuonSegmentQuality::m_channelsWithoutHit {}
private

Definition at line 64 of file MuonSegmentQuality.h.

64{};

◆ m_chiSquared

double Trk::FitQualityImpl::m_chiSquared {}
protectedinherited

Definition at line 81 of file FitQuality.h.

81{};

◆ m_isStrict

bool Muon::MuonSegmentQuality::m_isStrict {}
private

Definition at line 65 of file MuonSegmentQuality.h.

65{};

◆ m_numberDoF

double Trk::FitQualityImpl::m_numberDoF {}
protectedinherited

Definition at line 82 of file FitQuality.h.

82{};

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