ATLAS Offline Software
Loading...
Searching...
No Matches
MuonSegmentQuality.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
6// MuonSegmentQuality.h, (c) ATLAS Detector software
8
9#ifndef MUONSEGMENT_MUONSEGMENTQUALITY_H
10#define MUONSEGMENT_MUONSEGMENTQUALITY_H
11
12#include "Identifier/Identifier.h"
14#include <memory>
15#include <vector>
16
17namespace Muon {
18
33
35 public:
38
40
41 MuonSegmentQuality( double chi2, int ndof, const std::vector<Identifier>& channelsWithoutHit, bool isStrict=false );
42 MuonSegmentQuality( double chi2, int ndof, std::vector<Identifier>&& channelsWithoutHit, bool isStrict=false );
43 /* Copy constructor*/
45 /* Move constructor*/
53
55 unsigned int numberOfHoles() const;
56
58 const std::vector<Identifier>& channelsWithoutHit() const;
59
61 virtual MuonSegmentQuality* clone() const override final;
62
65 return std::unique_ptr<MuonSegmentQuality>(clone());
66 }
67
68
69 bool isStrict() const;
70 private:
71
72 std::vector<Identifier> m_channelsWithoutHit{};
73 bool m_isStrict{};
74 };
75
76
77
78 inline unsigned int MuonSegmentQuality::numberOfHoles() const {
79 return m_channelsWithoutHit.size();
80 }
81
82 inline const std::vector<Identifier>& MuonSegmentQuality::channelsWithoutHit() const {
84 }
85
87 return new MuonSegmentQuality(*this);
88 }
89
90 inline bool MuonSegmentQuality::isStrict() const {
91 return m_isStrict;
92 }
93
94}
95#endif // MUONSEGMENT_MUONSEGMENTQUALITY_H
96
This is the common muon segment quality object.
MuonSegmentQuality(MuonSegmentQuality &&)=default
std::unique_ptr< MuonSegmentQuality > uniqueClone() const
NVI clone to unique_ptr.
std::vector< Identifier > m_channelsWithoutHit
const std::vector< Identifier > & channelsWithoutHit() const
vector of identifiers of channels crossed by the segment but without hit
virtual ~MuonSegmentQuality()
Destructor.
unsigned int numberOfHoles() const
number of holes
MuonSegmentQuality(const MuonSegmentQuality &)=default
virtual MuonSegmentQuality * clone() const override final
bare pointer clone
MuonSegmentQuality & operator=(MuonSegmentQuality &&)=default
Move assignment.
bool isStrict() const
Returns true if the segment was created using strict criteria.
MuonSegmentQuality()
Default Constructor needed for POOL.
Class to represent and store fit qualities from track reconstruction in terms of and number of degre...
Definition FitQuality.h:97
STL class.
double chi2(TH1 *h0, TH1 *h1)
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
STL namespace.