ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
Rec::MuonOverlapDescriptor Class Reference

A class describing ID, MS and hit overlaps, mind this class is TRANSIENT ONLY. More...

#include <MuonOverlapDescriptor.h>

Collaboration diagram for Rec::MuonOverlapDescriptor:

Public Member Functions

 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 More...
 
 MuonOverlapDescriptor ()
 default constructor More...
 
 ~MuonOverlapDescriptor ()
 destructor More...
 
 MuonOverlapDescriptor (const MuonOverlapDescriptor &)
 copy constructor More...
 
MuonOverlapDescriptoroperator= (const MuonOverlapDescriptor &)
 assignment operator More...
 
bool sharesIndetTrack () const
 Access if the overlap consists of sharing the ID track. More...
 
bool sharesSpectroTrack () const
 Access if the overlap consists of sharing the MS track. More...
 
unsigned int nSharedPrecisionHits () const
 Tell if there are shared MS precision shared hits. More...
 
unsigned int nTotalPrecisionHits () const
 Total MS precision hits to compare to. More...
 
unsigned int nSharedSpectroPhiHits () const
 Tell if there are shared MS phi shared hits. More...
 
unsigned int nTotalSpectroPhiHits () const
 Total MS phi hits to compare to. More...
 
const std::set< Identifier > & intersectionInSpectro () const
 set of shared identifier, currently for the muon spectrometer More...
 
bool hasOverlap (unsigned int tolaratedSharedHits=0) const
 summary method More...
 

Private Attributes

bool m_sharesIndetTrack
 
bool m_sharesSpectroTrack
 
unsigned int m_sharedPrecisionHits
 
unsigned int m_totalPrecisionHits
 
unsigned int m_sharedSpectroPhiHits
 
unsigned int m_totalSpectroPhiHits
 
std::set< Identifierm_intersection
 

Detailed Description

A class describing ID, MS and hit overlaps, mind this class is TRANSIENT ONLY.

Author
Wolfgang Liebig

Definition at line 26 of file MuonOverlapDescriptor.h.

Constructor & Destructor Documentation

◆ MuonOverlapDescriptor() [1/3]

Rec::MuonOverlapDescriptor::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

Definition at line 12 of file MuonOverlapDescriptor.cxx.

16  :
17  m_sharesIndetTrack(SharesIDTrack),
18  m_sharesSpectroTrack(SharesSpectroTrack),
19  m_sharedPrecisionHits(SharedPrecisionHits),
20  m_totalPrecisionHits(TotalPrecisionHits),
21  m_sharedSpectroPhiHits(SharedSpectroPhiHits),
22  m_totalSpectroPhiHits(TotalSpectroPhiHits),
23  m_intersection(std::move(msIntersection)) {}

◆ MuonOverlapDescriptor() [2/3]

Rec::MuonOverlapDescriptor::MuonOverlapDescriptor ( )

default constructor

defect constructor

Definition at line 26 of file MuonOverlapDescriptor.cxx.

◆ ~MuonOverlapDescriptor()

Rec::MuonOverlapDescriptor::~MuonOverlapDescriptor ( )
default

destructor

◆ MuonOverlapDescriptor() [3/3]

Rec::MuonOverlapDescriptor::MuonOverlapDescriptor ( const MuonOverlapDescriptor input)

copy constructor

Definition at line 36 of file MuonOverlapDescriptor.cxx.

36  :
37  m_sharesIndetTrack(input.m_sharesIndetTrack),
38  m_sharesSpectroTrack(input.m_sharesSpectroTrack),
39  m_sharedPrecisionHits(input.m_sharedPrecisionHits),
40  m_totalPrecisionHits(input.m_totalPrecisionHits),
41  m_sharedSpectroPhiHits(input.m_sharedSpectroPhiHits),
42  m_totalSpectroPhiHits(input.m_totalSpectroPhiHits) {}

Member Function Documentation

◆ hasOverlap()

bool Rec::MuonOverlapDescriptor::hasOverlap ( unsigned int  tolaratedSharedHits = 0) const

summary method

summary method if there is any overlap

Definition at line 61 of file MuonOverlapDescriptor.cxx.

61  {
62  return sharesIndetTrack() || sharesSpectroTrack() ||
63 
64  nSharedPrecisionHits() > toleratedSharedhits ||
65 
66  nSharedSpectroPhiHits() > toleratedSharedhits;
67 }

◆ intersectionInSpectro()

const std::set<Identifier>& Rec::MuonOverlapDescriptor::intersectionInSpectro ( ) const
inline

set of shared identifier, currently for the muon spectrometer

Definition at line 60 of file MuonOverlapDescriptor.h.

60 { return m_intersection; }

◆ nSharedPrecisionHits()

unsigned int Rec::MuonOverlapDescriptor::nSharedPrecisionHits ( ) const
inline

Tell if there are shared MS precision shared hits.

Definition at line 52 of file MuonOverlapDescriptor.h.

52 { return m_sharedPrecisionHits; }

◆ nSharedSpectroPhiHits()

unsigned int Rec::MuonOverlapDescriptor::nSharedSpectroPhiHits ( ) const
inline

Tell if there are shared MS phi shared hits.

Definition at line 56 of file MuonOverlapDescriptor.h.

56 { return m_sharedSpectroPhiHits; }

◆ nTotalPrecisionHits()

unsigned int Rec::MuonOverlapDescriptor::nTotalPrecisionHits ( ) const
inline

Total MS precision hits to compare to.

Definition at line 54 of file MuonOverlapDescriptor.h.

54 { return m_totalPrecisionHits; }

◆ nTotalSpectroPhiHits()

unsigned int Rec::MuonOverlapDescriptor::nTotalSpectroPhiHits ( ) const
inline

Total MS phi hits to compare to.

Definition at line 58 of file MuonOverlapDescriptor.h.

58 { return m_totalSpectroPhiHits; }

◆ operator=()

Rec::MuonOverlapDescriptor & Rec::MuonOverlapDescriptor::operator= ( const MuonOverlapDescriptor rhs)

assignment operator

Assignment operator.

Definition at line 48 of file MuonOverlapDescriptor.cxx.

48  {
49  if (this != &rhs) {
50  m_sharesIndetTrack = rhs.m_sharesIndetTrack;
51  m_sharesSpectroTrack = rhs.m_sharesSpectroTrack;
52  m_sharedPrecisionHits = rhs.m_sharedPrecisionHits;
53  m_totalPrecisionHits = rhs.m_totalPrecisionHits;
54  m_sharedSpectroPhiHits = rhs.m_sharedSpectroPhiHits;
55  m_totalSpectroPhiHits = rhs.m_totalSpectroPhiHits;
56  }
57  return *this;
58 }

◆ sharesIndetTrack()

bool Rec::MuonOverlapDescriptor::sharesIndetTrack ( ) const
inline

Access if the overlap consists of sharing the ID track.

Definition at line 46 of file MuonOverlapDescriptor.h.

46 { return m_sharesIndetTrack; }

◆ sharesSpectroTrack()

bool Rec::MuonOverlapDescriptor::sharesSpectroTrack ( ) const
inline

Access if the overlap consists of sharing the MS track.

Definition at line 49 of file MuonOverlapDescriptor.h.

49 { return m_sharesSpectroTrack; }

Member Data Documentation

◆ m_intersection

std::set<Identifier> Rec::MuonOverlapDescriptor::m_intersection
private

Definition at line 72 of file MuonOverlapDescriptor.h.

◆ m_sharedPrecisionHits

unsigned int Rec::MuonOverlapDescriptor::m_sharedPrecisionHits
private

Definition at line 68 of file MuonOverlapDescriptor.h.

◆ m_sharedSpectroPhiHits

unsigned int Rec::MuonOverlapDescriptor::m_sharedSpectroPhiHits
private

Definition at line 70 of file MuonOverlapDescriptor.h.

◆ m_sharesIndetTrack

bool Rec::MuonOverlapDescriptor::m_sharesIndetTrack
private

Definition at line 66 of file MuonOverlapDescriptor.h.

◆ m_sharesSpectroTrack

bool Rec::MuonOverlapDescriptor::m_sharesSpectroTrack
private

Definition at line 67 of file MuonOverlapDescriptor.h.

◆ m_totalPrecisionHits

unsigned int Rec::MuonOverlapDescriptor::m_totalPrecisionHits
private

Definition at line 69 of file MuonOverlapDescriptor.h.

◆ m_totalSpectroPhiHits

unsigned int Rec::MuonOverlapDescriptor::m_totalSpectroPhiHits
private

Definition at line 71 of file MuonOverlapDescriptor.h.


The documentation for this class was generated from the following files:
Rec::MuonOverlapDescriptor::m_sharesSpectroTrack
bool m_sharesSpectroTrack
Definition: MuonOverlapDescriptor.h:67
Rec::MuonOverlapDescriptor::m_intersection
std::set< Identifier > m_intersection
Definition: MuonOverlapDescriptor.h:72
Rec::MuonOverlapDescriptor::m_sharedSpectroPhiHits
unsigned int m_sharedSpectroPhiHits
Definition: MuonOverlapDescriptor.h:70
Rec::MuonOverlapDescriptor::m_totalSpectroPhiHits
unsigned int m_totalSpectroPhiHits
Definition: MuonOverlapDescriptor.h:71
Rec::MuonOverlapDescriptor::nSharedPrecisionHits
unsigned int nSharedPrecisionHits() const
Tell if there are shared MS precision shared hits.
Definition: MuonOverlapDescriptor.h:52
Rec::MuonOverlapDescriptor::sharesIndetTrack
bool sharesIndetTrack() const
Access if the overlap consists of sharing the ID track.
Definition: MuonOverlapDescriptor.h:46
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
Rec::MuonOverlapDescriptor::sharesSpectroTrack
bool sharesSpectroTrack() const
Access if the overlap consists of sharing the MS track.
Definition: MuonOverlapDescriptor.h:49
Rec::MuonOverlapDescriptor::nSharedSpectroPhiHits
unsigned int nSharedSpectroPhiHits() const
Tell if there are shared MS phi shared hits.
Definition: MuonOverlapDescriptor.h:56
Rec::MuonOverlapDescriptor::m_totalPrecisionHits
unsigned int m_totalPrecisionHits
Definition: MuonOverlapDescriptor.h:69
Rec::MuonOverlapDescriptor::m_sharedPrecisionHits
unsigned int m_sharedPrecisionHits
Definition: MuonOverlapDescriptor.h:68
Rec::MuonOverlapDescriptor::m_sharesIndetTrack
bool m_sharesIndetTrack
Definition: MuonOverlapDescriptor.h:66