ATLAS Offline Software
Public Member Functions | Protected Attributes | Private Attributes | List of all members
Muon::MuonSegmentQuality Class Reference

#include <MuonSegmentQuality.h>

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

Public Member Functions

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

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) {}

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

◆ 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  {
75  return m_channelsWithoutHit;
76  }

◆ chiSquared() [1/2]

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; }

◆ chiSquared() [2/2]

double Trk::FitQualityImpl::chiSquared
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  }

◆ doubleNumberDoF() [1/2]

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; }

◆ doubleNumberDoF() [2/2]

double Trk::FitQualityImpl::doubleNumberDoF
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
defaultinherited

◆ FitQualityImpl() [3/5]

Trk::FitQualityImpl::FitQualityImpl
inlineinherited

Constructor hadling double type of NDF.

Definition at line 49 of file FitQuality.h.

52  {
53  }

◆ FitQualityImpl() [4/5]

Trk::FitQualityImpl::FitQualityImpl
inlineinherited

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

Definition at line 42 of file FitQuality.h.

45  {
46  }

◆ FitQualityImpl() [5/5]

Trk::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() [1/2]

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  }

◆ numberDoF() [2/2]

int Trk::FitQualityImpl::numberDoF
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() [1/2]

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

set the \( \chi^2 \)

Definition at line 71 of file FitQuality.h.

◆ setChiSquared() [2/2]

void Trk::FitQualityImpl::setChiSquared
inlineinherited

set the \( \chi^2 \)

Definition at line 71 of file FitQuality.h.

◆ setNumberDoF() [1/2]

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

set the number of degrees of freedom

Definition at line 74 of file FitQuality.h.

◆ setNumberDoF() [2/2]

void Trk::FitQualityImpl::setNumberDoF
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  }

Member Data Documentation

◆ m_channelsWithoutHit

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

Definition at line 64 of file MuonSegmentQuality.h.

◆ m_chiSquared

double Trk::FitQualityImpl::m_chiSquared {}
protectedinherited

Definition at line 81 of file FitQuality.h.

◆ m_isStrict

bool Muon::MuonSegmentQuality::m_isStrict {}
private

Definition at line 65 of file MuonSegmentQuality.h.

◆ m_numberDoF

double Trk::FitQualityImpl::m_numberDoF {}
protectedinherited

Definition at line 82 of file FitQuality.h.


The documentation for this class was generated from the following files:
IDTPM::ndof
float ndof(const U &p)
Definition: TrackParametersHelper.h:134
Trk::FitQuality::FitQuality
FitQuality(const FitQualityImpl &fq)
Definition: FitQuality.h:111
Trk::FitQualityImpl::chiSquared
double chiSquared() const
returns the of the overall track fit
Definition: FitQuality.h:56
Muon::MuonSegmentQuality::m_isStrict
bool m_isStrict
Definition: MuonSegmentQuality.h:65
Muon::MuonSegmentQuality::clone
virtual MuonSegmentQuality * clone() const override final
bare pointer clone
Definition: MuonSegmentQuality.h:78
Muon::MuonSegmentQuality::MuonSegmentQuality
MuonSegmentQuality()
Default Constructor needed for POOL.
Definition: MuonSegmentQuality.cxx:12
Muon::MuonSegmentQuality::m_channelsWithoutHit
std::vector< Identifier > m_channelsWithoutHit
Definition: MuonSegmentQuality.h:64
chi2
double chi2(TH1 *h0, TH1 *h1)
Definition: comparitor.cxx:523
Trk::FitQualityImpl::m_numberDoF
double m_numberDoF
Definition: FitQuality.h:82
Trk::FitQualityImpl::numberDoF
int numberDoF() const
returns the number of degrees of freedom of the overall track or vertex fit as integer
Definition: FitQuality.h:60
Trk::FitQualityImpl::m_chiSquared
double m_chiSquared
Definition: FitQuality.h:81
Muon::MuonSegmentQuality::isStrict
bool isStrict() const
Returns true if the segment was created using strict criteria.
Definition: MuonSegmentQuality.h:82
Muon::MuonSegmentQuality::channelsWithoutHit
const std::vector< Identifier > & channelsWithoutHit() const
vector of identifiers of channels crossed by the segment but without hit
Definition: MuonSegmentQuality.h:74