ATLAS Offline Software
Loading...
Searching...
No Matches
MuonSegmentQuality.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 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 MuonSegmentQuality( double chi2, int ndof, const std::vector<Identifier>& channelsWithoutHit, bool isStrict=false );
41 MuonSegmentQuality( double chi2, int ndof, std::vector<Identifier>&& channelsWithoutHit, bool isStrict=false );
42
45
47 unsigned int numberOfHoles() const;
48
50 const std::vector<Identifier>& channelsWithoutHit() const;
51
53 virtual MuonSegmentQuality* clone() const override final;
54
57 return std::unique_ptr<MuonSegmentQuality>(clone());
58 }
59
60
61 bool isStrict() const;
62 private:
63
64 std::vector<Identifier> m_channelsWithoutHit{};
65 bool m_isStrict{};
66 };
67
68
69
70 inline unsigned int MuonSegmentQuality::numberOfHoles() const {
71 return m_channelsWithoutHit.size();
72 }
73
74 inline const std::vector<Identifier>& MuonSegmentQuality::channelsWithoutHit() const {
76 }
77
79 return new MuonSegmentQuality(*this);
80 }
81
82 inline bool MuonSegmentQuality::isStrict() const {
83 return m_isStrict;
84 }
85
86}
87#endif // MUONSEGMENT_MUONSEGMENTQUALITY_H
88
This is the common muon segment quality object.
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
virtual MuonSegmentQuality * clone() const override final
bare pointer clone
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.