ATLAS Offline Software
Classes | Public Member Functions | Private Attributes | Friends | List of all members
Trk::MuonTrackSummary::ChamberHitSummary Struct Reference

structure to hold information per chamber in the muon system More...

#include <MuonTrackSummary.h>

Collaboration diagram for Trk::MuonTrackSummary::ChamberHitSummary:

Classes

struct  Projection
 structure to hold the information for the eta/phi projection of RPC, TGC and CSC chambers and per multilayer for MDT chambers More...
 

Public Member Functions

 ChamberHitSummary (Identifier chID, bool isMdtTube)
 constructor taking the Identifier of the chamber and a boolean whether we are dealing with a MDT chamber or not (the boolean is passed as the ChamberHitSummary cannot unpack the identifier and it needs to know whether it is dealing with a MDT chamber) More...
 
const IdentifierchamberId () const
 returns the chamber identifier More...
 
bool isMdt () const
 returns whether this is a MDT chamber More...
 
int nhits () const
 returns the total number of hits on track in the chamber More...
 
int nholes () const
 returns the total number of holes in the chamber More...
 
int noutliers () const
 returns the total number of outliers in the chamber More...
 
int ndeltas () const
 returns the total number of delta electrons in the chamber More...
 
int ncloseHits () const
 returns the total number of close hits in the chamber More...
 
int ngoodHits () const
 returns the number of non-deweighted hits in the chamber More...
 
int noutBoundsHits () const
 
int netaHits () const
 returns the total number of eta hits on track in the chamber More...
 
int nphiHits () const
 returns the total number of phi hits on track in the chamber More...
 
int nMdtHitsMl1 () const
 returns the total number of MDT hits on track in the first multi layer More...
 
int nMdtHitsMl2 () const
 returns the total number of MDT hits on track in the second multi layer More...
 
const ProjectionmdtMl1 () const
 access to the data of the first MDT multi layer, users have to check whether this is a MDT chamber first!! More...
 
const ProjectionmdtMl2 () const
 access to the data of the second MDT multi layer, users have to check whether this is a MDT chamber first!! More...
 
const ProjectionetaProjection () const
 access to the data of the eta projection, users have to check whether this is NOT a MDT chamber first!! More...
 
const ProjectionphiProjection () const
 access to the data of the phi projection, users have to check whether this is NOT a MDT chamber first!! More...
 

Private Attributes

Identifier m_chId { 0 }
 
bool m_isMdt { false }
 
Projection m_first
 
Projection m_second
 

Friends

class Muon::MuonTrackSummaryHelperTool
 
class ::MuonTrackSummaryCnv_p1
 
class ::MuonTrackSummaryCnv_p2
 
class ::TrackSummaryCnv_p2
 

Detailed Description

structure to hold information per chamber in the muon system

Definition at line 31 of file MuonTrackSummary.h.

Constructor & Destructor Documentation

◆ ChamberHitSummary()

Trk::MuonTrackSummary::ChamberHitSummary::ChamberHitSummary ( Identifier  chID,
bool  isMdtTube 
)
inline

constructor taking the Identifier of the chamber and a boolean whether we are dealing with a MDT chamber or not (the boolean is passed as the ChamberHitSummary cannot unpack the identifier and it needs to know whether it is dealing with a MDT chamber)

Definition at line 52 of file MuonTrackSummary.h.

53  : m_chId(chID)
54  , m_isMdt(isMdtTube)
55  {}

Member Function Documentation

◆ chamberId()

const Identifier& Trk::MuonTrackSummary::ChamberHitSummary::chamberId ( ) const
inline

returns the chamber identifier

Definition at line 58 of file MuonTrackSummary.h.

58 { return m_chId; }

◆ etaProjection()

const Projection& Trk::MuonTrackSummary::ChamberHitSummary::etaProjection ( ) const
inline

access to the data of the eta projection, users have to check whether this is NOT a MDT chamber first!!

Definition at line 103 of file MuonTrackSummary.h.

103 { return m_first; }

◆ isMdt()

bool Trk::MuonTrackSummary::ChamberHitSummary::isMdt ( ) const
inline

returns whether this is a MDT chamber

Definition at line 61 of file MuonTrackSummary.h.

61 { return m_isMdt; }

◆ mdtMl1()

const Projection& Trk::MuonTrackSummary::ChamberHitSummary::mdtMl1 ( ) const
inline

access to the data of the first MDT multi layer, users have to check whether this is a MDT chamber first!!

Definition at line 97 of file MuonTrackSummary.h.

97 { return m_first; }

◆ mdtMl2()

const Projection& Trk::MuonTrackSummary::ChamberHitSummary::mdtMl2 ( ) const
inline

access to the data of the second MDT multi layer, users have to check whether this is a MDT chamber first!!

Definition at line 100 of file MuonTrackSummary.h.

100 { return m_second; }

◆ ncloseHits()

int Trk::MuonTrackSummary::ChamberHitSummary::ncloseHits ( ) const
inline

returns the total number of close hits in the chamber

Definition at line 76 of file MuonTrackSummary.h.

◆ ndeltas()

int Trk::MuonTrackSummary::ChamberHitSummary::ndeltas ( ) const
inline

returns the total number of delta electrons in the chamber

Definition at line 73 of file MuonTrackSummary.h.

73 { return m_first.ndeltas + m_second.ndeltas; }

◆ netaHits()

int Trk::MuonTrackSummary::ChamberHitSummary::netaHits ( ) const
inline

returns the total number of eta hits on track in the chamber

Definition at line 85 of file MuonTrackSummary.h.

85 { return isMdt() ? nhits() : m_first.nhits; }

◆ ngoodHits()

int Trk::MuonTrackSummary::ChamberHitSummary::ngoodHits ( ) const
inline

returns the number of non-deweighted hits in the chamber

Definition at line 79 of file MuonTrackSummary.h.

79 { return m_first.ngoodHits + m_second.ngoodHits; }

◆ nhits()

int Trk::MuonTrackSummary::ChamberHitSummary::nhits ( ) const
inline

returns the total number of hits on track in the chamber

Definition at line 64 of file MuonTrackSummary.h.

64 { return m_first.nhits + m_second.nhits; }

◆ nholes()

int Trk::MuonTrackSummary::ChamberHitSummary::nholes ( ) const
inline

returns the total number of holes in the chamber

Definition at line 67 of file MuonTrackSummary.h.

67 { return m_first.nholes + m_second.nholes; }

◆ nMdtHitsMl1()

int Trk::MuonTrackSummary::ChamberHitSummary::nMdtHitsMl1 ( ) const
inline

returns the total number of MDT hits on track in the first multi layer

Definition at line 91 of file MuonTrackSummary.h.

91 { return isMdt() ? m_first.nhits : 0; }

◆ nMdtHitsMl2()

int Trk::MuonTrackSummary::ChamberHitSummary::nMdtHitsMl2 ( ) const
inline

returns the total number of MDT hits on track in the second multi layer

Definition at line 94 of file MuonTrackSummary.h.

94 { return isMdt() ? m_second.nhits : 0; }

◆ noutBoundsHits()

int Trk::MuonTrackSummary::ChamberHitSummary::noutBoundsHits ( ) const
inline

Definition at line 82 of file MuonTrackSummary.h.

◆ noutliers()

int Trk::MuonTrackSummary::ChamberHitSummary::noutliers ( ) const
inline

returns the total number of outliers in the chamber

Definition at line 70 of file MuonTrackSummary.h.

70 { return m_first.noutliers + m_second.noutliers; }

◆ nphiHits()

int Trk::MuonTrackSummary::ChamberHitSummary::nphiHits ( ) const
inline

returns the total number of phi hits on track in the chamber

Definition at line 88 of file MuonTrackSummary.h.

88 { return isMdt() ? 0 : m_second.nhits; }

◆ phiProjection()

const Projection& Trk::MuonTrackSummary::ChamberHitSummary::phiProjection ( ) const
inline

access to the data of the phi projection, users have to check whether this is NOT a MDT chamber first!!

Definition at line 106 of file MuonTrackSummary.h.

106 { return m_second; }

Friends And Related Function Documentation

◆ ::MuonTrackSummaryCnv_p1

friend class ::MuonTrackSummaryCnv_p1
friend

Definition at line 109 of file MuonTrackSummary.h.

◆ ::MuonTrackSummaryCnv_p2

friend class ::MuonTrackSummaryCnv_p2
friend

Definition at line 110 of file MuonTrackSummary.h.

◆ ::TrackSummaryCnv_p2

friend class ::TrackSummaryCnv_p2
friend

Definition at line 111 of file MuonTrackSummary.h.

◆ Muon::MuonTrackSummaryHelperTool

friend class Muon::MuonTrackSummaryHelperTool
friend

Definition at line 33 of file MuonTrackSummary.h.

Member Data Documentation

◆ m_chId

Identifier Trk::MuonTrackSummary::ChamberHitSummary::m_chId { 0 }
private

Definition at line 113 of file MuonTrackSummary.h.

◆ m_first

Projection Trk::MuonTrackSummary::ChamberHitSummary::m_first
private

Definition at line 116 of file MuonTrackSummary.h.

◆ m_isMdt

bool Trk::MuonTrackSummary::ChamberHitSummary::m_isMdt { false }
private

Definition at line 114 of file MuonTrackSummary.h.

◆ m_second

Projection Trk::MuonTrackSummary::ChamberHitSummary::m_second
private

Definition at line 117 of file MuonTrackSummary.h.


The documentation for this struct was generated from the following file:
Trk::MuonTrackSummary::ChamberHitSummary::isMdt
bool isMdt() const
returns whether this is a MDT chamber
Definition: MuonTrackSummary.h:61
Trk::MuonTrackSummary::ChamberHitSummary::m_second
Projection m_second
Definition: MuonTrackSummary.h:117
Trk::MuonTrackSummary::ChamberHitSummary::Projection::noutBounds
int noutBounds
Definition: MuonTrackSummary.h:46
Trk::MuonTrackSummary::ChamberHitSummary::Projection::nhits
int nhits
Definition: MuonTrackSummary.h:40
Trk::MuonTrackSummary::ChamberHitSummary::m_chId
Identifier m_chId
Definition: MuonTrackSummary.h:113
Trk::MuonTrackSummary::ChamberHitSummary::Projection::nholes
int nholes
Definition: MuonTrackSummary.h:41
Trk::MuonTrackSummary::ChamberHitSummary::Projection::ncloseHits
int ncloseHits
Definition: MuonTrackSummary.h:44
Trk::MuonTrackSummary::ChamberHitSummary::m_first
Projection m_first
Definition: MuonTrackSummary.h:116
Trk::MuonTrackSummary::ChamberHitSummary::nhits
int nhits() const
returns the total number of hits on track in the chamber
Definition: MuonTrackSummary.h:64
Trk::MuonTrackSummary::ChamberHitSummary::Projection::ndeltas
int ndeltas
Definition: MuonTrackSummary.h:43
Trk::MuonTrackSummary::ChamberHitSummary::Projection::noutliers
int noutliers
Definition: MuonTrackSummary.h:42
Trk::MuonTrackSummary::ChamberHitSummary::m_isMdt
bool m_isMdt
Definition: MuonTrackSummary.h:114
Trk::MuonTrackSummary::ChamberHitSummary::Projection::ngoodHits
int ngoodHits
Definition: MuonTrackSummary.h:45