ATLAS Offline Software
Loading...
Searching...
No Matches
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)
const IdentifierchamberId () const
 returns the chamber identifier
bool isMdt () const
 returns whether this is a MDT chamber
int nhits () const
 returns the total number of hits on track in the chamber
int nholes () const
 returns the total number of holes in the chamber
int noutliers () const
 returns the total number of outliers in the chamber
int ndeltas () const
 returns the total number of delta electrons in the chamber
int ncloseHits () const
 returns the total number of close hits in the chamber
int ngoodHits () const
 returns the number of non-deweighted hits in the chamber
int noutBoundsHits () const
int netaHits () const
 returns the total number of eta hits on track in the chamber
int nphiHits () const
 returns the total number of phi hits on track in the chamber
int nMdtHitsMl1 () const
 returns the total number of MDT hits on track in the first multi layer
int nMdtHitsMl2 () const
 returns the total number of MDT hits on track in the second multi layer
const ProjectionmdtMl1 () const
 access to the data of the first MDT multi layer, users have to check whether this is a MDT chamber first!
const ProjectionmdtMl2 () const
 access to the data of the second MDT multi layer, users have to check whether this is a MDT chamber first!
const ProjectionetaProjection () const
 access to the data of the eta projection, users have to check whether this is NOT a MDT chamber first!
const ProjectionphiProjection () const
 access to the data of the phi projection, users have to check whether this is NOT a MDT chamber first!

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.

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.

◆ 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.

◆ 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.

76{ return m_first.ncloseHits + m_second.ncloseHits; }

◆ 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; }
int nhits() const
returns the total number of hits on track in the chamber
bool isMdt() const
returns whether this is a MDT chamber

◆ 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.

82{ return m_first.noutBounds + m_second.noutBounds; }

◆ 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; }

◆ ::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.

113{ 0 }; //<! chamber identifier

◆ 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.

114{ false }; //<! is this a MDT chamber

◆ 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: