ATLAS Offline Software
Loading...
Searching...
No Matches
MuonOverlapDescriptor.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef REC_MUONOVERLAPDESCRIPTOR_H
6#define REC_MUONOVERLAPDESCRIPTOR_H
7
8#include <iostream>
9#include <set>
10
11#include "Identifier/Identifier.h"
12
13class MsgStream;
14
15namespace Rec {
16
25
27 public:
29 MuonOverlapDescriptor(bool SharesIDTrack, bool SharesSpectroTrack, unsigned int SharedPrecisionHits,
30 unsigned int TotalPrecisionHits, // Really? The larger of the two # ?
31 unsigned int SharedSpectroPhiHits, unsigned int TotalSpectroPhiHits, std::set<Identifier> ms_intersection);
32
35
38
41
44
46 bool sharesIndetTrack() const { return m_sharesIndetTrack; }
47
50
52 unsigned int nSharedPrecisionHits() const { return m_sharedPrecisionHits; }
54 unsigned int nTotalPrecisionHits() const { return m_totalPrecisionHits; }
56 unsigned int nSharedSpectroPhiHits() const { return m_sharedSpectroPhiHits; }
58 unsigned int nTotalSpectroPhiHits() const { return m_totalSpectroPhiHits; }
60 const std::set<Identifier>& intersectionInSpectro() const { return m_intersection; }
61
63 bool hasOverlap(unsigned int tolaratedSharedHits = 0) const;
64
65 private:
72 std::set<Identifier> m_intersection;
73 };
74
76 MsgStream& operator<<(MsgStream& sl, const MuonOverlapDescriptor& des);
77
79 std::ostream& operator<<(std::ostream& sl, const MuonOverlapDescriptor& des);
80
81} // namespace Rec
82#endif // REC_MUONOVERLAPDESCRIPTOR_H
A class describing ID, MS and hit overlaps, mind this class is TRANSIENT ONLY.
bool sharesIndetTrack() const
Access if the overlap consists of sharing the ID track.
const std::set< Identifier > & intersectionInSpectro() const
set of shared identifier, currently for the muon spectrometer
bool sharesSpectroTrack() const
Access if the overlap consists of sharing the MS track.
MuonOverlapDescriptor(bool SharesIDTrack, bool SharesSpectroTrack, unsigned int SharedPrecisionHits, unsigned int TotalPrecisionHits, unsigned int SharedSpectroPhiHits, unsigned int TotalSpectroPhiHits, std::set< Identifier > ms_intersection)
full constructor with some overlap information
MuonOverlapDescriptor & operator=(const MuonOverlapDescriptor &)
assignment operator
std::set< Identifier > m_intersection
unsigned int nSharedSpectroPhiHits() const
Tell if there are shared MS phi shared hits.
bool hasOverlap(unsigned int tolaratedSharedHits=0) const
summary method
unsigned int nTotalSpectroPhiHits() const
Total MS phi hits to compare to.
MuonOverlapDescriptor()
default constructor
unsigned int nSharedPrecisionHits() const
Tell if there are shared MS precision shared hits.
unsigned int nTotalPrecisionHits() const
Total MS precision hits to compare to.
~MuonOverlapDescriptor()
destructor
Gaudi Tools.
MsgStream & operator<<(MsgStream &sl, const MuonOverlapDescriptor &des)
Overload of << operator for MsgStream for debug output.